Vulnerability · CWE-22
Path Traversalalso known as Directory Traversal
Path traversal uses ../ sequences (or encoded variants) to escape an intended directory and read or write arbitrary files.
Impact
Why it matters
Disclosure of sensitive files (configs, keys, source) and potentially code execution via file writes.
Detection
How vulnscanners finds it
vulnscanners runs Nuclei templates and OWASP ZAP active scans against authorized targets, and reports Path Traversal findings with severity, the affected endpoint/parameter, and the evidence needed to confirm and fix them.
Remediation
How to fix it
- 01Resolve and validate paths against an allow-listed base directory.
- 02Avoid user-controlled file paths; map to fixed IDs.
- 03Reject traversal sequences after canonicalization.
References
FAQ
What is Path Traversal?
Path traversal uses ../ sequences (or encoded variants) to escape an intended directory and read or write arbitrary files.
How does vulnscanners detect Path Traversal?
vulnscanners runs Nuclei templates and OWASP ZAP active scans against authorized targets, and reports Path Traversal findings with severity, the affected endpoint/parameter, and the evidence needed to confirm and fix them.
How do I fix Path Traversal?
Resolve and validate paths against an allow-listed base directory. Avoid user-controlled file paths; map to fixed IDs. Reject traversal sequences after canonicalization.
How serious is Path Traversal?
Disclosure of sensitive files (configs, keys, source) and potentially code execution via file writes.
Related
Scan your target for real.
Point vulnscanners at an authorized domain or IP range and get a severity-ranked report of what's actually exploitable — including Path Traversal. Credits never expire.