← Files Codex SecurityARCHIVED FILE
examples/completed-scan/findings.json
2.62 KB · Nov 21, 2026 · 18:10 UTC
{
"documentType": "codex-security.findings",
"findings": [
{
"attackPath": {
"dataflow": {
"summary": "The archive supplies an entry name. The extractor uses that name to select the file it writes."
},
"reachability": {
"summary": "The caller must be able to supply an archive for extraction. The service account must have write access to the destination."
}
},
"confidence": {
"level": "high",
"rationale": "The destination passed to the file writer is visible in the reviewed code."
},
"extensions": {},
"findingId": "csf_852f90d6e1177502ff113d4a",
"fingerprints": {
"algorithm": "codex-security/v1",
"primary": "codex-security/v1:sha256:990a4a6a2ec18440dd47eac4d7256c0ee2c02db1b43104720cab3cbe9db706ca"
},
"identity": {
"anchor": "archive-entry-write-without-containment"
},
"locations": [
{
"endLine": 44,
"path": "src/extract.py",
"role": "sink",
"startLine": 41
}
],
"occurrenceId": "occ_e79cb19591e696572a1c22be",
"preventiveControls": [
"Route all archive extraction through one helper that normalizes and validates destination paths."
],
"provenance": {
"source": "local_plugin"
},
"remediation": "Normalize destinations and reject entries that escape the extraction root.",
"remediationTests": [
"Assert that extracting an archive entry named `../escape.txt` fails without writing outside the extraction root."
],
"ruleId": "path-traversal.archive-extraction",
"severity": {
"changeConditions": "A filesystem policy that confines writes to a disposable import directory would limit the impact.",
"level": "high",
"rationale": "The caller can alter files outside the import area with the permissions of the extraction service.",
"score": 8.1,
"scoringSystem": "CVSS:3.1"
},
"summary": "Archive extraction can overwrite files outside the directory chosen for the import.",
"taxonomy": {
"category": "path-traversal",
"cwe": [
"CWE-22"
]
},
"title": "Unsafe archive extraction can escape the output directory",
"validation": {
"method": "Static source review",
"summary": "The extractor combines the output directory with the entry name and passes the resulting path to the writer. It never checks that the destination stays inside the output directory."
}
}
],
"scanId": "scan_example_001",
"schemaVersion": "1.0"
}
SHA-256: 3c63586ea38b07b1d5ad9004ba2afc27f67e79ed164da508c7beae72648eb3b7