In-depth lesson · Path traversal
Bypasses and variations
Every point the Path traversal reports back under this heading, best-backed first, each with the reports it is seen in.
-
Rename a crafted EPUB to a PDF extension to get past file type checks.
Seen in 1 report
-
Add query strings and parameters to a URL so only the path portion is validated.
Seen in 1 report
-
Use a glob pattern to match files outside the managed directory during cleanup.
Seen in 1 report
-
Use a crafted profile text chunk in a PNG to make ImageMagick read local files.
Seen in 1 report
-
Use a UNC path to leak the current user's authentication hash.
Seen in 1 report
-
Use a blob name containing traversal sequences to target a different bucket.
Seen in 1 report
-
Use a crafted URI file to carry a path past validation into file operations.
-
Use a crafted backup file with symlinks to write to protected system locations during restore.
-
Use a crafted tar archive with symlinks to create links to arbitrary files.
-
Use a crafted EPUB with encoded slashes replaced by traversal sequences in the archive.
Seen in 1 report
-
Alternate Data Stream paths in RAR entries were used to slip past extraction checks.
Seen in 1 report
-
Reserved device names bypassed path traversal protection in path.normalize().
-
After the device-name fix, use a UNC base path with path.join() and a device name containing traversal to escape the uploads directory.
Seen in 1 report
-
Appending traversal sequences to a blocked URL changed the response from blocked to allowed.
Seen in 1 report
-
A trailing backslash bypassed the deny list on Windows.
Seen in 1 report
-
A Windows path length limitation was used to shape where the attachment was written.
Seen in 1 report
-
A redirect gadget that preserves method and body was chained to turn client-side path traversal into a cross-origin request.
Seen in 1 report
-
Disagreeing PAX and ustar header sizes were used to hide a nested archive from scanners.
-
URL-encoded dots in a branch name were decoded by the HTTP client into traversal sequences after being inserted unencoded into an API URL.
Seen in 1 report
-
The local file staging allowlist was itself a user-supplied connection property, so it could be pointed at any path.
Seen in 1 report
-
The earlier path traversal fix validated the path but did not check whether the destination was a symbolic link pointing outside the repository.
Seen in 1 report
-
The path normalisation ran before URL decoding and only matched literal slashes, so encoded slashes and dots survived and were decoded afterwards without re-validation.
Seen in 1 report
-
The signature check made a request to a URL derived from user input without sanitising traversal sequences, so the check passed for unintended endpoints.
-
The bad URL check only ran for URLs without a host, so supplying a host skipped the traversal check.
Seen in 1 report
-
Use a traversal bypass to include an Apache access log, poison it, and reach code execution.
Seen in 1 report
-
Use URL-encoded traversal sequences such as encoded dot-dot-slash and encoded backslash to escape the public directory.
Seen in 1 report
-
Use broken traversal patterns such as repeated dots and slashes to get past a filter that only blocks the literal dot-dot-slash.
Seen in 1 report
-
Hide a malicious entry between two benign entries so the scanner stops reading before it reaches it while the extractor still unpacks it.
Seen in 1 report
-
Return a URI with no scheme so the scheme check falls through and the raw path is used without the app-directory checks.
Seen in 1 report
-
Percent-encode a dot in a content URI so the raw-byte prefix check misses it while the platform decodes the authority.
Seen in 1 report
-
Use a semicolon-slash sequence that the proxy does not normalise but the backend treats as traversal.
Seen in 1 report
-
Insert a traversal segment before a protected management path to slip past a filter that matches the literal prefix.
Seen in 1 report
-
Use backslashes in a path so a library normalises them after a traversal check has already run.
Seen in 1 report
-
Append an encoded fragment so a backend's fixed URL suffix is ignored and the traversed path is used.
Seen in 1 report
-
Use a dangling symlink so the existence check returns false and the link check is skipped by short-circuit evaluation.
Seen in 1 report
-
Insert a CRLF sequence before a traversal segment to get past a 403 block on a protected endpoint.
Seen in 1 report
-
Use special characters to cut off an appended filename suffix.
Seen in 1 report
-
Use an encoded slash to create new parent segments after an early cleanup.
Seen in 1 report
-
Use a literal backslash on Windows where only encoded separators are filtered.
Seen in 1 report
-
Use superscript digits after COM or LPT to slip past an ASCII-only reserved-name check.
Seen in 1 report
-
URL-encode the path segment so the proxy does not recognise the endpoint while the application decodes it.
-
Use double-colon encoding that the application unescapes into slashes.
-
Use a theme directory whose name starts with the expected prefix so the template candidate matches a real directory.
-
Point the data directory at a non-existent path to bypass directory checks.
Seen in 1 report
-
Supply the name parameter so the sanitiser, which only runs when it is empty, is skipped.
-
Use a content URI backed directory to reach the code path that skips validation.
Seen in 1 report
-
Combine a crafted offline header with a navigation throttle bypass to reach the file.
Seen in 1 report
-
Forge the login identity using the server's own certificate name to obtain a write session.
Seen in 1 report
-
Use a symlink in a user-selected directory to redirect a copy onto a protected host file.
Seen in 1 report
-
Plant the helper executable in the writable temporary folder the elevated installer searches first.
Seen in 1 report