Skip to content
Merged
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
30 changes: 25 additions & 5 deletions docs/VULNERABILITY_CATALOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ from each file's header comment, so this page cannot drift from the source.

## Totals

- **Test cases:** 263
- **Expected detections:** 263
- **`VULNERABLE:` markers:** 375 (individual lines a scanner should flag)
- **`SAFE:` markers:** 280 (lines a scanner must not flag — the false-positive control group)
- **Languages:** 14 — c, cpp, dotenv, go, java, javascript, json, lua, python, ruby, rust, shell, swift, text
- **Test cases:** 278
- **Expected detections:** 278
- **`VULNERABLE:` markers:** 390 (individual lines a scanner should flag)
- **`SAFE:` markers:** 295 (lines a scanner must not flag — the false-positive control group)
- **Languages:** 15 — c, cpp, dotenv, go, java, javascript, json, lua, perl, python, ruby, rust, shell, swift, text
- **CWE categories:** 102 — CWE-20, CWE-22, CWE-78, CWE-79, CWE-88, 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-297, CWE-306, CWE-307, CWE-311, CWE-312, CWE-319, CWE-321, CWE-326, CWE-327, CWE-328, CWE-329, CWE-330, CWE-338, CWE-345, CWE-346, CWE-347, CWE-352, CWE-362, CWE-367, CWE-377, CWE-384, CWE-400, CWE-409, CWE-415, CWE-416, CWE-434, CWE-441, CWE-457, CWE-460, CWE-472, CWE-475, CWE-476, 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-789, CWE-798, CWE-835, CWE-862, CWE-863, CWE-915, CWE-916, CWE-918, CWE-922, CWE-942, CWE-943, CWE-1004, CWE-1021, CWE-1236, CWE-1321, CWE-1333, CWE-1336, CWE-1357

## How coverage is scored
Expand Down Expand Up @@ -191,6 +191,26 @@ counts as a detection. See `docs/SCANNER_INTEGRATION.md`.
| Predictable session token from math.random | [`weak-random-token.lua`](../vulns/lua/weak-random-token.lua) | CWE-338 | high | yes | 1 vuln / 1 safe |
| World-writable permissions on exported data | [`world-writable-permissions.lua`](../vulns/lua/world-writable-permissions.lua) | CWE-732 | high | yes | 1 vuln / 1 safe |

## Perl

| Test case | File | CWE | Severity | Expected | Markers |
|---|---|---|---|---|---|
| Dynamic Perl evaluation from request input | [`dynamic-eval-injection.pl`](../vulns/perl/dynamic-eval-injection.pl) | CWE-95 | critical | yes | 1 vuln / 1 safe |
| Hard-coded administrative password | [`hardcoded-password.pl`](../vulns/perl/hardcoded-password.pl) | CWE-798 | high | yes | 1 vuln / 1 safe |
| Log injection through unsanitized username | [`log-injection.pl`](../vulns/perl/log-injection.pl) | CWE-117 | medium | yes | 1 vuln / 1 safe |
| Open redirect through untrusted destination | [`open-redirect.pl`](../vulns/perl/open-redirect.pl) | CWE-601 | medium | yes | 1 vuln / 1 safe |
| Authentication using a truncated token comparison | [`partial-token-comparison.pl`](../vulns/perl/partial-token-comparison.pl) | CWE-187 | high | yes | 1 vuln / 1 safe |
| Path traversal in file download | [`path-traversal.pl`](../vulns/perl/path-traversal.pl) | CWE-22 | high | yes | 1 vuln / 1 safe |
| Predictable file in a shared temporary directory | [`predictable-temp-file.pl`](../vulns/perl/predictable-temp-file.pl) | CWE-377 | medium | yes | 1 vuln / 1 safe |
| SQL injection through interpolated query text | [`sql-injection.pl`](../vulns/perl/sql-injection.pl) | CWE-89 | critical | yes | 1 vuln / 1 safe |
| Server-side request forgery through user URL | [`ssrf-user-url.pl`](../vulns/perl/ssrf-user-url.pl) | CWE-918 | high | yes | 1 vuln / 1 safe |
| Internal stack trace returned to a client | [`stack-trace-exposure.pl`](../vulns/perl/stack-trace-exposure.pl) | CWE-209 | medium | yes | 1 vuln / 1 safe |
| Shell command injection through system | [`system-command-injection.pl`](../vulns/perl/system-command-injection.pl) | CWE-78 | critical | yes | 1 vuln / 1 safe |
| TLS hostname and certificate verification disabled | [`tls-verification-disabled.pl`](../vulns/perl/tls-verification-disabled.pl) | CWE-295 | high | yes | 1 vuln / 1 safe |
| Untrusted binary deserialization with Storable | [`unsafe-deserialization.pl`](../vulns/perl/unsafe-deserialization.pl) | CWE-502 | critical | yes | 1 vuln / 1 safe |
| Predictable session token from rand | [`weak-random-token.pl`](../vulns/perl/weak-random-token.pl) | CWE-338 | high | yes | 1 vuln / 1 safe |
| World-writable permissions on exported data | [`world-writable-permissions.pl`](../vulns/perl/world-writable-permissions.pl) | CWE-732 | high | yes | 1 vuln / 1 safe |

## Python

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