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.
-
A path from a RichMedia annotation or portfolio metadata is used in file operations without validation.
-
A path normalisation flaw in the web component failed to block traversal sequences in the URL.
Seen in 2 reports
-
A path taken from the model file is passed straight into file operations without a containment check.
-
A shared path sanitisation function did not properly normalise or block traversal sequences, so several endpoints relying on it stayed vulnerable.
-
All query or body parameters were passed straight to the render function, letting the layout property control the loaded file.
Seen in 2 reports
-
Directory traversal sequences in the file name were not sanitised before writing.
-
File operations lacked authorisation checks, so unauthenticated users could delete or read files once traversal worked.
-
Front ends build backend request paths from user input without encoding or validation.
-
Import and restore processes followed symbolic links in uploaded archives without blocking them.
Seen in 2 reports
-
Improper path normalisation and double decoding let encoded traversal sequences slip past checks.
-
Packages were extracted without checking for traversal via symbolic links, and the extraction ran with excessive privileges.
-
Path cleaning was applied without ensuring the path started with a slash, so dot-dot elements survived.
-
Path.Combine with user input lets an absolute path override the base directory because the result is never checked.
-
Paths are not normalised or validated before use, so a crafted path escapes the intended directory and the trust check.
-
Some file system functions were not routed through the shared path validation helper.
-
The copy routine did not sanitise filenames returned by the source file system.
Seen in 2 reports
-
The dispatch path was taken from a request value settable via HTTP headers rather than the real URL path.
-
The EFS component did not validate or normalise file paths, allowing an absolute path to escape the intended location.
-
The filter deleted all occurrences of the traversal sequence in one pass, so nesting the sequence survived the deletion.
-
The installer used the untrusted name field from gem metadata directly when building file paths.
Seen in 2 reports
-
The library did not normalise or restrict relative paths when extracting archives.
-
The method passes a user-supplied path to file operations without restricting it to an intended directory.
-
The page parameter was passed straight into an include statement with no validation or allowlist.
-
The permission check validated the symlink's own location rather than resolving it to its final target.
-
The permission model called a user-overridable path.resolve dynamically instead of keeping a reference to the original.
Seen in 2 reports
-
The raw entry filename is joined to the extraction path with an operator that does not strip parent segments.
-
The reader did not resolve symlinks or hardlinks to real paths and did not verify the resolved path stayed inside the vault.
-
The regular expression used an end-of-line anchor instead of an end-of-string anchor, so a newline in the filename bypassed the symlink removal check.
-
The rewrite module did not properly escape output when the first substitution segment was a backreference or variable.
-
The server concatenated the requested path onto the web root and served it without checking whether the resolved path stayed inside the root, so symlinks were followed.
Seen in 2 reports
-
The server-supplied filename is concatenated with the wildcard path and then URL-decoded as a whole.
-
The service fails to normalise or confine user-supplied pathnames to the intended directory.
Seen in 2 reports
-
The service parameter was appended to the log directory path without checking for traversal sequences, and a log suffix was appended to the result.
-
The shared hosting environment did not isolate sites, so symlinks reached other sites' files.
-
The subtitle extension from the video page was used directly in the output filename without sanitisation, and Windows accepted the resulting path.
-
The template candidate is added to the include list without the path-safety check used for other candidates.
-
The thumbnail filename from user input was stored without sanitisation and later passed to a delete call without validation.
-
User-supplied file names or paths are accepted without validation or restriction.
-
User-supplied filenames were used to build object keys without sanitisation.
-
User-supplied paths went into file read and delete operations without validation.
-
A build-time relative traversal string was embedded in the interpreter and used at runtime to derive the standard library location.
Seen in 1 report
-
A caller-supplied content URI was used to derive a destination path without checking it stayed inside the temporary directory.
Seen in 1 report
-
A client-supplied file path was accepted during upload without filtering.
Seen in 1 report
-
A content provider used the last path segment of a user-supplied URI without sanitising traversal, and code was loaded from a writable directory.
-
A deeplink filename parameter was passed straight into a file path without sanitising traversal sequences.
-
A file descriptor leak in older container runtimes let processes retain access to host files.
Seen in 1 report
-
A file path from the document parameter was included without restricting it to an allowed directory.
-
A filename from a shared container is used as a path component without rejecting separators or dot segments.
Seen in 1 report
-
A fixed base directory was concatenated with unsanitised user input.
Seen in 1 report
-
A generic fetch helper did not validate the URL scheme or restrict paths to an attachments directory.