benchmark-results / question-pack.json
jfbrown95's picture
Update Jev and Liquid bug benchmark results (#25)
aaa090a
Raw History Blame Contribute Delete
23.7 kB
{
"schema_version": 1,
"source": "lakeday-org/perch/scan.yaml",
"source_sha256": "f881306f892af4c36b306480cc059ad86affdd196ca99f7b1a755906f4513cee",
"domains": {
"bug": [
{
"name": "has_bug",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "defect",
"label": "kind",
"pick": "strongest"
},
"min": 50,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` contain a concrete behavioral defect that a caller can reach?",
"criteria": {
"true": "For some input a caller can pass, the method returns a wrong result, leaves wrong state, throws when it should not, or fails to throw when it should\n",
"false": "The method behaves correctly for every input its callers can pass; style, performance, and hypothetical misuse do not count\n"
}
}
},
{
"name": "bug_edge_case",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "defect",
"label": "kind",
"pick": "strongest"
},
"min": 50,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` produce a wrong result for a valid empty, zero, first, last, or missing input?",
"criteria": {
"true": "One of these valid inputs produces an incorrect result or failure.",
"false": "These valid inputs produce the intended results and errors."
}
}
}
],
"security": [
{
"name": "severity",
"type": "score",
"language": null,
"where": "**/*",
"issue": null,
"min": null,
"when": null,
"question": {
"type": "score",
"instructions": "If something is wrong with `method`, how much would a caller feel it?",
"criteria": [
"No caller would notice",
"A wrong result in a rare case, or one the caller can see and recover from",
"A wrong result or wrong state in ordinary use",
"Data lost, corrupted, or exposed, or a check that should stop someone bypassed"
]
}
},
{
"name": "cwe_79",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "xss",
"pick": "strongest"
},
"min": 60,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to cross-site scripting?",
"criteria": {
"true": "Outside text reaches HTML or script output without escaping. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its output is escaped, or no attacker-controlled text reaches it."
}
}
},
{
"name": "cwe_89",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "sql_injection",
"pick": "strongest"
},
"min": 60,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to SQL injection?",
"criteria": {
"true": "Outside text becomes part of the SQL it runs. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its SQL is fixed, or outside values are bound as parameters."
}
}
},
{
"name": "cwe_352",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "csrf",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to cross-site request forgery?",
"criteria": {
"true": "A browser request that changes state is accepted without a CSRF token or origin check.",
"false": "It checks for forgery, or changes nothing a browser request can trigger."
}
}
},
{
"name": "cwe_862",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "missing_authorization",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` skip an authorization check it needs?",
"criteria": {
"true": "Its name, documentation or callers show its action must be limited to certain users, and it performs it without checking who is calling.",
"false": "It checks permission, or its action needs none."
}
}
},
{
"name": "cwe_787",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "out_of_bounds_write",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` write past the end of a buffer?",
"criteria": {
"true": "An index, pointer or length lets it write outside the memory it owns.",
"false": "Every write stays inside its buffer."
}
}
},
{
"name": "cwe_22",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "path_traversal",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to path traversal?",
"criteria": {
"true": "A path built from outside input can reach files beyond the directory it should be limited to. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its paths are fixed or confined to their directory."
}
}
},
{
"name": "cwe_416",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "use_after_free",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` use memory after it is freed?",
"criteria": {
"true": "It reads or writes through a pointer or reference after the memory is released.",
"false": "It never uses memory after release."
}
}
},
{
"name": "cwe_125",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "out_of_bounds_read",
"pick": "strongest"
},
"min": 60,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` read past the end of a buffer?",
"criteria": {
"true": "An index, pointer or length lets it read outside the memory it owns.",
"false": "Every read stays inside its buffer."
}
}
},
{
"name": "cwe_78",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "os_command_injection",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to OS command injection?",
"criteria": {
"true": "Outside text becomes part of a shell command. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its commands are fixed, or pass arguments without a shell."
}
}
},
{
"name": "cwe_94",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "code_injection",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to code injection?",
"criteria": {
"true": "Outside text is evaluated or compiled as code. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "It never runs outside input as code."
}
}
},
{
"name": "cwe_120",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "buffer_overflow",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` copy more into a buffer than it holds?",
"criteria": {
"true": "A copy's length is not checked against the size of its destination.",
"false": "Every copy is bounded by its destination."
}
}
},
{
"name": "cwe_434",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "unsafe_file_upload",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` accept a dangerous file upload?",
"criteria": {
"true": "An uploaded file of any type can be stored where it can be run or served. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Uploads are checked, or stored where they cannot do harm."
}
}
},
{
"name": "cwe_476",
"type": "noul",
"language": [
"c",
"cpp",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "null_dereference",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` dereference a null pointer?",
"criteria": {
"true": "A null pointer or reference is used on some path.",
"false": "Nulls are checked before use."
}
}
},
{
"name": "cwe_121",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "stack_buffer_overflow",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` overflow a buffer on the stack?",
"criteria": {
"true": "A write can go past the end of a stack buffer.",
"false": "Its stack buffers are never overrun."
}
}
},
{
"name": "cwe_502",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "unsafe_deserialization",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` deserialize untrusted data unsafely?",
"criteria": {
"true": "Outside data is deserialized in a way that can create arbitrary objects or run code. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "It deserializes only trusted data, or only plain values."
}
}
},
{
"name": "cwe_122",
"type": "noul",
"language": [
"c",
"cpp",
"rust",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "heap_buffer_overflow",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` overflow a buffer on the heap?",
"criteria": {
"true": "A write can go past the end of a heap buffer.",
"false": "Its heap buffers are never overrun."
}
}
},
{
"name": "cwe_863",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "incorrect_authorization",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` check authorization wrongly?",
"criteria": {
"true": "Its name, documentation or callers show who may perform its action, and its check lets through someone who should be refused.",
"false": "Its permission check is right."
}
}
},
{
"name": "cwe_284",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "broken_access_control",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` let someone use something they should not have access to?",
"criteria": {
"true": "Its name, documentation or callers show a resource or action is protected, and it lets the wrong actor use it.",
"false": "Its access control is right."
}
}
},
{
"name": "cwe_200",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "information_exposure",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` expose sensitive information?",
"criteria": {
"true": "It returns, logs or sends secrets, tokens or personal data to someone who should not see them.",
"false": "It exposes nothing sensitive."
}
}
},
{
"name": "cwe_306",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "missing_authentication",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` skip authentication it needs?",
"criteria": {
"true": "Its name, documentation or callers show a sensitive action that needs a known caller, and it runs without authenticating one.",
"false": "It authenticates the caller, or needs no authentication."
}
}
},
{
"name": "cwe_918",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "ssrf",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to server-side request forgery?",
"criteria": {
"true": "A destination taken from outside input decides where the server sends a request. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its destinations are fixed or checked against an allow list."
}
}
},
{
"name": "cwe_77",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "command_injection",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to command injection?",
"criteria": {
"true": "Outside text changes a command passed to an interpreter. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its commands are fixed, or outside input is passed as data."
}
}
},
{
"name": "cwe_639",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "idor",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can a user reach someone else's data by changing an ID that `method` receives?",
"criteria": {
"true": "It looks up a record by an ID taken from outside input without checking the record belongs to the caller. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "It checks ownership, or its records are not per user."
}
}
},
{
"name": "cwe_770",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "resource_exhaustion",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can a request or other untrusted input make `method` use unbounded memory or work?",
"criteria": {
"true": "A size, count or depth taken from outside input sets how much it allocates or loops, with no limit. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its work is fixed, limited, or set only by the program's own data."
}
}
},
{
"name": "cwe_327",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "weak_crypto",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` use weak cryptography?",
"criteria": {
"true": "It protects a password, token or secret with a broken algorithm such as MD5 or SHA-1, or uses predictable randomness where a value must be unguessable.",
"false": "Its cryptography is sound, or it uses none."
}
}
},
{
"name": "cwe_295",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "disabled_certificate_check",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` turn off certificate checking?",
"criteria": {
"true": "TLS certificate or hostname verification is disabled or bypassed.",
"false": "It keeps certificate checking on, or makes no TLS connection."
}
}
},
{
"name": "cwe_798",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "hardcoded_secret",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Does `method` contain a hard-coded credential?",
"criteria": {
"true": "A password, API key or private key is written in the source.",
"false": "It contains no credential."
}
}
},
{
"name": "cwe_190",
"type": "noul",
"language": [
"c",
"cpp",
"zig",
"rust",
"go",
"java",
"kotlin",
"c_sharp",
"swift",
"solidity"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "integer_overflow",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can arithmetic in `method` overflow in a way that matters?",
"criteria": {
"true": "A calculation wraps or overflows and the result is used as a size, index, amount or security check.",
"false": "Its arithmetic cannot overflow, or an overflow does no harm."
}
}
},
{
"name": "cwe_908",
"type": "noul",
"language": [
"c",
"cpp",
"zig"
],
"where": "**/*",
"issue": {
"type": "security",
"label": "uninitialized_use",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Can `method` read memory before it is written?",
"criteria": {
"true": "A variable, field or buffer is read before it is set on some path.",
"false": "Everything it reads is set first."
}
}
},
{
"name": "cwe_601",
"type": "noul",
"language": null,
"where": "**/*",
"issue": {
"type": "security",
"label": "open_redirect",
"pick": "strongest"
},
"min": 70,
"when": null,
"question": {
"type": "noul",
"instructions": "Is `method` vulnerable to an open redirect?",
"criteria": {
"true": "A redirect target taken from outside input can send users to any site. `method` or its callers show that input comes from a request, a message, or a file or argument a user supplied.",
"false": "Its redirect targets are fixed or checked."
}
}
}
]
},
"pack_sha256": "afe116cc8461552aaca996f8f0b639cdf5e42e9d8291c59995482309b5c330dc",
"protocol_id": "perch-scan-afe116cc8461",
"binary_protocol_id": "perch-scan-binary-afe116cc8461"
}