Skip to content
Account takeover Write-up Beginner

My First Critical Bug: 0-Click Full Account Takeover

The password reset endpoint accepted a request with a null reset token and an arbitrary victim email, allowing the attacker to set a new password for any account. This enabled full account takeover with no user interaction, requiring only the victim's email address.

medium.com

Published on medium.com

This was my first critical vulnerability. Like many bug bounty stories, it started with a very simple question:

0xJad, 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

The backend trusted the email parameter from the request and failed to validate the reset token's existence, ownership, expiration, or binding to the email.

Impact

An attacker could reset any account's password with no user interaction, requiring only the victim's email address, leading to full account takeover.

What the attacker needed

Victim's email address; no user interaction

The fix

The bug was fixed by the team, likely by enforcing token existence, ownership, expiration, and binding to the email.

How it was found

  1. Start the forgot password flow and enter the victim's email address.
  2. Receive a reset code and proceed to the new password page.
  3. Intercept the request sent when submitting the new password.
  4. Change the email to the victim's email and set the reset token to null.
  5. Send the modified request and observe a 200 OK response with the password changed.

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 sends a secret code to prove it's really you. This report shows that the website didn't actually check the code—it just accepted a request saying 'change the password for this email' without verifying the code was real. That means anyone who knew your email address could change your password and take over your 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.