Skip to content
Account takeover Write-up Beginner

MY First Bounty | Pre Account take Over via respon manipulation\

The registration flow trusted the client-side JSON response to decide whether the email OTP had been verified. By intercepting the OTP response and replacing the error body with a saved success body, an attacker could create an account without knowing the real code.

nervhym Follow

Published on nervhym.medium.com

Hello everyone, today is a special day for me, i am very happy because this is the first time a got a bug and paid, so i want to share a little about this finding, ok just go ahead.

NERVHYM, on nervhym.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 relied on the JSON response body to mark the email as verified instead of the server independently confirming the OTP before creating the account.

Impact

An attacker could complete registration without a valid OTP, which the author frames as a pre-account-takeover step; the text notes many programmes do not accept this class of finding.

What the attacker needed

A free account; an intercepting proxy; a saved success response body

The fix

The server should verify the OTP itself and only mark the email as verified based on its own check, never on a client-supplied response body.

How it was found

  1. Create an account with a normal email and save the successful verification JSON response.
  2. Start a new registration and enter a random OTP.
  3. Turn on interception in the proxy before sending the OTP.
  4. Intercept the OTP request and forward it.
  5. Replace the error JSON in the response with the saved success JSON and forward it.
  6. The account is created and can be used normally.

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 sign up, the site sends a one-time code (OTP) to your email or phone and asks you to type it in. Here, the app decided whether the code was correct based on a message it received back, and the tester could edit that message in their browser proxy so it looked like the code was right. That let them finish sign-up without ever knowing the real code.

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 nervhym

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.