Skip to content

In-depth lesson · Path traversal

Typical fixes

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 51 to 98 of 98
  1. The leaflet resource route was fixed in version 1.4.21.

    Seen in 1 report
  2. The vendor released an update to correct the exported chart download flaw.

    Seen in 1 report
  3. Reject symbolic links inside snapshot archives or validate their targets before reading or writing.

    Seen in 1 report
  4. Do not build session file paths from user-controlled session IDs, and do not deserialise session files from arbitrary paths.

    Seen in 1 report
  5. Restrict which component methods can be invoked and with what arguments.

    Seen in 1 report
  6. Sanitise deeplink filename parameters and keep saved files inside the app's private directory.

    Seen in 1 report
  7. Require authentication for settings that define base directories for file operations.

    Seen in 1 report
  8. Do not embed admin secrets in mobile app packages.

    Seen in 1 report
  9. Validate the entire URL including query strings and parameters, not just the path portion.

    Seen in 1 report
  10. Use binary-safe checks that account for null bytes when validating filenames.

    Seen in 1 report
  11. Use the same parser for validation and processing, or validate the parsed result rather than the raw input.

    Seen in 1 report
  12. Load DLLs only from trusted directories.

    Seen in 1 report
  13. Remove the vulnerable file-retrieval code rather than only removing the way to learn the monitoring UUID.

    Seen in 1 report
  14. Resolve traversal sequences before applying WAF block rules.

    Seen in 1 report
  15. Reject traversal sequences and absolute paths in filenames taken from response headers.

    Seen in 1 report
  16. Check that the joined output path stays inside the chosen output directory.

    Seen in 1 report
  17. Improved path validation in the directory path parser.

    Seen in 1 report
  18. Check the final resolved path rather than the raw input, so absolute paths cannot discard the base directory.

    Seen in 1 report
  19. Restrict downloads to the intended directory and allowed file types.

    Seen in 1 report
  20. Normalise the database name and confirm the resolved path stays inside the configured database directory.

    Seen in 1 report
  21. Validate and sanitise the plugin identifier before concatenating it into a path.

    Seen in 1 report
  22. Sanitise filenames written into attachment metadata and confine deletion paths to the uploads directory.

    Seen in 1 report
  23. Strip directory separators from the name parameter and apply the sanitiser unconditionally.

    Seen in 1 report
  24. Decode and sanitise the last path segment before building the destination path.

    Seen in 1 report
  25. Resolve helper executables from the protected program folder, not a user-writable temporary directory.

    Seen in 1 report
  26. Validate identifiers from sync before using them as filesystem path components.

    Seen in 1 report
  27. Reject separators and dot segments in filenames read from shared containers and check the resulting path stays inside the folder.

    Seen in 1 report
  28. Apply the safe path component validation on the Android content URI path too.

    Seen in 1 report
  29. Normalise and reject literal backslashes before using a URL path as an output filename.

    Seen in 1 report
  30. Recognise the full set of reserved device names Windows treats as devices.

    Seen in 1 report
  31. Decode the URL path before extracting the basename.

    Seen in 1 report
  32. Require authentication and sanitise filenames on debug file-reading endpoints.

    Seen in 1 report
  33. Validate the file path for traversal sequences and require authentication on the endpoint.

    Seen in 1 report
  34. Do not unescape double colons into slashes before path checks, and strengthen traversal protection.

    Seen in 1 report
  35. Canonicalise the uploaded filename and require a real client identity rather than a caller-supplied string.

    Seen in 1 report
  36. Verify the resolved path from the relocation file stays inside the original repository.

    Seen in 1 report
  37. Resolve crafted paths correctly before the sensitive-location check runs.

    Seen in 1 report
  38. Validate and restrict file paths supplied in network requests.

    Seen in 1 report
  39. Check that a link is safe before resolving it.

    Seen in 1 report
  40. Restrict user-supplied pathnames to the intended directory.

    Seen in 1 report
  41. Normalise and restrict resource paths built from user input.

    Seen in 1 report
  42. Use a safe path resolver that confines requested paths to the project root.

    Seen in 1 report
  43. Encrypt and sign the client state field so client-supplied paths are not trusted.

    Seen in 1 report
  44. Apply Unicode normalisation before blacklist and control-character filtering, not after.

    Seen in 1 report
  45. Restrict the URL schemes and paths a PDF renderer may load, blocking local file access.

    Seen in 1 report
  46. Load configuration files only from directories that low-privileged users cannot write to.

    Seen in 1 report