Skip to content
CSRF Disclosed report Beginner

csrf token did not changed after login/logout many times

The CSRF token did not change after repeated login and logout cycles, remaining the same as before. An attacker who had previously obtained a user's CSRF token could reuse it to perform actions on the user's behalf, even after an XSS vulnerability was fixed.

cryptographer Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 43 hours

hello team, your csrf token did not expired and after login and logout many times , i found that your csrf token is generated same as last one.

Impact

if an attacker found an xss on your domain and you fixed it but attacker still has csrf token of user, attacker can use it to perform any action.

The original report as published on HackerOne, by cryptographer. 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

Impact

An attacker who previously obtained a user's CSRF token could reuse it to perform actions as that user, even after an XSS vulnerability used to steal the token was fixed.

What the attacker needed

Attacker previously obtained the CSRF token

How it was found

  1. Log in to the application.
  2. Log out.
  3. Repeat login and logout several times.
  4. Observe that the CSRF token remains the same as the previous one.

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 code a website gives your browser to prove that a form submission really came from the site, not from an attacker's page. Normally this code should be new each time you log in, so an old stolen code becomes useless. Here the code stayed the same, so someone who copied it earlier could keep using it.

What is CSRF?

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

More by cryptographer

View all

4 more disclosed reports, best first.

More from Liberapay

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.