Directory Traversal
Summary
Directory Traversal refers to exploitation of insufficient security validations to access unauthorized directories via unexpected user input.
Testing methodology
Description
A Directory Traversal vulnerability allows an attacker to access files and directories that are stored outside the web root folder. By manipulating variables that reference files with 'dot-dot-slash (../)' sequences and its variations, attackers can traverse to arbitrary directories and access files outside of the intended directory.
Remediations
- Validate and sanitize user input to prevent the inclusion of file system traversal characters.
- Implement an Allow-List of allowed file paths and deny all other paths.
Usually follows
Usually precedes
Affected components
- Server