In-depth lesson · technique
Client-side path traversal (CSPT)
What every disclosed Client-side path traversal (CSPT) report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.
- reports cited in this lesson
- 33
- median public bounty
- $2,500
Overview
What it is and why programs pay for it.
Client-side path traversal (CSPT) is a technique where user-controlled input is used to build a path in client-side code, such as JavaScript, without proper validation or encoding. This allows an attacker to manipulate the path to access unintended resources or endpoints. Programs care because CSPT can lead to unauthorised actions, data exposure, or privilege escalation, often bypassing server-side controls. It is commonly found in web applications that dynamically construct URLs from parameters like organisation IDs, branch names, or file paths.
CSPT usually arises when front-end code concatenates user input into a request path without sanitising traversal sequences. This can result in the browser making requests to different endpoints than intended, potentially with the user's credentials. It often leads to access to sensitive data, account takeover, or actions on behalf of the victim. Common locations include features that build API URLs from user-supplied identifiers, such as invitation links, statement views, or repository names.
This technique is most often found in single-page applications and modern web interfaces where client-side routing and API calls are prevalent. It can also appear in OAuth flows, file managers, and any feature that uses URL parameters to construct paths. Bug bounty hunters should focus on areas where user input directly influences the path of a fetch or XMLHttpRequest, especially when combined with redirects or open redirects.
Seen in these reports9
-
$250 -
Medium -
Medium
Show 5 moreShow fewer
How it works
The mechanics, as the reports show them.
The attack works by identifying a client-side script that takes user input, such as a URL parameter or a value from the DOM, and uses it to build a request path. If the input is not validated or encoded, an attacker can insert traversal sequences like dot-dot-slash to navigate to a different path. This is possible because the browser resolves the path relative to the current origin, and the server may not distinguish between legitimate and traversed paths.
Step by step, an attacker first locates a sink where user input is concatenated into a path. This could be in a fetch call, an image source, or a form action. Then, they craft input containing traversal sequences, often encoded to bypass basic filters. When the victim loads the page or clicks a link, the browser sends a request to the manipulated path, potentially with the victim's cookies or tokens. The server processes the request as if it came from the intended endpoint, leading to unintended actions.
What makes this possible is the trust placed in client-side code to construct safe paths, combined with the lack of server-side validation for the final path. Developers often assume that client-side controls are sufficient, but attackers can bypass them by directly manipulating the input. Additionally, redirects that preserve method and body can be chained to forward requests to attacker-controlled servers or more sensitive endpoints.
Another enabler is the use of user input in path segments without normalisation. For example, an organisation ID from a URL might be inserted into a PUT request path, allowing traversal to change permissions. Similarly, branch names in API URLs can be manipulated to redirect requests. These flaws are often overlooked because the input appears benign, such as a numeric ID or a name.
Seen in these reports7
-
Medium
Year by year
5 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2020 | 1 |
|---|---|
| 2021 | 3 |
| 2022 | 4 |
| 2023 | 2 |
| 2024 | 4 |
| 2025 | 6 |
| 2026 | 13 |
-
2026
New this year4
- Desktop applications, particularly privileged updaters and installers, became a prominent target for client-side path traversal in the disclosed reports.
- Exploiting image editor dialogs and backup metadata to delete or copy sensitive files was a new pattern.
- Using traversal in cursor theme names to read files outside the icons root was a new technique.
Kept working14
- With the image renderer enabled, hunters used traversal in the static file handler to reach internal services and check for SSRF.
- As an author, they uploaded a real image, then sent a finalize request that set a thumbnail sub-size filename to the name of a file to destroy.
Turned up less3
- The earlier pattern of using semicolon path parameters to escape API gateway routes was not seen in the 2026 reports.
- The earlier technique of chaining traversal with 307 or 308 redirects to reach sensitive subdomains was not repeated in 2026.
-
2025
New this year4
- Using semicolon path parameters to escape API gateway routes was a new technique in the disclosed reports.
- Chaining traversal with 307 or 308 redirects to reach sensitive subdomains first appeared.
- Using an image transformation endpoint as a redirect gadget that preserves method and body was new.
Kept working5
- They pushed a branch whose name contained encoded dot sequences, made it protected, and created a merge request approval policy targeting it to see whether the API URL was redirected to an attacker domain.
- They sent a crafted link to a victim so the front end made a valid state-changing request to a traversed endpoint and checked whether the action succeeded.
Turned up less2
- The earlier pattern of using traversal in design identifiers to bypass ownership checks was not seen in the 2025 reports.
- The earlier technique of calling uninstall binding endpoints with traversal to import malicious Python files was not repeated in 2025.
-
2024
New this year2
- Reports began explicitly labelling the technique as chained, pairing traversal with open redirects, redirect gadgets or token leakage.
- Using traversal in a repository name to redirect requests through a spoofed integration URL was a new pattern.
Kept working6
- Hunters called an uninstall binding endpoint with traversal in the name parameter to reach a malicious Python initialisation file that was then imported.
- They captured a design loader request, noted the path format, and inserted a traversal segment after their own design identifier to reach another user's design file.
Turned up less2
- The earlier pattern of using traversal in OAuth state parameters to chain with open redirects was not seen in the 2024 reports.
- The earlier technique of injecting nginx directives via Ingress paths to reach service account directories was not repeated in 2024.
Earlier years2
Root causes
29The mistakes in the code or configuration behind the reports.
-
User-controlled cookie values were passed into file path handling without sanitising traversal sequences, allowing reads and deletes outside the intended directory.
Seen in 1 report
-
The account name parameter built a file path without sanitising traversal sequences, and the upload endpoint required no authentication.
Seen in 1 report
-
Critical
-
-
The delete route lacked CSRF protection and authentication and passed the user-supplied id straight into recursive file deletion without sanitising traversal sequences.
Seen in 1 report
-
The Ingress path value was written into generated nginx configuration without sanitisation, allowing config injection via alias and location directives.
Seen in 1 report
-
JavaScript concatenated user input directly into a URL path without sanitising traversal characters, and an OAuth endpoint allowed an open redirect via its state parameter.
Seen in 1 report
Things to try
The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.
ticked in this lesson
Image editors and media handling
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
-
Seen in 1 report
OAuth clients and redirect chains
of 3 ticked-
Seen in 1 report
-
Seen in 1 report
Front-end asset and stylesheet loading
of 3 ticked-
Seen in 1 report
More contexts
Payouts
5 paidPublic bounties in US dollars, from the data. 5 of 41 reports show an amount.
- a quarter paid up to
- $750
- median
- $2,500
- three quarters paid up to
- $4,323
- highest
- $10k
One in ten paid reports was paid $7,729 or more.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| Critical | 2 | 0 | None paid | None |
| High | 6 | 3 | $4,323 | $10k |
| Medium | 8 | 1 | $750 | $750 |
| Low | 1 | 0 | None paid | None |
| Unrated | 24 | 1 | $250 | $250 |
Highest-paid reports5
-
$10,000 High -
$4,323 High -
$2,500 High -
$750 Medium -
$250
Tips for beginners
13Advice for a first hunt, drawn from the reports.
-
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.
Guides and techniques
The best explainers, cheat sheets and technique posts on Client-side path traversal (CSPT), from around the web.
-
The great SameSite confusionExplains how SameSite cookie semantics are easily misread and how the confusion can undermine CSRF defences.
Technique jub0bs.com
-
Bypassing WAFs to Exploit CSPT Using Encoding LevelsDetails client side path traversal and how encoding levels can be abused to bypass WAFs when chaining gadgets.
Technique matanber.com
-
Client-Side Path Traversal: When Your Frontend Sends the Wrong ReExplains client-side path traversal, where dot segments in frontend-built URLs redirect authenticated requests and enable CSRF or cache deception.
Technique medium.com
-
Bypass SameSite Cookies Default to Lax and get CSRFShows how Chrome's Lax plus POST behaviour can still allow CSRF despite SameSite defaults.
Technique medium.com
-
CSRF: The Bug Everyone Declared Dead and Nobody Actually FixedArgues CSRF is still alive, covering classic forms, same-site sibling attacks and client-side path traversal chained to CSRF.
Explainer medium.com
Keep learning
Where this lesson fits, and what to read next.
The whole class
How this is made: our model read every listed Client-side path traversal (CSPT) report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 27 Nov 2026 from 35 reports. All Client-side path traversal (CSPT) reports.