Skip to content
CSRF Write-up Advanced

Exploiting Client-Side Path Traversal to Perform Cross-Site Request Forgery - Introducing CSPT2CSRF

The post describes how client-side path traversal, where user input controls part of a URL path used by front-end code, can reroute a legitimate API request to a different endpoint and thereby revive cross-site request forgery. The authors say they demonstrated this against major web messaging applications including Mattermost and Rocket.Chat, though the post itself gives no reproduction detail.

Maxence Schmitt Follow

Published on blog.doyensec.com

To provide users with a safer browsing experience, the IETF proposal named “Incrementally Better Cookies” set in motion a few important changes to address Cross-Site Request Forgery (CSRF) and other client-side issues. Soon after, Chrome and other major browsers implemented the recommended changes and introduced the…

Maxence Schmitt, on blog.doyensec.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, front-end code places user-controlled input into the path of an API request without normalising it, so traversal sequences redirect the request to a different endpoint.

Impact

An attacker could force a logged-in user to execute unwanted state-changing actions on the application, though the post gives no concrete exploit detail and notes that a GET-only sink usually needs chaining with another primitive or an open redirect.

What the attacker needed

Victim is logged in; attacker can influence a URL or stored value; victim loads a crafted link or page

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A web page often builds the address of a request to its own server by gluing together a fixed part and a piece taken from the user, such as an id in the link. If that piece can contain dot-dot-slash sequences, the browser ends up calling a different server endpoint than intended. Because the request still comes from the victim's browser with their cookies, an attacker can make the victim perform an action they did not choose, which is the classic cross-site request forgery problem.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.