In-depth lesson · Path traversal
Root causes
Every point the Path traversal reports back under this heading, best-backed first, each with the reports it is seen in.
-
User-supplied paths are used in file operations without checking that they stay within the intended directory.
Seen in 90 reports
-
Archive entry names were joined onto a destination path without checking for traversal sequences or absolute paths.
Seen in 44 reports
-
The raw request URL was joined to the served directory without normalising or rejecting parent-directory segments.
Seen in 34 reports
-
Many file-handling methods passed caller-controlled paths straight into file operations without normalising or restricting them.
Seen in 15 reports
-
User-supplied file paths were used directly without validation or restriction to the intended directory.
Seen in 10 reports
-
Archive extraction trusts entry names and symlinks without verifying they stay within the destination directory.
Seen in 9 reports
-
File operation methods passed user-supplied paths to copy, delete or write calls without restricting them to an allowed directory.
Seen in 9 reports
-
Request parameters and cookie values were concatenated into include paths without checking they stayed inside the intended directory.
Seen in 8 reports
-
User-controlled input was passed directly to a file include without validation or restriction.
Seen in 8 reports
-
A privileged method accepted a path from a low-privileged caller without checking it stayed within an intended directory.
Seen in 7 reports
-
A user-supplied path was passed to a file deletion routine without validation.
Seen in 7 reports
-
The check compared each symlink target against the destination prefix but ignored symlinks created earlier in the same archive that redirect later paths.
Seen in 7 reports
-
A user-supplied file name was appended to a base directory without validation or normalisation.
Seen in 6 reports
-
Applications follow symbolic links without checking whether they point outside the intended directory.
Seen in 6 reports
-
File deletion endpoints build filesystem paths from user input without validating they stay inside the storage directory.
Seen in 6 reports
-
The code checked that the target path started with the destination path but did not ensure the destination ended with a slash.
Seen in 6 reports
-
User input was concatenated into a file path without checking that the resolved path stayed inside the intended directory.
Seen in 6 reports
-
A user-supplied path was passed to a file system read without resolving it and confirming it stayed inside the base directory.
Seen in 5 reports
-
Path validation helpers did not resolve or reject symbolic and hard links.
Seen in 5 reports
-
Upload handlers use client-supplied filenames or absolute paths directly when building the save path.
Seen in 5 reports
-
A user-supplied string reached a system call without validation, so traversal characters reached command execution.
Seen in 4 reports
-
Clients trusted paths received from a server or peer and wrote to them without normalising.
Seen in 4 reports
-
Components fail to validate file paths, allowing absolute or relative paths to escape the intended directory.
Seen in 4 reports
-
Plain text credentials and cloud keys are stored in readable logs and configuration files.
Seen in 4 reports
-
Symbolic links were not properly validated before file operations, letting writes be redirected to protected locations.
Seen in 4 reports
-
The IOCTL handler passed a caller-supplied path to file operations without validating or restricting it.
Seen in 4 reports
-
The path check only looked for forward-slash traversal and ignored Windows backslash separators.
Seen in 4 reports
-
ZIP entries were extracted without validating or sanitising their paths.
Seen in 4 reports
-
Attachment filenames were used in path construction without normalisation or a check that the result stayed in the save folder.
Seen in 3 reports
-
Buffer and Uint8Array inputs were not handled by the path validation.
Seen in 3 reports
-
Download endpoints accepted a user-supplied path without restricting it to the intended directory or checking authentication.
Seen in 3 reports
-
File operations open files without checking for symbolic links, unlike other methods in the same component.
Seen in 3 reports
-
Insufficient validation of file paths lets an app traverse outside its sandbox.
Seen in 3 reports
-
Metadata from documents or pages was used directly in output filenames without sanitisation.
Seen in 3 reports
-
Path normalisation logic does not recognise special path forms such as bare Windows drive names or internal dots.
Seen in 3 reports
-
Paths passed through a custom scheme were not validated, allowing traversal outside the intended directory.
Seen in 3 reports
-
Requested paths were resolved and served without rejecting symbolic links that point outside the web root.
Seen in 3 reports
-
The args4j parser's at-file expansion was left enabled by default when processing CLI commands.
Seen in 3 reports
-
The containment check compared the requested path against the base directory as a plain string prefix without a trailing separator, so sibling directories passed.
Seen in 3 reports
-
The file-serving allowlist could be bypassed with query parameters, and on Windows the deny list only matched forward slashes.
Seen in 3 reports
-
The proxy and the backend normalise traversal sequences differently, so a path the proxy treats as harmless reaches a protected backend endpoint.
Seen in 3 reports
-
The safety check runs on the still-encoded string before decoding, so encoded traversal survives validation.
Seen in 3 reports
-
The web interface passed user-supplied paths and cookie values into file handling without sanitising traversal sequences.
Seen in 3 reports
-
User-controlled input is passed directly to a PHP include without validation.
Seen in 3 reports
-
User-controlled values were interpolated into a filesystem path without validation.
Seen in 3 reports
-
User-supplied filenames and XML attribute values were used to build server-side paths without validation.
Seen in 3 reports
-
XML parsers left external entity resolution enabled, allowing file disclosure alongside traversal.
Seen in 3 reports
-
A change to path normalisation failed to resolve traversal sequences before mapping URLs to filesystem paths.
-
A file path derived from user-controlled URL data was passed straight into require() without confining it to the intended directory.
Seen in 2 reports
-
A location directive lacked a trailing slash while its alias had one, so traversal after the prefix escaped the directory.
Seen in 2 reports