Skip to content

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.

Back to the lesson 151 to 193 of 193
  1. Chain file inclusion with a PEAR command-line script to write a PHP file and reach code execution.

    Seen in 1 report
  2. Chain a config file read with an image upload to escalate to code execution.

    Seen in 1 report
  3. 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
  4. Chain a traversed write to a web-accessible path with a script payload to reach code execution.

    Seen in 1 report
  5. Chain a traversed write of a cron drop-in to root command execution when extraction runs as root.

    Seen in 1 report
  6. Chain a traversed write into private storage with a relaunch so the app loads the planted library.

    Seen in 1 report
  7. A patch on the traversal parameter was bypassed with a variation of the same input.

    Seen in 1 report
  8. A second archive was built using the digest observed in the first error so verification passed.

    Seen in 1 report
  9. An intermediate symbolic link in the path evaded a check that only inspected the final component.

    Seen in 1 report
  10. The file was written before validation ran, so it landed even though the request returned an error.

    Seen in 1 report
  11. Where a static machine key or dialog encryption key was configured, the file read escalated to code execution.

    Seen in 1 report
  12. Pointing the template parameter at a remote template turned a file read into template rendering and code execution.

    Seen in 1 report
  13. An inline dataset definition mapped raw file bytes to pixel values to read arbitrary local files.

    Seen in 1 report
  14. A backslash-based traversal variant got past the WAF that blocked forward slashes.

    Seen in 1 report
  15. A null byte in the type name truncated the appended .dll extension so a different file could be loaded.

    Seen in 1 report
  16. A crafted traineddata bundle bypassed the sandbox by setting debug and user pattern file options.

    Seen in 1 report
  17. The same file read worked through a second parameter carrying a base64-encoded path.

    Seen in 1 report
  18. 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.

    Seen in 1 report
  19. Use a dot segment as a placeholder for the current directory to get past canonicalisation of a file URL.

    Seen in 1 report
  20. Rely on a browser forwarding custom headers across a redirect to leak authentication and CSRF tokens to an attacker-controlled server.

    Seen in 1 report
  21. Include a null byte in a filename buffer to truncate a formatted path and control the final destination.

    Seen in 1 report
  22. Write partially controlled content into a uWSGI configuration file and use its exec operator to run a command on reload.

    Seen in 1 report
  23. Encode traversal segments so the path is decoded before a prefix check that does not normalise, letting the check pass.

    Seen in 1 report
  24. Use encoded UNIX path sequences to get past a traversal check that only handles unencoded paths.

    Seen in 1 report
  25. Bypass a check that validates a symlink target before backslashes are converted to forward slashes.

    Seen in 1 report
  26. Drop the validator function from a foreign data wrapper so the handler no longer checks file paths.

    Seen in 1 report
  27. Appending a query string to a traversed path stopped the application adding a file extension.

    Seen in 1 report
  28. Use null bytes to get past a string-based traversal check that the underlying file functions ignore.

    Seen in 1 report
  29. Make the path value parse as a URI so the URL-parser-based confinement check is skipped.

    Seen in 1 report
  30. Append a null byte and use base64 encoding when plain traversal is filtered.

    Seen in 1 report
  31. Find the origin address through a certificate search service to reach the application directly past the WAF.

    Seen in 1 report
  32. Try sandbox bypasses and the source function to read files from a sandboxed template.

    Seen in 1 report
  33. Exploit a length mismatch between the buffer used for validation and the buffer used for writing.

    Seen in 1 report
  34. Use URL-encoded backslashes where forward slashes are rejected.

    Seen in 1 report
  35. When a filter blocks one system filename, request a different system file instead.

    Seen in 1 report
  36. Append a null byte to a traversal payload to get past the filter.

    Seen in 1 report
  37. Use an encoded fragment to drop the trailing query appended by the backend.

    Seen in 1 report
  38. Use double slashes so the path normalisation regex fails to remove the traversal.

    Seen in 1 report
  39. Use traversal sequences with a semicolon to get past the reverse proxy's URL parsing.

    Seen in 1 report
  40. Double URL encoding of a protected directory name bypasses the single-decode check.

    Seen in 1 report
  41. Extra slashes in the traversal sequence bypass the load balancer's URL normalisation and reach the vulnerable application.

    Seen in 1 report
  42. A path containing a specific marker string or ending in a static file extension bypasses the authorisation check.

    Seen in 1 report
  43. The traversal check only looks for backslash sequences, so forward-slash traversal sequences get through.

    Seen in 1 report