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:** 248
- **Expected detections:** 248
- **`VULNERABLE:` markers:** 360 (individual lines a scanner should flag)
- **`SAFE:` markers:** 265 (lines a scanner must not flag — the false-positive control group)
- **Languages:** 13 — c, cpp, dotenv, go, java, javascript, json, python, ruby, rust, shell, swift, text
- **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
- **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 @@ -171,6 +171,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 |

## Lua

| Test case | File | CWE | Severity | Expected | Markers |
|---|---|---|---|---|---|
| Dynamic code execution from user input | [`dynamic-code-injection.lua`](../vulns/lua/dynamic-code-injection.lua) | CWE-95 | critical | yes | 1 vuln / 1 safe |
| Hard-coded administrative password | [`hardcoded-password.lua`](../vulns/lua/hardcoded-password.lua) | CWE-798 | high | yes | 1 vuln / 1 safe |
| Log injection through unsanitized username | [`log-injection.lua`](../vulns/lua/log-injection.lua) | CWE-117 | medium | yes | 1 vuln / 1 safe |
| Open redirect through untrusted destination | [`open-redirect.lua`](../vulns/lua/open-redirect.lua) | CWE-601 | medium | yes | 1 vuln / 1 safe |
| Shell command injection through os.execute | [`os-command-injection.lua`](../vulns/lua/os-command-injection.lua) | CWE-78 | critical | yes | 1 vuln / 1 safe |
| Authentication using a partial token comparison | [`partial-token-comparison.lua`](../vulns/lua/partial-token-comparison.lua) | CWE-187 | high | yes | 1 vuln / 1 safe |
| Path traversal in file read | [`path-traversal.lua`](../vulns/lua/path-traversal.lua) | CWE-22 | high | yes | 1 vuln / 1 safe |
| Command injection through io.popen | [`popen-command-injection.lua`](../vulns/lua/popen-command-injection.lua) | CWE-78 | critical | yes | 1 vuln / 1 safe |
| Predictable shared temporary file | [`predictable-temp-file.lua`](../vulns/lua/predictable-temp-file.lua) | CWE-377 | medium | yes | 1 vuln / 1 safe |
| SQL injection through string concatenation | [`sql-injection.lua`](../vulns/lua/sql-injection.lua) | CWE-89 | critical | yes | 1 vuln / 1 safe |
| Server-side request forgery through user URL | [`ssrf-user-url.lua`](../vulns/lua/ssrf-user-url.lua) | CWE-918 | high | yes | 1 vuln / 1 safe |
| Internal stack trace exposed to a client | [`stack-trace-exposure.lua`](../vulns/lua/stack-trace-exposure.lua) | CWE-209 | medium | yes | 1 vuln / 1 safe |
| Code execution while deserializing untrusted text | [`unsafe-deserialization.lua`](../vulns/lua/unsafe-deserialization.lua) | CWE-502 | critical | yes | 1 vuln / 1 safe |
| 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 |

## Python

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