Skip to content
Account takeover Write-up Beginner

Breaking Authentication: How I Bypassed Email Verification by Changing One Word in the Response

The application made a security decision based on a client-side response flag, so an attacker could change a false verification status to true and create a valid account without controlling the email address. The server never updated any verification state, so the bypass granted full account access.

akashmadanu Follow

Published on akashmadanu.medium.com

A deep dive into client-side authentication vulnerabilities and why trusting the browser is never a good idea.

Madanu Akash, on akashmadanu.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

Impact

An attacker could create unlimited fake accounts without email verification, enabling service abuse, phishing, resource exhaustion, and reputation damage.

What the attacker needed

Ability to intercept HTTP responses; no email access needed

The fix

The server should update a database flag upon successful OTP validation and all subsequent requests must check that server-side state, with the client only following server instructions.

How it was found

  1. Fill out the registration form with a fake email address and password.
  2. Complete additional profile information.
  3. Enter a random five-digit OTP on the verification page.
  4. Intercept the server's response using Burp Suite.
  5. Change the 'verified' field from false to true in the response.
  6. Forward the modified response to the browser, which redirects to the dashboard and allows login.

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 server checks your email code and tells your browser whether it was correct. In this app, the browser itself decided whether to let you in based on that message. An attacker could intercept the message and change 'not verified' to 'verified', so the browser let them in 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.

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.