Path Traversal
Jump to:
Summary
Path Traversal is a type of application attack where an attacker manipulates file paths to access files and directories outside the intended scope, potentially exposing sensitive data or system files.
Key Characteristics
- Exploits insufficient input validation on file path parameters.
- Uses sequences like “../” to navigate directories upward.
- Targets web applications, APIs, and file management systems.
- Can lead to unauthorized access, data leakage, or remote code execution.
- Often combined with other attacks such as remote file inclusion.
Defensive Controls
- Implement strict input validation and sanitization for file paths.
- Use allowlists to restrict accessible directories and files.
- Employ secure coding practices to avoid direct user input in file operations.
- Configure proper file system permissions to limit access.
- Utilize web application firewalls (WAFs) to detect and block traversal attempts.
Related Security Solutions
Security solutions addressing Path Traversal include web application firewalls, secure coding frameworks, runtime application self-protection (RASP), and vulnerability scanners that detect improper file access controls.
More in Application Attacks