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.
-
Client-side routing and resource loading did not strictly validate or normalise paths, so encoded traversal escaped intended directories.
-
Containment was checked with a lexical prefix comparison instead of real directory boundaries.
Seen in 1 report
-
Crafted directory paths were not validated correctly, letting an app reach files outside its area.
-
Crafted paths are not correctly resolved before the sensitive-location check runs.
Seen in 1 report
-
Credentials were stored in cleartext on the server, so a file read exposed them directly.
-
curl built a local gateway path from an environment variable without resolving it or rejecting parent-directory sequences.
Seen in 1 report
-
Data and index directory paths are not validated or sanitised, and a fallback in path resolution allows traversal.
Seen in 1 report
-
Dot-segment cleanup happens before decoding percent-encoded separators, so a late-decoded slash creates new parent segments.
Seen in 1 report
-
Double colons are unescaped into slashes before use in a file path, and traversal protection is insufficient.
-
Error messages included file contents, turning a failed import into a file read.
Seen in 1 report
-
Exported components accepted attacker-controlled URIs and paths, and a custom permission defaulted to normal because no protection level was set.
Seen in 1 report
-
Extraction used the tar extraction call without the data filter, and a path length symlink resolution bug bypassed path filtering.
Seen in 1 report
-
File paths and deep link parameters were not validated.
-
File-type validation returned true for any path not classified as relative.
Seen in 1 report
-
Filename sanitisation was compiled only for Windows, so other builds used the URL's last path segment unvalidated as the output filename.
Seen in 1 report
-
Fork name inputs were used to build file paths without validation, allowing traversal.
Seen in 1 report
-
Insufficient file path validation let traversal sequences bypass an IP-based restriction.
Seen in 1 report
-
Insufficient input validation and path sanitisation in file operations, combined with a blocklist for dangerous file types and unsafe command construction.
Seen in 1 report
-
Insufficient validation of file paths in the web interface.
-
Insufficient validation of user-supplied file paths in backup logic.
Seen in 1 report
-
JavaScript concatenated user input into a URL path without sanitising traversal characters, and the OAuth endpoint allowed an open redirect.
Seen in 1 report
-
Leftover debug code skipped re-initialisation of CGI variables, letting URL parameters override the filename used in deletion.
Seen in 1 report
-
Naive substring stripping of absolute paths and a directory cache that desynchronised around symlinks and Unicode normalisation.
Seen in 1 report
-
$15,000
-
-
Office failed to sanitise traversal sequences in the query string when constructing the filename for a shortcut file.
Seen in 1 report
-
One parser validates a URL and a different parser loads it, so a URL that passes validation is interpreted differently at load time.
Seen in 1 report
-
Only part of a URL is validated while query strings and parameters are not handled.
Seen in 1 report
-
Ownership was checked only on the first design identifier in the path, and the raw path was then used to read a file.
-
Path validation checks the normal path but does not normalise alternate forms such as NTFS alternate data streams.
Seen in 1 report
-
Path validation enforced a character whitelist but did not restrict the filename to approved entrypoints.
Seen in 1 report
-
Path validation mixed forward-slash joining with OS-separator comparison, so Windows paths escaped the check.
-
Path validation used a call that follows symbolic links, so a symlink inside the repository passed the containment check.
Seen in 1 report
-
Path.Combine was used with user-controlled input without validation, and the patch did not cover paths starting with a separator.
Seen in 1 report
-
Paths from a server response are handled without confining them to the intended directory.
Seen in 1 report
-
Paths supplied by a network directory server are not validated.
-
Poor URL normalisation with double decoding and a reverse proxy forwarding broken paths to the backend.
Seen in 1 report
-
Projects depend on package names that nobody has registered on the public registry.
Seen in 1 report
-
Request path data was passed into a file lookup without normalisation or directory restriction.
Seen in 1 report
-
Request paths were URL-decoded without sanitising, and a configuration value reached a shell command unvalidated.
-
Several Dir methods did not reject null characters in path strings.
-
Signature synchronisation joined attacker-controlled path components to a base directory without normalising or confining the result.
Seen in 1 report
-
Socket path strings were not checked for null bytes, so the operating system truncated the path at the null.
Seen in 1 report
-
String-based extension checks do not account for null bytes that truncate the filename.
Seen in 1 report
-
Symbolic links were not validated sufficiently, allowing sandbox escape.
-
Symlink paths were not sanitised during extraction and leading slashes were stripped from tar entry names.
-
Symlinks created inside a preopen were followed without checking the resolved target stayed inside the sandbox.
Seen in 1 report
-
Tar entry names were concatenated onto a base directory without sanitising traversal sequences, and the endpoint allowed unauthenticated access.
Seen in 1 report
-
The Accept-Language header value was used directly in a file path without sufficient validation.
Seen in 1 report
-
The AJP connector was enabled by default and did not properly restrict which files could be requested, allowing traversal and file inclusion.
Seen in 1 report
-
The API routing parser mishandled encoded question marks in path segments, and the internal CGI script trusted an unsigned identity header.
-
The app accepted a file path without confirming it stayed inside the intended directory.
Seen in 1 report