Skip to content

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.

Back to the lesson 1 to 50 of 411
  1. User-supplied paths are used in file operations without checking that they stay within the intended directory.

    Seen in 90 reports
  2. Archive entry names were joined onto a destination path without checking for traversal sequences or absolute paths.

    Seen in 44 reports
  3. The raw request URL was joined to the served directory without normalising or rejecting parent-directory segments.

    Seen in 34 reports
  4. Many file-handling methods passed caller-controlled paths straight into file operations without normalising or restricting them.

    Seen in 15 reports
  5. User-supplied file paths were used directly without validation or restriction to the intended directory.

    Seen in 10 reports
  6. Archive extraction trusts entry names and symlinks without verifying they stay within the destination directory.

    Seen in 9 reports
  7. File operation methods passed user-supplied paths to copy, delete or write calls without restricting them to an allowed directory.

    Seen in 9 reports
  8. Request parameters and cookie values were concatenated into include paths without checking they stayed inside the intended directory.

    Seen in 8 reports
  9. User-controlled input was passed directly to a file include without validation or restriction.

    Seen in 8 reports
  10. A privileged method accepted a path from a low-privileged caller without checking it stayed within an intended directory.

    Seen in 7 reports
  11. A user-supplied path was passed to a file deletion routine without validation.

    Seen in 7 reports
  12. The check compared each symlink target against the destination prefix but ignored symlinks created earlier in the same archive that redirect later paths.

    Seen in 7 reports
  13. A user-supplied file name was appended to a base directory without validation or normalisation.

    Seen in 6 reports
  14. Applications follow symbolic links without checking whether they point outside the intended directory.

    Seen in 6 reports
  15. File deletion endpoints build filesystem paths from user input without validating they stay inside the storage directory.

    Seen in 6 reports
  16. The code checked that the target path started with the destination path but did not ensure the destination ended with a slash.

    Seen in 6 reports
  17. User input was concatenated into a file path without checking that the resolved path stayed inside the intended directory.

    Seen in 6 reports
  18. A user-supplied path was passed to a file system read without resolving it and confirming it stayed inside the base directory.

    Seen in 5 reports
  19. Path validation helpers did not resolve or reject symbolic and hard links.

    Seen in 5 reports
  20. Upload handlers use client-supplied filenames or absolute paths directly when building the save path.

    Seen in 5 reports
  21. A user-supplied string reached a system call without validation, so traversal characters reached command execution.

    Seen in 4 reports
  22. Clients trusted paths received from a server or peer and wrote to them without normalising.

    Seen in 4 reports
  23. Components fail to validate file paths, allowing absolute or relative paths to escape the intended directory.

    Seen in 4 reports
  24. Plain text credentials and cloud keys are stored in readable logs and configuration files.

    Seen in 4 reports
  25. Symbolic links were not properly validated before file operations, letting writes be redirected to protected locations.

    Seen in 4 reports
  26. The IOCTL handler passed a caller-supplied path to file operations without validating or restricting it.

    Seen in 4 reports
  27. The path check only looked for forward-slash traversal and ignored Windows backslash separators.

    Seen in 4 reports
  28. ZIP entries were extracted without validating or sanitising their paths.

    Seen in 4 reports
  29. Attachment filenames were used in path construction without normalisation or a check that the result stayed in the save folder.

    Seen in 3 reports
  30. Buffer and Uint8Array inputs were not handled by the path validation.

    Seen in 3 reports
  31. Download endpoints accepted a user-supplied path without restricting it to the intended directory or checking authentication.

    Seen in 3 reports
  32. File operations open files without checking for symbolic links, unlike other methods in the same component.

    Seen in 3 reports
  33. Insufficient validation of file paths lets an app traverse outside its sandbox.

    Seen in 3 reports
  34. Metadata from documents or pages was used directly in output filenames without sanitisation.

    Seen in 3 reports
  35. Path normalisation logic does not recognise special path forms such as bare Windows drive names or internal dots.

    Seen in 3 reports
  36. Paths passed through a custom scheme were not validated, allowing traversal outside the intended directory.

    Seen in 3 reports
  37. Requested paths were resolved and served without rejecting symbolic links that point outside the web root.

    Seen in 3 reports
  38. The args4j parser's at-file expansion was left enabled by default when processing CLI commands.

    Seen in 3 reports
  39. The containment check compared the requested path against the base directory as a plain string prefix without a trailing separator, so sibling directories passed.

    Seen in 3 reports
  40. The file-serving allowlist could be bypassed with query parameters, and on Windows the deny list only matched forward slashes.

    Seen in 3 reports
  41. The proxy and the backend normalise traversal sequences differently, so a path the proxy treats as harmless reaches a protected backend endpoint.

    Seen in 3 reports
  42. The safety check runs on the still-encoded string before decoding, so encoded traversal survives validation.

    Seen in 3 reports
  43. The web interface passed user-supplied paths and cookie values into file handling without sanitising traversal sequences.

    Seen in 3 reports
  44. User-controlled input is passed directly to a PHP include without validation.

    Seen in 3 reports
  45. User-controlled values were interpolated into a filesystem path without validation.

    Seen in 3 reports
  46. User-supplied filenames and XML attribute values were used to build server-side paths without validation.

    Seen in 3 reports
  47. XML parsers left external entity resolution enabled, allowing file disclosure alongside traversal.

    Seen in 3 reports
  48. A change to path normalisation failed to resolve traversal sequences before mapping URLs to filesystem paths.

    Seen in 2 reports
  49. A file path derived from user-controlled URL data was passed straight into require() without confining it to the intended directory.

    Seen in 2 reports
  50. A location directive lacked a trailing slash while its alias had one, so traversal after the prefix escaped the directory.

    Seen in 2 reports