Skip to content
Account takeover Write-up Beginner

Bypass Verification Code in Reset Password Endpoint

The reset-password flow returned a JSON status flag that the client trusted to decide whether the verification code was correct. By intercepting the failed response and replacing it with a success-shaped JSON body, the author was moved to the next step without knowing the real code.

firdausmuhammadismail Follow

Published on firdausmuhammadismail.medium.com

hello everyone. It’s me again, lmao.

Firdaus Muhammad Ismail, on firdausmuhammadismail.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 client-side flow trusted a server response field to decide whether verification succeeded, and the server did not enforce the verified state on the next request.

Impact

An attacker could skip the code check and reach the next step of the password reset without knowing the real verification code.

What the attacker needed

Access to the reset password page; a proxy that can edit responses; a valid account identifier to start the flow

The fix

The server should track verification state itself and reject the next step unless the correct code was validated, returning a plain error such as 400 Bad Request.

How it was found

  1. Enter the correct code and note the JSON success response returned by the server.
  2. Save that success response body for later use.
  3. Enter a wrong code and capture the failing response in a proxy.
  4. Turn on response interception and replace the error response with the saved success JSON.
  5. Forward the modified response and observe being taken to the next menu.

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 site asks for a code sent to you. Here the site's page decided whether to let you continue by reading a small message from the server that said 'status: false' or 'status: true'. The tester used a proxy tool to catch that message and swap it for a 'true' one, so the page let them through even though the code was wrong.

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 firdausmuhammadismail

View all

1 more disclosed report, 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.