In-depth lesson · Client-side path traversal (CSPT)
Tips for beginners
Every point the Client-side path traversal (CSPT) reports back under this heading, best-backed first, each with the reports it is seen in.
-
Look for features where user input is directly concatenated into a path without encoding. Common spots include invitation links, statement views, repository names, and file managers. Test by inserting traversal sequences and observing if the request path changes.
Seen in 3 reports
-
Start by mapping all client-side code that constructs request paths from user input. Use browser developer tools to search for fetch, XMLHttpRequest, and URL building patterns. Focus on parameters that appear in URLs, such as IDs, names, or paths.
-
When testing, use encoded traversal sequences to bypass simple filters. For example, double-encode dots or use semicolons. Monitor the browser's network tab to see if the request is sent to a different endpoint than intended.
-
Chain CSPT with open redirects to escalate impact. If you find a client-side traversal that leads to a redirect, check if the redirect preserves method and body, allowing you to forward requests to an attacker-controlled server or a more sensitive subdomain.
-
Demonstrate impact by showing that you can perform actions on behalf of the victim, such as changing permissions, deleting resources, or exfiltrating data. For example, use traversal to reach an endpoint that modifies folder permissions or deletes a workspace.
-
Pay attention to OAuth flows and state parameters. Client-side traversal can be used to manipulate redirect URIs or load external stylesheets, leading to token leakage.
-
Check for client-side path traversal in file upload or download features, where filenames or paths are used to construct requests. Traversal might allow reading or writing files outside the intended directory.
-
Avoid reporting out-of-scope issues. Ensure the vulnerable endpoint is part of the target application and that the impact is within the program's scope. Check the program's policy for client-side vulnerabilities.
Seen in 1 report
-
Do not report without a clear impact. A traversal that only changes the path but does not lead to unauthorised access or actions is likely low severity. Always demonstrate a concrete security consequence.
Seen in 1 report
-
Test with a victim account to see if the attack works across users. For example, use traversal to access another user's data or perform actions that affect them.
-
Use browser instrumentation tools to trace where URL paths reach fetch calls. This can help identify sinks quickly.
Seen in 1 report
-
If you find a potential CSPT, verify it by checking the server response. Sometimes the server may normalise the path, so ensure the traversal actually reaches a different endpoint.
Seen in 1 report
-
Document your findings with clear steps to reproduce, including the payload used and the observed effect. Avoid including actual payloads in reports if the program prohibits it; describe the technique instead.
Seen in 1 report