Skip to content
Account takeover Write-up Beginner

0-Click Account Takeover Earned Me €900 Bounty

The password reset endpoint accepted an email parameter from the client without verifying it matched the reset token, so an attacker could change any user's password. An attacker could take over any account without victim interaction.

medium.com

Published on medium.com

Hey Community 👋I’m Sahaj, a beginner bug bounty hunter passionate about learning and improving with every report. This is my very first blog — not just about the €900 bounty, but the late nights, the fails, and the wins that got me here.

Sahaj Gautam, 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 server did not bind the password reset token to the email address supplied in the request, trusting the client-provided email.

Impact

An attacker could reset the password of any registered user without access to their email or any interaction from the victim, leading to a complete account takeover.

What the attacker needed

A free account; victim has an account; intercepting proxy

The fix

The server should strictly validate that the reset token is bound to the correct user and never trust email values from the client side.

How it was found

  1. Create an attacker account and a victim account in separate browsers.
  2. Request a password reset for the attacker's email.
  3. Open the reset link and proceed to set a new password.
  4. Intercept the password submission request.
  5. Change the email parameter from the attacker's to the victim's email.
  6. Forward the request and observe a successful response.

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 reset a password, the website should check that the reset link belongs to the account whose password is being changed. Here, the site trusted whatever email address the browser sent, so someone could swap in another person's email and set a new password for them.

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.