Skip to content
CSRF Disclosed report Beginner

Security Issue : CSRF Token Design Flaw

The CSRF token was not rotated between requests in a session, so the same token could be reused. An attacker who captured the token via cross-site scripting or a network attack could replay it to perform a CSRF attack on the victim's account.

ghumman Follow

Originally disclosed on HackerOne

  • Triaged in 23 hours
  • Fixed in 34 days
  • Paid in 34 days
  • Disclosed after 2 months

Introduction:

Hello I am Bruin, a security researcher and analyst. I have been able to identify a bypass in your CSRF protection mechanism, which upon a successful execution can result in a successful CSRF attack on a victim's account.

Description:

CSRF Token's are different from session ID'S in a way that they are not consistent in entire user session but drchrono.com do not practice the rotation of CSRF token's for every request in a session.

Reproduction Steps:

< Log in to drchrono.com < go to settings < go to profile < click change password < fill out the fields < click save and intercept the request < copy POST data < repeat the process

--Observe that the CSRF token from both request's is same.

Impact:

It can be misused in multiple ways, some of the scenarios are listed below :

*An attacker capturing the CSRF token via cross site scripting can use it to plant a successful CSRF attack even if the session id is unusable. *A network based attack can be used to capture and replay the token on to the victim's account.

Fix:

Rotate the token on each consecutive session.

Please let me know if any additional information is required . I shall be waiting for your reply.

Regards, Bruin, Security Researcher.

The original report as published on HackerOne, by ghumman. 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 generated a single CSRF token per session and did not rotate it for each request, allowing replay.

Impact

An attacker who captured the token via cross-site scripting or a network attack could replay it to perform a CSRF attack on the victim's account, even if the session ID was unusable.

What the attacker needed

Victim has an account; attacker can capture the token (XSS or network)

The fix

The CSRF token should be rotated for each consecutive session to prevent replay.

How it was found

  1. Log in to the site.
  2. Go to settings and then profile.
  3. Click change password and fill out the fields.
  4. Click save and intercept the request.
  5. Copy the POST data.
  6. Repeat the process and observe the CSRF token is the same.

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 to prove a request came from its own pages, not from an attacker's site. This site reused the same token for every request in a session, so if an attacker stole it once, they could use it again and again. That makes it easier to trick a logged-in user into performing actions they did not intend.

What is CSRF?

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

More from drchrono

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.