Skip to content
Account takeover Write-up Beginner

Unauthenticated Password Reset Abuse

The password reset endpoint removed the user's existing password immediately upon an unauthenticated request containing only an email address and a captcha code, without verifying the request came from the account owner. An attacker who knew or could guess a victim's email address could erase that user's password and lock them out of their account.

medium.com

Published on medium.com

Free Article Link: Click for free!

Ehtesham Ul Haq, 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 flow performed a destructive action (removing the existing password) before the user proved ownership of the email address via a confirmation link.

Impact

Affected users could lose access to their accounts, and combined with user enumeration and stored XSS the issue could enable mass account lockout or hijacking.

What the attacker needed

Knowledge of victim's email address; no authentication required

The fix

The password reset flow should only remove the original password after the user clicks a secure confirmation link sent to their email, and captcha validation should be rate limited.

How it was found

  1. Go to the login page and choose the forgot password option.
  2. Enter the victim's email address and complete the captcha.
  3. Intercept the request with a proxy tool.
  4. Forward the request and note the response.
  5. Try logging in with the original password; it no longer works.

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 reset link to your email. Here, the site instead deleted the old password straight away as soon as anyone typed your email address into the form, even if it was not you. That means a stranger could lock you out of your own account just by knowing your email address.

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.