Skip to content

In-depth lesson · Client-side path traversal (CSPT)

Root causes

Every point the Client-side path traversal (CSPT) reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 1 to 29 of 29
  1. User-controlled cookie values were passed into file path handling without sanitising traversal sequences, allowing reads and deletes outside the intended directory.

    Seen in 1 report
  2. The account name parameter built a file path without sanitising traversal sequences, and the upload endpoint required no authentication.

    Seen in 1 report
  3. The delete route lacked CSRF protection and authentication and passed the user-supplied id straight into recursive file deletion without sanitising traversal sequences.

    Seen in 1 report
  4. The Ingress path value was written into generated nginx configuration without sanitisation, allowing config injection via alias and location directives.

    Seen in 1 report
  5. JavaScript concatenated user input directly into a URL path without sanitising traversal characters, and an OAuth endpoint allowed an open redirect via its state parameter.

    Seen in 1 report
  6. The two mkdtemp functions were not routed through the shared path validation helper, so the permission model's path check never ran on their arguments.

    Seen in 1 report
  7. The build tool trusted user-supplied environment variables to install packages without validation, and the internal API proxy did not sanitise paths for per-deployment namespaces.

    Seen in 1 report
  8. The uninstall function used the user-supplied name parameter in a file path without sanitising it, enabling traversal to a malicious Python file that is imported.

    Seen in 1 report
  9. The server validated ownership only on the first design ID in the path and then used the raw path to read a file, so traversal after the owned ID reached another user's directory.

    Seen in 1 report
  10. The application used the URL path directly in a client-side fetch without validating or encoding it, then used the response in a subsequent authenticated request.

    Seen in 1 report
  11. Artifact links allowed traversal sequences in the repository name, causing the request to be sent to a different path.

    Seen in 1 report
  12. The temporary file name for partial PUT was derived from the user-controlled path with separators merely replaced by dots rather than properly sanitised.

    Seen in 1 report
  13. The application inserted attacker-controlled input into a request path without validation, and the browser followed 307 or 308 redirects that preserve method and body.

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

    Seen in 1 report
  15. The branch name was placed into the API URL without encoding, and the HTTP client decoded the encoded dots into traversal sequences.

    Seen in 1 report
  16. The application validated the signature by making a request to a URL derived from user input without sanitising traversal sequences, so the check passed for unintended endpoints.

    Seen in 1 report
  17. The static file handler did not properly normalise or validate URL-encoded traversal sequences before issuing a redirect, allowing escape from the public directory.

    Seen in 1 report
  18. Filename validation only rejected absolute paths and traversal tokens and never resolved symlinks or junctions, so the final write was not checked against the real resolved location.

    Seen in 1 report
  19. The application ID was appended to a path without sanitisation, and the ownership check compared against a root-owned shared directory, so traversal to other root-owned files passed validation.

    Seen in 1 report
  20. An earlier fix sanitised only three theme properties and hardened only the X11 cursor loader, leaving the cursor theme name and size unvalidated in the Wayland loader.

    Seen in 1 report
  21. The finalize endpoint stored attacker-supplied filenames verbatim in attachment metadata, and the backup-sizes branch derived both the file to delete and its directory from that metadata.

    Seen in 1 report
  22. The image editor's client state field was neither encrypted nor signed, so a client-supplied image path was trusted and cached, and the cache handler served it without restricting it to the intended directory.

    Seen in 1 report
  23. The loader checked only that a path existed and then opened it, following archive-created symbolic links without verifying the resolved file stayed inside the extraction directory.

    Seen in 1 report
  24. Client-side code did not validate or sanitise the organisation ID from the URL before using it to construct a PUT request path.

    Seen in 1 report
  25. The export folder argument was passed straight into a path-building call without the validation applied to the report name, so the destination directory and file extension were attacker-controlled.

    Seen in 1 report
  26. The privileged updater loaded a configuration file from a user-writable location and trusted path values inside it, including traversal, without validating them.

    Seen in 1 report
  27. The clone parameter was joined to the API path without sanitisation, the login redirect check was bypassed with a URL lacking a netloc, and the browser forwarded custom headers on redirect.

    Seen in 1 report
  28. The file deletion endpoint lacked any authorisation check and failed to sanitise user-supplied file paths, while the XML import feature used an insecure parser configuration.

    Seen in 1 report
  29. The statement identifier from the public URL was concatenated into the internal request path without normalising or validating it, so encoded dot-dot-slash sequences escaped the intended path.

    Seen in 1 report