Skip to content
Account takeover Write-up Beginner

How I Achieved a “Critical Hit” on a Bug Bounty Platform: Bypassing OTP via Response Manipulation

The registration flow trusted a client-side check on the OTP verification response, so an attacker could change a failed verification response into a success response and create an account without knowing the code. This allowed full identity claiming on the platform.

evangeliux Follow

Published on evangeliux.medium.com

In the world of bug bounty, we often hear the golden rule: “Never trust the client.” However, even large platforms sometimes overlook this. In this post, I will break down how I discovered a critical authentication bypass on a major European retail platform by simply “lying” to the browser using Burp Suite.

Evangeliux, on evangeliux.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 frontend relied on a client-side check of the JSON response status to decide whether OTP verification succeeded, instead of the server enforcing the verification state.

Impact

An attacker could claim full identity on the platform by bypassing OTP verification, though the company later marked the specific scenario as accepted risk.

What the attacker needed

Ability to intercept HTTP responses; a valid email address for registration

How it was found

  1. Start the registration flow and enter an email address to receive a 6-digit OTP code.
  2. Enter a random OTP code and intercept the server's response.
  3. Modify the failed response status and body to indicate a successful verification.
  4. Observe the frontend accept the manipulated response and redirect to the Set Password page.
  5. Set a new password and complete account creation.

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 website asks for a one-time code sent to your email. Normally the server checks the code and tells the browser if it is right. Here the browser itself decided whether the code was correct, so someone could edit the server's 'wrong code' reply to say 'correct code' and the site would let them finish signing up without 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 evangeliux

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.