Skip to content

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

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.

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.

Year by year

5 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 13
Reports per year
20201
20213
20224
20232
20244
20256
202613
  1. 2026

    13 reports · median $10k

    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.
    and 1 more

    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.
    and 12 more

    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.
    and 1 more
  2. 2025

    6 reports · median $4,323

    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.
    and 1 more

    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.
    and 3 more

    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.
  3. 2024

    4 reports

    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.
    and 4 more

    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

Every point, year by year

Root causes

29

The mistakes in the code or configuration behind the reports.

  1. 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
  2. The account name parameter built a file path without sanitising traversal sequences, and the upload endpoint required no authentication.

    Seen in 1 report
  3. 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
  4. The Ingress path value was written into generated nginx configuration without sanitisation, allowing config injection via alias and location directives.

    Seen in 1 report
  5. 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
View all 29

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

Other

of 3 ticked
More in Other

Image editors and media handling

of 3 ticked
More in Image editors and media handling

OAuth clients and redirect chains

of 3 ticked
More in OAuth clients and redirect chains

Front-end asset and stylesheet loading

of 3 ticked
More in Front-end asset and stylesheet loading
View more things to try

Payouts

5 paid

Public 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.

SeverityReportsPaidMedianHighest
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

Tips for beginners

13

Advice for a first hunt, drawn from the reports.

  1. 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
  2. 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.

    Seen in 2 reports
  3. 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.

    Seen in 2 reports
  4. 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.

    Seen in 2 reports
  5. 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.

    Seen in 2 reports
View all 13

Guides and techniques

The best explainers, cheat sheets and technique posts on Client-side path traversal (CSPT), from around the web.

Keep learning

Where this lesson fits, and what to read next.

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.