Skip to content
Account takeover Write-up Beginner

Account Take Over without user Interaction

The password reset response included the reset token, allowing an attacker who requested a reset for a victim's email to obtain the token and change the victim's password without any interaction from the victim.

Ravilla Bharath Follow

Published on medium.com

2. In response I observed a token transmission.

Ravilla Bharath, on medium.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 the password reset endpoint returned the reset token in the HTTP response instead of only sending it to the user's email.

Impact

An attacker could take over any account by requesting a password reset and using the leaked token, without any action from the victim.

What the attacker needed

Victim's email address; no user interaction

How it was found

  1. Enter the victim's email address in the forgot password form and capture the request and response.
  2. Observe that the response contains a token that is used for password reset.
  3. Craft a reset-password link using the token value from the response.
  4. Use the link to change the victim's password and access the 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 write-up has not been written yet. The Original tab links to the source.

When you forget your password, a website usually sends a secret code (token) to your email to prove you own the account. Here, the website also put that secret code in the response it sent back to the browser, so anyone who asked for a reset for someone else's email could see the code and use it to take over the account.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.