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 elevated installer resolves a helper executable through a user-writable temporary directory before the protected program folder.
Seen in 1 report
-
The endpoint decoded a base64 parameter and used the result directly in a file read without confining it to an allowed directory.
Seen in 1 report
-
The endpoint did not restrict which methods could be invoked or with what arguments.
Seen in 1 report
-
The endpoint joins a user-supplied file path into a filesystem path without validation and lacks authentication.
Seen in 1 report
-
The endpoint passed the user-supplied path straight to a file-reading function without restricting it to a safe base directory.
Seen in 1 report
-
The error ID from the Sentry response was concatenated into action button URLs without validation.
Seen in 1 report
-
The error parameter was concatenated onto the portal directory without canonicalisation or a prefix check.
Seen in 1 report
-
The export page used a user-supplied path in file operations without validation.
-
The exported provider opened the caller-supplied path without checking it stayed inside the app's own directory.
Seen in 1 report
-
The extension blocklist contained the extension with a trailing space instead of the bare extension.
Seen in 1 report
-
The extension did not limit file paths to an allowed directory, so crafted paths reached blocked files.
-
The extract method skipped its name-safety check whenever the caller supplied a destination path.
Seen in 1 report
-
The extraction check only rejects absolute paths and never normalises or rejects parent-directory segments.
Seen in 1 report
-
The extraction filter was not recursive and did not confirm entry paths stayed in the target directory.
-
The extraction function appended entry names to the output directory without sanitising them and did not set the archive library's security flags.
Seen in 1 report
-
The extraction function checks for directory traversal using backslashes but does not consider forward slashes.
-
The extraction function took the full file name from the archive and concatenated it with the destination path without sanitisation.
Seen in 1 report
-
The extraction process did not check for symbolic links, which were later followed when serving files.
Seen in 1 report
-
The extraction process did not reject symbolic links, allowing them to be served later.
Seen in 1 report
-
The extraction routine did not reject hard links pointing outside the extraction directory.
-
The extractor checks the joined path with a string prefix test but never resolves parent segments, so the check never fires.
Seen in 1 report
-
The feature API did not validate the file path supplied to it, allowing execution of an attacker file as root.
Seen in 1 report
-
The file name from the markdown link was passed to the uploader without validation.
Seen in 1 report
-
The file path parameter allowed traversal sequences and the mimetype parameter was reflected into a response header without sanitising.
-
The file scheme handler did not normalise or reject parent-directory segments before opening the file.
Seen in 1 report
-
The file URL handler did not normalise or reject parent-directory segments when path-as-is was used.
Seen in 1 report
-
The file-reading tool never checked that the requested path stayed inside the project root, unlike a sibling tool that used a safe path resolver.
-
The file_name parameter was not checked for traversal before being used to build a deletion path.
Seen in 1 report
-
The filename extension from the renderer was concatenated into a fallback display name without sanitising.
Seen in 1 report
-
The filename from a multipart upload was used without sanitising traversal sequences.
Seen in 1 report
-
The filename from the Content-Disposition header was joined to the output directory without rejecting traversal sequences or absolute paths.
Seen in 1 report
-
The filename from the Content-Disposition header was used without sanitising traversal sequences.
Seen in 1 report
-
The filename is extracted with a basename call before decoding, so sanitising runs on the still-encoded string.
Seen in 1 report
-
The filename parameter was passed into the encoded output without sanitising newline characters.
Seen in 1 report
-
The filename sanitiser only strips encoded separators and does not reject literal backslashes.
Seen in 1 report
-
The filename was only stripped of a fake path prefix and appended to a temporary directory without checking for parent references.
Seen in 1 report
-
The filename was passed to a path-building function without sanitisation.
Seen in 1 report
-
The finalize endpoint stores attacker-controlled filenames in metadata without sanitisation, and the deletion routine derives paths from them.
-
The format parameter was used directly in file path construction without validation or canonicalisation.
Seen in 1 report
-
The FTP path was URL-decoded before splitting, and the split loop had no step to resolve or reject dot-dot segments.
-
The FUSE library did not jail symlinks and node data was not sanitised.
Seen in 1 report
-
The gateway accepted user-controlled path parameters and exposed internal container directories without normalisation or authorisation, enabling directory listing.
-
The gateway normalised or stripped semicolon path parameters after routing, so the forwarded path differed from the one used for authorisation.
Seen in 1 report
-
The guard used a plain string prefix check on the absolute path without a path separator boundary.
Seen in 1 report
-
The handler joins unsanitised input and Express normalises backslashes before the handler sees them.
-
The handler trusts archives in internal directories without checking the requested path stays inside, and streams data before the digest check.
Seen in 1 report
-
The host-side copy followed symbolic links in the container output directory instead of copying the link itself.
Seen in 1 report
-
The HttpFile class passed the user-supplied path to file deletion without sanitising or restricting it.
-
The identifier was appended to a base directory without rejecting traversal and the result was not checked to stay inside.
Seen in 1 report
-
The ignore check ran on the undecoded path while files were served from the decoded path.
Seen in 1 report