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, python, ruby, text, typescript
- **CWE categories:** 90 — CWE-20, CWE-22, CWE-78, CWE-79, CWE-89, CWE-90, CWE-94, CWE-95, CWE-113, CWE-117, CWE-129, 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-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 @@ -184,6 +184,26 @@ counts as a detection. See `docs/SCANNER_INTEGRATION.md`.
| Typosquatted and dependency-confusion entries in package.json | [`package.json`](../vulns/supply-chain/package.json) | CWE-1357 | critical | yes | file-level / 0 safe |
| Typosquatted and dependency-confusion entries in requirements.txt | [`requirements.txt`](../vulns/supply-chain/requirements.txt) | CWE-1357 | critical | yes | 4 vuln / 1 safe |

## Typescript

| Test case | File | CWE | Severity | Expected | Markers |
|---|---|---|---|---|---|
| Archive extraction path traversal | [`archive-path-traversal.ts`](../vulns/typescript/archive-path-traversal.ts) | CWE-22 | high | yes | 1 vuln / 1 safe |
| Shell command injection through exec | [`command-injection.ts`](../vulns/typescript/command-injection.ts) | CWE-78 | critical | yes | 1 vuln / 1 safe |
| DOM cross-site scripting through innerHTML | [`dom-xss.ts`](../vulns/typescript/dom-xss.ts) | CWE-79 | high | yes | 1 vuln / 1 safe |
| Dynamic code execution from request input | [`eval-code-injection.ts`](../vulns/typescript/eval-code-injection.ts) | CWE-95 | critical | yes | 1 vuln / 1 safe |
| Hard-coded JWT signing secret | [`hardcoded-jwt-secret.ts`](../vulns/typescript/hardcoded-jwt-secret.ts) | CWE-798 | high | yes | 1 vuln / 1 safe |
| Log injection through unsanitized username | [`log-injection.ts`](../vulns/typescript/log-injection.ts) | CWE-117 | medium | yes | 1 vuln / 1 safe |
| Open redirect through untrusted destination | [`open-redirect.ts`](../vulns/typescript/open-redirect.ts) | CWE-601 | medium | yes | 1 vuln / 1 safe |
| Authentication using a truncated token comparison | [`partial-token-comparison.ts`](../vulns/typescript/partial-token-comparison.ts) | CWE-187 | high | yes | 1 vuln / 1 safe |
| Path traversal in file download | [`path-traversal.ts`](../vulns/typescript/path-traversal.ts) | CWE-22 | high | yes | 1 vuln / 1 safe |
| Prototype pollution through recursive merge | [`prototype-pollution.ts`](../vulns/typescript/prototype-pollution.ts) | CWE-1321 | high | yes | 1 vuln / 1 safe |
| Regular expression denial of service from user pattern | [`regex-injection.ts`](../vulns/typescript/regex-injection.ts) | CWE-1333 | high | yes | 1 vuln / 1 safe |
| SQL injection through template interpolation | [`sql-injection.ts`](../vulns/typescript/sql-injection.ts) | CWE-89 | critical | yes | 1 vuln / 1 safe |
| Server-side request forgery through user URL | [`ssrf-user-url.ts`](../vulns/typescript/ssrf-user-url.ts) | CWE-918 | high | yes | 1 vuln / 1 safe |
| Unsafe deserialization of tagged YAML | [`unsafe-yaml-deserialization.ts`](../vulns/typescript/unsafe-yaml-deserialization.ts) | CWE-502 | critical | yes | 1 vuln / 1 safe |
| Predictable session token from Math.random | [`weak-random-token.ts`](../vulns/typescript/weak-random-token.ts) | CWE-338 | high | yes | 1 vuln / 1 safe |

## Safety

Every payload above is unreachable dead code, every host literal uses an
Expand Down
Loading