Skip to content
Account takeover Write-up Beginner

How I Found a Critical Account Takeover Vulnerability in a Passwo

The password reset endpoint did not validate the reset token; when the token was removed, the server still processed the request, changed the password for a random other user, and returned that user's sensitive details. An attacker could take over another user's account without a valid token.

Ferdus Alam Follow

Published on medium.com

Password reset functionality is one of the most sensitive parts of any application. If the backend fails to validate reset requests properly, the impact can be severe.

Ferdus Alam, 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 missing or broken server-side validation of the password reset token, so the backend did not verify the token was present, valid, unexpired, and tied to the correct user before updating the password.

Impact

An attacker could reset another user's password without authorization and fully compromise that account, and the response also disclosed sensitive user details, combining account takeover with information disclosure.

What the attacker needed

Access to the password reset flow; ability to intercept HTTP requests; a victim account exists

The fix

The password reset endpoint should strictly verify that the token is present, valid, unexpired, and tied to the correct user account before allowing any password update, and should return only a generic error when validation fails.

How it was found

  1. Trigger the forgot password flow and receive a reset link by email.
  2. Open the link and intercept the final password update request in Burp Suite.
  3. Remove the reset token value from the request while keeping the new password.
  4. Send the modified request.
  5. Observe a success response containing another user's account details.

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.

A password reset link normally contains a secret code (token) that proves you own the account. Here, the server forgot to check that code. If you simply deleted the code from the request, the server still changed a password, but for a different, random user, and then showed that user's private information.

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.

More by Ferdus Alam

View all

3 more disclosed reports, best first.

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.