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.
-
Bypass the existing authentication mechanism before reaching the traversal method.
Seen in 8 reports
-
Symbolic and hard links inside archives were used to write outside the extraction directory.
Seen in 7 reports
-
Craft an entry name that begins with the destination directory name so a prefix check without a trailing slash passes and the file lands in a sibling directory.
Seen in 6 reports
-
Only some path parameters were sanitised, so the unsanitised working-directory parameter was the way around the filter.
Seen in 5 reports
-
Use double URL encoding to bypass path filtering.
Seen in 5 reports
-
Prefix a path with a trusted directory and then use parent-directory segments to reach an untrusted location, defeating a raw string prefix check.
Seen in 4 reports
-
Supply the path as a Buffer or Uint8Array instead of a string.
Seen in 3 reports
-
Use internal dots in a path to bypass path equivalence checks during partial PUT.
Seen in 3 reports
-
Use a symlink inside a served directory or shared folder to reach files outside it.
Seen in 3 reports
-
Alternate data streams were used to hide payloads and reach arbitrary write locations.
Seen in 3 reports
-
Encode or double-encode traversal so it survives sanitisation and is decoded later.
Seen in 3 reports
-
Use backslashes instead of forward slashes in traversal sequences against a Windows-hosted WebDAV library that only filters forward slashes.
Seen in 3 reports
-
Percent-encoded traversal sequences got past proxies and checks that normalised after decoding.
Seen in 3 reports
-
Create a symlink to the filesystem root from a writable directory to bypass directory permissions.
-
Use symbolic links inside an uploaded archive to point at files outside the extraction directory.
Seen in 2 reports
-
Use a nested sequence that becomes a parent-directory reference only after the filter deletes the inner occurrences.
-
Name a symlink with a dot followed by a newline so the end-of-line anchored check does not recognise it as a symlink and does not remove it.
-
Use encoded traversal sequences to get past the incomplete fix in the following version and still escape alias-configured directories.
-
Overwrite built-in utility functions that the permission check relies on.
Seen in 2 reports
-
Add a trailing space after the blocked file extension.
-
When traversal sequences are blocked, use an absolute path instead.
-
When traversal sequences are stripped, use nested sequences that survive the strip.
-
Use a crafted DCM file to carry a path past validation into file write operations.
-
Adding raw or import query parameters bypassed the file allowlist.
-
Bypass a check that uppercases the path and tests a leading slash by starting the path with a parent segment instead.
-
Mix forward and backslash separators to slip past a blocklist that checks each separately.
Seen in 1 report
-
Use encoded backslashes, which the resolver treats as directory separators, to bypass traversal protection.
Seen in 1 report
-
URL-encode a character in a forbidden name so the ignore check misses it.
Seen in 1 report
-
Append a URL-encoded null byte to a traversal path to truncate the filename at the include.
Seen in 1 report
-
Craft a path so that removing a fixed prefix leaves a double-dot sequence behind.
Seen in 1 report
-
Use an unescaped space in the URI to skip checks on the following character.
Seen in 1 report
-
Submit a traversal token so the verification endpoint returns success without validating it.
Seen in 1 report
-
End traversal paths with a file extension because extensionless paths are treated as directories.
-
A validation error that returns a redirect does not undo the file write, so check whether the file remains on disk after the error.
Seen in 1 report
-
The slash fix only checked the cache key written in the pipeline file, so supplying the key through a CI/CD variable bypassed it.
Seen in 1 report
-
A directory that is a symlink to the writable temporary path lets a write confined to that path reach service configuration files.
Seen in 1 report
-
The traversal filter only removed the literal two-dot sequence, so a null byte between the dots survived the filter yet was still treated as a parent reference.
Seen in 1 report
-
The double-slash and traversal combination bypassed the previous fix for the same issue.
Seen in 1 report
-
View caching limited the attack to one file per restart, so use a race condition to read several files at once.
Seen in 1 report
-
Double encoding got past a naive traversal filter.
-
An absolute path skipped the extension check because validation only applied to relative paths.
Seen in 1 report
-
The security token check sat inside page-injected JavaScript that the page itself could bypass.
Seen in 1 report
-
The extension check searched for the allowed extension anywhere in the path rather than at the end.
Seen in 1 report
-
Only the file parameter was signed, so the unsigned package parameter was trusted instead.
Seen in 1 report
-
The updater split the target filename only on backslashes, so forward slashes escaped the temporary folder.
-
The filter compared against a single lowercase encoding of the dot character, so the uppercase variant slipped past.
Seen in 1 report
-
When a fix canonicalises paths, retry the traversal using forward slashes instead of backslashes, since some canonicalisation routines only treat backslashes as separators.
Seen in 1 report
-
Pad the plugin path with traversal sequences so the extension check passes while the resolved path still escapes.
Seen in 1 report
-
Name an archive entry with a colon-suffixed dot-dot sequence so that the unzip routine strips the colon and turns it into a traversal.
Seen in 1 report
-
Use crafted field names to make the application use query parameters instead of the signed workhorse payload.
Seen in 1 report