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 201 to 250 of 411
  1. The app used the untrusted display name from the content provider as a file path without sanitising traversal sequences.

    Seen in 1 report
  2. The app uses the last path segment of a URI without decoding or sanitising it.

    Seen in 1 report
  3. The application fails to validate or restrict a file path supplied in a network request.

    Seen in 1 report
  4. The application filtered for a literal traversal string but did not normalise the path before use.

    Seen in 1 report
  5. The application searched for its OpenSSL configuration in a directory writable by low-privileged users.

    Seen in 1 report
  6. The archive class extracted entries without validating that the destination path stayed within the intended directory.

    Seen in 1 report
  7. The archive parser did not canonicalise or restrict the destination path derived from archive entries.

    Seen in 1 report
  8. The asset handler fell back to classpath lookup when a file was missing from the base directory, exposing configuration files and compiled classes.

    Seen in 1 report
  9. The backend checked only for the presence of a substring in the path instead of confirming the resolved path stayed inside an allowed directory.

    Seen in 1 report
  10. The backup service followed a symbolic link supplied by a low-privileged user and wrote to the target without validating the path.

    Seen in 1 report
  11. The base parameter was not sanitised for traversal while the filename parameter was.

    Seen in 1 report
  12. The basename argument was joined to the temporary directory without rejecting or normalising traversal sequences.

    Seen in 1 report
  13. The blacklist and control-character filtering ran before NFKD normalisation, so normalisation recreated path separators after validation.

    Seen in 1 report
  14. The blob key was accepted from user-influenced input and joined into a filesystem path without containment checks.

    Seen in 1 report
  15. The blocking decision used the raw, unnormalised request URI instead of a normalised path.

    Seen in 1 report
  16. The browser process trusted the theme name from XSETTINGS without validation, and the path append helper did not block parent-directory segments in release builds.

    Seen in 1 report
  17. The build tool trusted user-supplied environment variables to install packages without validation.

    Seen in 1 report
  18. The cab extraction routine did not validate file paths.

    Seen in 1 report
  19. The canonicalisation function ignored forward slashes, so traversal sequences using them survived the check.

    Seen in 1 report
  20. The chunkFile parameter was passed to rename and copy operations without checking it referred to an uploaded temporary file.

    Seen in 1 report
  21. The client did not validate relative paths in data received from the server.

    Seen in 1 report
  22. The client honoured a server request to read a local file without restricting which files or asking the user.

    Seen in 1 report
  23. The client identifier was used verbatim in a file path and path appending did not neutralise parent components.

    Seen in 1 report
  24. The code assumed path joining would keep results inside the base directory, but an absolute component replaced the base entirely.

    Seen in 1 report
  25. The code did not exit after detecting an invalid path and still used the supplied path in a delete call.

    Seen in 1 report
  26. The code resolved the joined path but never verified the result remained a descendant of the base directory.

    Seen in 1 report
  27. The component did not normalise relative paths before use and a timing window allowed the check to be bypassed.

    Seen in 1 report
  28. The condition checking for traversal sequences used a property that does not exist on the lookup result, so the removal code never ran.

    Seen in 1 report
  29. The config option accepted any file path without checking that the file was trusted.

    Seen in 1 report
  30. The crawler derived a filename from the file input's accept attribute and used it in path resolution without sanitising traversal sequences.

    Seen in 1 report
  31. The database name is concatenated into a filesystem path without normalisation or a containment check.

    Seen in 1 report
  32. The debug endpoint lacks authentication and does not sanitise the user-supplied filename.

    Seen in 1 report
  33. The decoded last path segment of an input URI was used as an output filename without sanitisation.

    Seen in 1 report
  34. The decoded parameter was used directly as a file path without validation or restriction.

    Seen in 1 report
  35. The deep link handler did not validate the path of the shop URL before handing it to the WebView.

    Seen in 1 report
  36. The delete route lacked CSRF protection and authentication and passed the id straight into recursive deletion.

    Seen in 1 report
  37. The demuxer allowed external file references from inside a container without restricting local file access.

    Seen in 1 report
  38. The destination directory was deleted recursively before the symlink safety check ran, so a symlink redirected the deletion outside.

    Seen in 1 report
  39. The destination was opened with a truncating write mode just to read its file type and mode, so the open itself destroyed the contents and followed any symlink.

    Seen in 1 report
  40. The device-name validation was not applied in the UNC branch of path.join() normalisation.

    Seen in 1 report
  41. The disk service did not sanitise the key value before building a file path, so a forged signed key could traverse directories.

    Seen in 1 report
  42. The download endpoint did not restrict which files could be accessed, exposing configuration and logs.

    Seen in 1 report
  43. The download endpoint did not verify authentication and used user input directly as a file path.

    Seen in 1 report
  44. The download endpoint lacked authentication checks as well as path validation.

    Seen in 1 report
  45. The download manager concatenated the raw path into a file URL without percent-escaping, so encoded traversal survived sanitisation and was decoded later.

    Seen in 1 report
  46. The download path was opened with write flags but without a no-follow flag, so the operating system resolved any symlink at that path.

    Seen in 1 report
  47. The download script passes a user-supplied filename straight to a file-read function without restricting it to the intended directory or file type.

    Seen in 1 report
  48. The downloaded file name was joined onto a temp folder path without sanitising parent-directory sequences.

    Seen in 1 report
  49. The downloader called extractall on untrusted archives without validating entry paths.

    Seen in 1 report
  50. The driver resolves a link before checking it is safe.

    Seen in 1 report