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.
-
The server accepted a user-supplied file path for export operations without restricting it to a safe directory.
Seen in 1 report
-
The server fails to restrict a user-supplied pathname to its intended directory.
Seen in 1 report
-
The server trusted an unsigned client header for authentication and passed user paths straight to the file-send helper.
-
The service builds a resource path from user input without normalising or restricting it.
Seen in 1 report
-
The session identifier was used directly in path joining without validation.
-
The session manager joined the sessions directory with a user-controlled session ID, allowing absolute paths and traversal to escape.
-
The spooler did not validate relative paths when handling files received over a network printer connection.
Seen in 1 report
-
The static asset route did not sanitise user input, letting traversal escape the assets folder.
Seen in 1 report
-
The static file handler decoded the request path and joined it to the plugin directory without checking the result stayed inside.
Seen in 1 report
-
The static file handler decoded the request path twice, so an encoded traversal survived the first check.
Seen in 1 report
-
The static file handler did not sanitise user paths and redirect logic appended a slash without validation.
Seen in 1 report
-
The stylesheet compiler's import directive could reference arbitrary local files and compilation errors leaked file contents.
Seen in 1 report
-
The subPath attribute in volume mounts was not validated, so a container could resolve paths outside the mounted volume.
-
The symlink detection function checked for the wrong entry type string, so symlinks were not ignored during extraction.
-
The tar extraction changed permissions but did not remove or reject symbolic links.
Seen in 1 report
-
$29,000 Critical
-
-
The template lookup passed user-controlled format details into file path building without rejecting traversal sequences.
Seen in 1 report
-
The template parameter accepted a file URL without restricting path traversal.
Seen in 1 report
-
The template parameter was passed to the rendering engine without validation or an allowlist.
-
The template path from a request parameter was included without validation.
-
The ticket parameter was passed into a file path without normalisation or restriction to an allowed directory.
Seen in 1 report
-
The translation endpoint did not restrict the lang path and the SAML response endpoint reflected input without sanitising.
Seen in 1 report
-
The unpacking process did not sanitise file paths inside the package.
-
The unzip routine did not check that extracted paths stayed within the destination directory.
Seen in 1 report
-
The update routine passed a user-controlled path into file operations without restricting it to the intended directory.
-
The update tool took the destination path for each file directly from the package control file.
Seen in 1 report
-
The upload concatenates a caller-supplied filename onto a temporary directory without canonicalisation, and login trusts a caller-supplied identity.
Seen in 1 report
-
The upload handler used the user-supplied filename without sanitising traversal and stored files in a public location.
-
The URI handler did not validate the URL scheme or host, allowing file URLs and arbitrary sites.
Seen in 1 report
-
$6,200 Critical
-
-
The URL path was used directly in a client-side fetch without validation or encoding, and the response was reused in an authenticated request.
Seen in 1 report
-
The user-controlled cache key was used in a file path without sanitisation.
Seen in 1 report
-
The user-controlled map cycle file value was passed straight to file open functions without validation.
Seen in 1 report
-
The user-controlled name parameter was appended directly to a file path without checking it stayed within the intended directory.
-
The user-supplied identifier was trusted as a folder name without checking for collisions with existing data directories.
Seen in 1 report
-
The user-supplied parameter name was used directly to build a file path without validation.
-
The user-supplied path parameter was used to read files without sanitisation.
-
The username was used directly as a folder name without sanitising special characters, so deletion resolved to the parent data directory.
Seen in 1 report
-
The version field used to build the download destination was not checked for traversal sequences.
-
The WAF did not resolve traversal sequences before applying its block rules.
Seen in 1 report
-
The web application did not drop privileges when browsing the filesystem, unlike when running user scripts.
-
The ZIP extraction library was used without disabling the option that strips parent-directory sequences.
-
The ZIP extraction routine did not sanitise entry filenames before writing files.
-
Token handling parsed claims without verifying the signature.
-
Two parsers interpret the same input differently, letting a crafted file smuggle values past a validator.
Seen in 1 report
-
Untrusted input was passed straight to GDAL without validating the path or restricting the dataset format.
-
URI parsing did not normalise double slashes, letting an accessible path reach a non-accessible one.
Seen in 1 report
-
User input was concatenated to a workspace path without checking the result stayed inside the workspace.
-
User input was joined into filesystem paths without checking for traversal or confining the result.
-
User input was passed directly to a file-opening function, and a secret key was stored in source code.
-
User input was passed directly to a file-reading function without restricting the path.
Seen in 1 report
-
User input was used directly as a file path without restricting it to a list of allowed pages.
Seen in 1 report