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 251 to 300 of 411
  1. The elevated installer resolves a helper executable through a user-writable temporary directory before the protected program folder.

    Seen in 1 report
  2. The endpoint decoded a base64 parameter and used the result directly in a file read without confining it to an allowed directory.

    Seen in 1 report
  3. The endpoint did not restrict which methods could be invoked or with what arguments.

    Seen in 1 report
  4. The endpoint joins a user-supplied file path into a filesystem path without validation and lacks authentication.

    Seen in 1 report
  5. The endpoint passed the user-supplied path straight to a file-reading function without restricting it to a safe base directory.

    Seen in 1 report
  6. The error ID from the Sentry response was concatenated into action button URLs without validation.

    Seen in 1 report
  7. The error parameter was concatenated onto the portal directory without canonicalisation or a prefix check.

    Seen in 1 report
  8. The export page used a user-supplied path in file operations without validation.

    Seen in 1 report
  9. The exported provider opened the caller-supplied path without checking it stayed inside the app's own directory.

    Seen in 1 report
  10. The extension blocklist contained the extension with a trailing space instead of the bare extension.

    Seen in 1 report
  11. The extension did not limit file paths to an allowed directory, so crafted paths reached blocked files.

    Seen in 1 report
  12. The extract method skipped its name-safety check whenever the caller supplied a destination path.

    Seen in 1 report
  13. The extraction check only rejects absolute paths and never normalises or rejects parent-directory segments.

    Seen in 1 report
  14. The extraction filter was not recursive and did not confirm entry paths stayed in the target directory.

    Seen in 1 report
  15. The extraction function appended entry names to the output directory without sanitising them and did not set the archive library's security flags.

    Seen in 1 report
  16. The extraction function checks for directory traversal using backslashes but does not consider forward slashes.

    Seen in 1 report
  17. The extraction function took the full file name from the archive and concatenated it with the destination path without sanitisation.

    Seen in 1 report
  18. The extraction process did not check for symbolic links, which were later followed when serving files.

    Seen in 1 report
  19. The extraction process did not reject symbolic links, allowing them to be served later.

    Seen in 1 report
  20. The extraction routine did not reject hard links pointing outside the extraction directory.

    Seen in 1 report
  21. The extractor checks the joined path with a string prefix test but never resolves parent segments, so the check never fires.

    Seen in 1 report
  22. The feature API did not validate the file path supplied to it, allowing execution of an attacker file as root.

    Seen in 1 report
  23. The file name from the markdown link was passed to the uploader without validation.

    Seen in 1 report
  24. The file path parameter allowed traversal sequences and the mimetype parameter was reflected into a response header without sanitising.

    Seen in 1 report
  25. The file scheme handler did not normalise or reject parent-directory segments before opening the file.

    Seen in 1 report
  26. The file URL handler did not normalise or reject parent-directory segments when path-as-is was used.

    Seen in 1 report
  27. The file-reading tool never checked that the requested path stayed inside the project root, unlike a sibling tool that used a safe path resolver.

    Seen in 1 report
  28. The file_name parameter was not checked for traversal before being used to build a deletion path.

    Seen in 1 report
  29. The filename extension from the renderer was concatenated into a fallback display name without sanitising.

    Seen in 1 report
  30. The filename from a multipart upload was used without sanitising traversal sequences.

    Seen in 1 report
  31. The filename from the Content-Disposition header was joined to the output directory without rejecting traversal sequences or absolute paths.

    Seen in 1 report
  32. The filename from the Content-Disposition header was used without sanitising traversal sequences.

    Seen in 1 report
  33. The filename is extracted with a basename call before decoding, so sanitising runs on the still-encoded string.

    Seen in 1 report
  34. The filename parameter was passed into the encoded output without sanitising newline characters.

    Seen in 1 report
  35. The filename sanitiser only strips encoded separators and does not reject literal backslashes.

    Seen in 1 report
  36. The filename was only stripped of a fake path prefix and appended to a temporary directory without checking for parent references.

    Seen in 1 report
  37. The filename was passed to a path-building function without sanitisation.

    Seen in 1 report
  38. The finalize endpoint stores attacker-controlled filenames in metadata without sanitisation, and the deletion routine derives paths from them.

    Seen in 1 report
  39. The format parameter was used directly in file path construction without validation or canonicalisation.

    Seen in 1 report
  40. The FTP path was URL-decoded before splitting, and the split loop had no step to resolve or reject dot-dot segments.

    Seen in 1 report
  41. The FUSE library did not jail symlinks and node data was not sanitised.

    Seen in 1 report
  42. The gateway accepted user-controlled path parameters and exposed internal container directories without normalisation or authorisation, enabling directory listing.

    Seen in 1 report
  43. The gateway normalised or stripped semicolon path parameters after routing, so the forwarded path differed from the one used for authorisation.

    Seen in 1 report
  44. The guard used a plain string prefix check on the absolute path without a path separator boundary.

    Seen in 1 report
  45. The handler joins unsanitised input and Express normalises backslashes before the handler sees them.

    Seen in 1 report
  46. The handler trusts archives in internal directories without checking the requested path stays inside, and streams data before the digest check.

    Seen in 1 report
  47. The host-side copy followed symbolic links in the container output directory instead of copying the link itself.

    Seen in 1 report
  48. The HttpFile class passed the user-supplied path to file deletion without sanitising or restricting it.

    Seen in 1 report
  49. The identifier was appended to a base directory without rejecting traversal and the result was not checked to stay inside.

    Seen in 1 report
  50. The ignore check ran on the undecoded path while files were served from the decoded path.

    Seen in 1 report