In-depth lesson · Path traversal
Tips for beginners
Every point the Path traversal reports back under this heading, best-backed first, each with the reports it is seen in.
-
Keep scope in mind. Many of these findings sit in desktop software, firmware, mobile apps and third-party plugins, and some are only reachable locally or after authentication. Confirm the asset is in scope and the path is reachable by the threat model before writing it up, and say plainly what an attacker needs to start.
Seen in 16 reports
-
Test both authenticated and unauthenticated paths. Some of the strongest findings are pre-authentication reads on VPN appliances and management ports, while others require a low-privileged account. Note which one you used, because it changes severity and how the program will triage it.
Seen in 16 reports
-
Try the bypasses rather than giving up at the first rejection. Use backslashes on Windows-hosted targets, double encoding, nested sequences that survive a strip, an absolute path when traversal is blocked, or a path supplied as a buffer. Compare how the server normalises each form.
Seen in 15 reports
-
When you find one vulnerable method, check its siblings. The evidence shows whole families of methods in the same product sharing the same mistake, such as file copy, delete, mkdir and save, or several export and save methods. Report the pattern rather than a single instance where the program allows it.
Seen in 15 reports
-
For inclusion, feed user-controlled data into a PHP include or a template and page name parameter and try to include a local file outside the theme directory. Language, theme and module parameters are the usual carriers, and an allow-list is the usual fix, so a parameter that accepts arbitrary names is the target.
Seen in 13 reports
-
Start with features that obviously handle files: download endpoints taking a filename or path parameter, upload and import handlers, archive extraction, deletion and cleanup routines, and template or language resolution. These are where the evidence concentrates, and a single parameter is often enough to begin.
Seen in 12 reports
-
After confirming traversal, look for a chain to code execution: writing to web-accessible directories, overwriting configuration, or planting a file in a startup or autorun location. A write that lands in a scheduled task or cron drop-in is a much stronger finding than a read, and the evidence supports both.
Seen in 11 reports
-
Change one parameter at a time from a normal filename to a traversal sequence and compare status, content type and body against the normal request. A response that returns a file listing or file contents instead of an error is the signal. Then request a known sensitive file to confirm the traversal reaches outside the intended folder.
Seen in 10 reports
-
For archive features, upload or submit an archive whose entry names contain parent-directory segments or symlinks and check whether files are written outside the extraction directory. Test absolute entry names as well as relative traversal, since some tools reject only one. A symlink entry pointing outside the destination is worth trying separately.
Seen in 10 reports
-
Read the fix history where you can. Reports show incomplete fixes being bypassed in the following version, and filters that only cover one parameter while another stays unsanitised. If a product has patched traversal before, the same area is worth a second look with the bypasses in mind.
Seen in 10 reports
-
Check whether the check is a string prefix without a trailing separator. If so, an entry name beginning with the destination directory name can pass and land in a sibling directory. This is a common incomplete fix and worth testing explicitly.
Seen in 9 reports
-
Test symbolic links deliberately. Place a link inside a served or shared directory pointing at a sensitive file and request it, or submit a repository containing such a link. Applications that follow links without checking the resolved target are a recurring finding.
Seen in 9 reports
-
Avoid reporting a traversal with no demonstrated impact. A request that returns an error, a file you cannot name, or a path that only works on your own machine is not a finding. Show the file read, the write that lands outside the directory, or the deletion, and state what it gives an attacker.
Seen in 8 reports
-
Do not stop at reading a harmless file. Read configuration files and runtime logs and look for database credentials, signing keys, admin credentials or cloud access keys, then show what those credentials unlock. Reports show plain text credentials in logs leading to admin panel access, and pre-authentication reads leading to the credential database and login.
Seen in 7 reports
-
Use a client that does not normalise paths, such as one with a path-as-is option, so encoded traversal sequences reach the server intact. Browsers and some proxies collapse these before they arrive, which is a common reason a real flaw looks like a dead end.
Seen in 6 reports