Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 26 additions & 6 deletions docs/VULNERABILITY_CATALOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ from each file's header comment, so this page cannot drift from the source.

## Totals

- **Test cases:** 127
- **Expected detections:** 127
- **`VULNERABLE:` markers:** 236 (individual lines a scanner should flag)
- **`SAFE:` markers:** 144 (lines a scanner must not flag — the false-positive control group)
- **Languages:** 8 — dotenv, go, java, javascript, json, python, ruby, text
- **CWE categories:** 89 — CWE-20, CWE-22, CWE-78, CWE-79, CWE-89, CWE-90, CWE-94, CWE-95, CWE-113, CWE-117, CWE-129, CWE-190, CWE-201, CWE-203, CWE-208, CWE-209, CWE-256, CWE-285, CWE-287, CWE-288, CWE-291, CWE-295, CWE-306, CWE-307, CWE-311, CWE-312, CWE-319, CWE-321, CWE-326, CWE-327, CWE-329, CWE-330, CWE-338, CWE-345, CWE-346, CWE-347, CWE-352, CWE-362, CWE-377, CWE-384, CWE-400, CWE-409, CWE-434, CWE-441, CWE-460, CWE-472, CWE-475, CWE-480, CWE-488, CWE-489, CWE-502, CWE-506, CWE-509, CWE-512, CWE-521, CWE-522, CWE-525, CWE-532, CWE-598, CWE-601, CWE-602, CWE-611, CWE-613, CWE-614, CWE-620, CWE-639, CWE-640, CWE-643, CWE-681, CWE-693, CWE-732, CWE-759, CWE-776, CWE-798, CWE-835, CWE-862, CWE-863, CWE-915, CWE-916, CWE-918, CWE-922, CWE-942, CWE-943, CWE-1021, CWE-1236, CWE-1321, CWE-1333, CWE-1336, CWE-1357
- **Test cases:** 142
- **Expected detections:** 142
- **`VULNERABLE:` markers:** 251 (individual lines a scanner should flag)
- **`SAFE:` markers:** 159 (lines a scanner must not flag — the false-positive control group)
- **Languages:** 9 — dotenv, go, java, javascript, json, objective-c, python, ruby, text
- **CWE categories:** 93 — CWE-20, CWE-22, CWE-78, CWE-79, CWE-89, CWE-90, CWE-94, CWE-95, CWE-113, CWE-117, CWE-121, CWE-129, CWE-134, CWE-187, CWE-190, CWE-201, CWE-203, CWE-208, CWE-209, CWE-256, CWE-285, CWE-287, CWE-288, CWE-291, CWE-295, CWE-306, CWE-307, CWE-311, CWE-312, CWE-319, CWE-321, CWE-326, CWE-327, CWE-329, CWE-330, CWE-338, CWE-345, CWE-346, CWE-347, CWE-352, CWE-362, CWE-377, CWE-384, CWE-400, CWE-409, CWE-416, CWE-434, CWE-441, CWE-460, CWE-472, CWE-475, CWE-480, CWE-488, CWE-489, CWE-502, CWE-506, CWE-509, CWE-512, CWE-521, CWE-522, CWE-525, CWE-532, CWE-598, CWE-601, CWE-602, CWE-611, CWE-613, CWE-614, CWE-620, CWE-639, CWE-640, CWE-643, CWE-681, CWE-693, CWE-732, CWE-759, CWE-776, CWE-798, CWE-835, CWE-862, CWE-863, CWE-915, CWE-916, CWE-918, CWE-922, CWE-942, CWE-943, CWE-1021, CWE-1236, CWE-1321, CWE-1333, CWE-1336, CWE-1357

## How coverage is scored

Expand Down Expand Up @@ -100,6 +100,26 @@ counts as a detection. See `docs/SCANNER_INTEGRATION.md`.
| Code injection via eval() of user input | [`xss-eval-user-input.js`](../vulns/javascript/xss-eval-user-input.js) | CWE-95 | critical | yes | 3 vuln / 1 safe |
| XML parser with external entity resolution enabled | [`xxe-parser-config.js`](../vulns/javascript/xxe-parser-config.js) | CWE-611 | high | yes | 1 vuln / 1 safe |

## Objective C

| Test case | File | CWE | Severity | Expected | Markers |
|---|---|---|---|---|---|
| Hard-coded administrative password | [`hardcoded-password.m`](../vulns/objective-c/hardcoded-password.m) | CWE-798 | high | yes | 1 vuln / 1 safe |
| Integer overflow in allocation size calculation | [`integer-overflow-allocation.m`](../vulns/objective-c/integer-overflow-allocation.m) | CWE-190 | high | yes | 1 vuln / 1 safe |
| Externally controlled logging format string | [`log-format-injection.m`](../vulns/objective-c/log-format-injection.m) | CWE-134 | high | yes | 1 vuln / 1 safe |
| Open redirect through untrusted destination | [`open-redirect.m`](../vulns/objective-c/open-redirect.m) | CWE-601 | medium | yes | 1 vuln / 1 safe |
| Authentication using a truncated token comparison | [`partial-token-comparison.m`](../vulns/objective-c/partial-token-comparison.m) | CWE-187 | high | yes | 1 vuln / 1 safe |
| Path traversal in file download | [`path-traversal.m`](../vulns/objective-c/path-traversal.m) | CWE-22 | high | yes | 1 vuln / 1 safe |
| Predictable shared temporary file | [`predictable-temp-file.m`](../vulns/objective-c/predictable-temp-file.m) | CWE-377 | medium | yes | 1 vuln / 1 safe |
| SQL injection through formatted query text | [`sql-injection.m`](../vulns/objective-c/sql-injection.m) | CWE-89 | critical | yes | 1 vuln / 1 safe |
| Server-side request forgery through user URL | [`ssrf-user-url.m`](../vulns/objective-c/ssrf-user-url.m) | CWE-918 | high | yes | 1 vuln / 1 safe |
| Stack buffer overflow through strcpy | [`stack-buffer-overflow.m`](../vulns/objective-c/stack-buffer-overflow.m) | CWE-121 | critical | yes | 1 vuln / 1 safe |
| Internal diagnostic trace returned to a client | [`stack-trace-exposure.m`](../vulns/objective-c/stack-trace-exposure.m) | CWE-209 | medium | yes | 1 vuln / 1 safe |
| Shell command injection through system | [`system-command-injection.m`](../vulns/objective-c/system-command-injection.m) | CWE-78 | critical | yes | 1 vuln / 1 safe |
| TLS peer verification disabled | [`tls-verification-disabled.m`](../vulns/objective-c/tls-verification-disabled.m) | CWE-295 | high | yes | 1 vuln / 1 safe |
| Heap value consumed after free | [`use-after-free.m`](../vulns/objective-c/use-after-free.m) | CWE-416 | critical | yes | 1 vuln / 1 safe |
| Predictable session token from rand | [`weak-random-token.m`](../vulns/objective-c/weak-random-token.m) | CWE-338 | high | yes | 1 vuln / 1 safe |

## Python

| Test case | File | CWE | Severity | Expected | Markers |
Expand Down
Loading