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.
-
User-controlled header values were passed into file path constants without validation, reaching an unlink sink.
Seen in 1 report
-
User-controlled input was used to build a file path without validation, allowing arbitrary file write as root.
Seen in 1 report
-
User-controlled parameters were passed to the uploaded file constructor without checking that the path came from the upload proxy.
Seen in 1 report
-
User-controlled path input was passed to a file read without normalising or restricting it to the web root.
Seen in 1 report
-
User-supplied file paths were included without sanitisation.
Seen in 1 report
-
User-supplied identifiers were placed in a URL path without rejecting dot segments, and the HTTP client normalised them.
Seen in 1 report
-
User-supplied input was used directly as a database column name without validating it against an allowed list, and the log viewer built file paths from user input.
Seen in 1 report
-
Usernames were not validated against reserved file names and profile URLs were built directly from user input.
Seen in 1 report
-
Validation rejected absolute paths and traversal tokens but never resolved symlinks or junctions, so the final write location was not checked.
Seen in 1 report
-
Validation relied on string comparison of resolved paths without checking the filesystem for pre-existing symlinks.
-
Validation was performed before sanitisation, so the input could change after being checked.
Seen in 1 report