Skip to content
Account takeover Disclosed report Intermediate

Account Takeover in Password Reset Function

The password reset flow trusted a client-side response to decide whether the SMS one-time password had been verified. An attacker could intercept that response, change it to a success, and set a new password on any account without knowing the OTP.

egsec Follow

Originally disclosed on HackerOne

Critical 9.6 View original
  • Triaged in 28 days
  • Fixed in 55 days
  • Disclosed after 2 months

Summary by the program

A critical authentication bypass vulnerability was present in the password reset functionality of the ███████ website at ███████. The vulnerability allowed attackers to take over any user account without requiring access to the victim's phone number or the one-time password (OTP) sent via SMS. The security flaw existed in the implementation of the "Forgot Password" feature, where the system was designed to send an OTP to a user's registered phone number for verification before allowing password reset. However, the vulnerability arose from inadequate server-side validation that relied on client-side responses to determine the success of OTP verification. An attacker could intercept the server response using a proxy tool and manipulate the response parameters to bypass the OTP verification step entirely. By changing the response status from failure to success and modifying the JSON response body, the attacker could proceed to set a new password for the victim's account without ever receiving or entering the legitimate OTP. This vulnerability was assigned a CVSS score of 9.6 (Critical) and represented a complete failure of the authentication mechanism designed to protect user accounts during the password reset process.

The original report as published on HackerOne, by egsec. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server decided whether OTP verification succeeded based on a value returned by the client instead of checking the OTP itself on the server.

Impact

An attacker could take over any user account, including accounts protected by SMS OTP, without access to the victim's phone.

What the attacker needed

Knowledge of a victim's account identifier; ability to intercept and edit HTTP responses

The fix

The server should verify the OTP itself before allowing the password change, rather than trusting a client-supplied result.

How it was found

  1. Start the forgot-password flow for the target account so the site sends an OTP to the registered phone.
  2. Intercept the server's response with a proxy tool.
  3. Change the response status from failure to success and edit the JSON body.
  4. Continue to the new-password step and set a password for the victim's account without entering the OTP.

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 report has not been written yet. The Original tab links to the source.

When you reset a password, the site sends a code to your phone and asks you to type it in. Here the site's server asked the browser 'did the code check out?' and believed whatever answer came back. Someone using a tool that can pause and edit traffic could change the answer to 'yes' and then choose a new password for another person's 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.

More from Mars

View all

The newest disclosed reports for this program.

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.