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.
-
Chain file inclusion with a PEAR command-line script to write a PHP file and reach code execution.
-
Chain a config file read with an image upload to escalate to code execution.
-
Chain a source file read to admin credentials, then upload a file manager through an upload feature with no extension validation.
Seen in 1 report
-
Chain a traversed write to a web-accessible path with a script payload to reach code execution.
-
Chain a traversed write of a cron drop-in to root command execution when extraction runs as root.
Seen in 1 report
-
Chain a traversed write into private storage with a relaunch so the app loads the planted library.
Seen in 1 report
-
A patch on the traversal parameter was bypassed with a variation of the same input.
Seen in 1 report
-
A second archive was built using the digest observed in the first error so verification passed.
-
An intermediate symbolic link in the path evaded a check that only inspected the final component.
Seen in 1 report
-
The file was written before validation ran, so it landed even though the request returned an error.
Seen in 1 report
-
Where a static machine key or dialog encryption key was configured, the file read escalated to code execution.
Seen in 1 report
-
Pointing the template parameter at a remote template turned a file read into template rendering and code execution.
-
An inline dataset definition mapped raw file bytes to pixel values to read arbitrary local files.
-
A backslash-based traversal variant got past the WAF that blocked forward slashes.
Seen in 1 report
-
A null byte in the type name truncated the appended .dll extension so a different file could be loaded.
Seen in 1 report
-
A crafted traineddata bundle bypassed the sandbox by setting debug and user pattern file options.
Seen in 1 report
-
The same file read worked through a second parameter carrying a base64-encoded path.
Seen in 1 report
-
After achieving a file write via a document archive, drop a desktop autostart entry and wait for a log out and log in to trigger execution.
-
Use a dot segment as a placeholder for the current directory to get past canonicalisation of a file URL.
Seen in 1 report
-
Rely on a browser forwarding custom headers across a redirect to leak authentication and CSRF tokens to an attacker-controlled server.
-
Include a null byte in a filename buffer to truncate a formatted path and control the final destination.
Seen in 1 report
-
Write partially controlled content into a uWSGI configuration file and use its exec operator to run a command on reload.
Seen in 1 report
-
Encode traversal segments so the path is decoded before a prefix check that does not normalise, letting the check pass.
Seen in 1 report
-
Use encoded UNIX path sequences to get past a traversal check that only handles unencoded paths.
Seen in 1 report
-
Bypass a check that validates a symlink target before backslashes are converted to forward slashes.
Seen in 1 report
-
Drop the validator function from a foreign data wrapper so the handler no longer checks file paths.
Seen in 1 report
-
Appending a query string to a traversed path stopped the application adding a file extension.
-
Use null bytes to get past a string-based traversal check that the underlying file functions ignore.
Seen in 1 report
-
Make the path value parse as a URI so the URL-parser-based confinement check is skipped.
Seen in 1 report
-
Append a null byte and use base64 encoding when plain traversal is filtered.
Seen in 1 report
-
Find the origin address through a certificate search service to reach the application directly past the WAF.
-
Try sandbox bypasses and the source function to read files from a sandboxed template.
Seen in 1 report
-
Exploit a length mismatch between the buffer used for validation and the buffer used for writing.
Seen in 1 report
-
Use URL-encoded backslashes where forward slashes are rejected.
Seen in 1 report
-
$2,100
-
-
When a filter blocks one system filename, request a different system file instead.
Seen in 1 report
-
$1,000
-
-
Append a null byte to a traversal payload to get past the filter.
Seen in 1 report
-
Use an encoded fragment to drop the trailing query appended by the backend.
Seen in 1 report
-
Use double slashes so the path normalisation regex fails to remove the traversal.
Seen in 1 report
-
Use traversal sequences with a semicolon to get past the reverse proxy's URL parsing.
Seen in 1 report
-
Double URL encoding of a protected directory name bypasses the single-decode check.
-
Extra slashes in the traversal sequence bypass the load balancer's URL normalisation and reach the vulnerable application.
-
A path containing a specific marker string or ending in a static file extension bypasses the authorisation check.
Seen in 1 report
-
The traversal check only looks for backslash sequences, so forward-slash traversal sequences get through.