security
vulnerability_error
ai_generated
true
Path traversal: ../../../etc/passwd
ID: security/path-traversal
85%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| any | active | — | — | — |
Root Cause
User input used in file path without sanitization.
genericWorkarounds
-
92% success Use path canonicalization and verify resolved path is within allowed directory
-
90% success Use allowlist of permitted file paths
Dead Ends
Common approaches that don't work:
-
Filter ../ only
82% fail
Bypassed with URL encoding or double encoding
-
Use blocklist of sensitive files
78% fail
Attacker targets unlisted files