Skip to content
CSRF Disclosed report Intermediate

CSRF token leakage

When account verification fails, the site redirects to a URL that includes the CSRF token as a query parameter, so the token is stored in browser history. An attacker who can obtain that history could reuse the token to mount a CSRF attack, and the token does not expire after first use.

Yassine Aboukir Follow

Originally disclosed on HackerOne

  • Triaged in 8 days
  • Disclosed after 46 days

Hi, I have noticed that when the account verification fails here : https://wallet.robocoin.com/verify/ due to an error, the CSRF token is being leaked via GET method like : https://wallet.robocoin.com/verify/id?_csrf=b8ede20d-0c0b-4e16-9d05-6ad2ed8b72c4 So the authenticity token is being stored in the web browser history and can be retrieved by a malicious attacker in order to mount a successful CSRF attack against the victim. Besides, that the token can be reused multiple times and do not get expired on first use. Best regards.

The original report as published on HackerOne, by yassineaboukir. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the application passes the CSRF token in the URL query string on the verification error redirect instead of keeping it in the request body or a header, and it does not invalidate the token after use.

Impact

The leaked token could allow an attacker with access to the victim's browser history to perform a CSRF attack, and because the token can be reused it remains valid for further attempts.

What the attacker needed

Attacker can retrieve victim's browser history

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 report has not been written yet. The Original tab links to the source.

A CSRF token is a secret value a website puts in forms so it can tell that a request really came from its own pages and not from an attacker's site. Here the token ended up in the address bar after an error, which means it can be saved in the browser's history. If someone can read that history, they could use the token to make the victim's browser send a request the victim did not intend.

What is CSRF?

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

More by Yassine Aboukir

View all

3 more disclosed reports, best first.

More from Enter

View all

The newest disclosed reports for this program.

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.