The OTP That Told on Itself — How I Bypassed Email Verification with One Wrong Code
The email verification request contained a duplicate ConfirmCode parameter whose first value was the real OTP, so an attacker could read the correct code from the request and verify any email without access to the inbox. This allowed bypassing email verification entirely.
Wait!!! Two ConfirmCode parameters?
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 backend embedded the correct OTP in the client-side request (e.g., a hidden field or API response) so the client could resend it, exposing the secret.
Impact
An attacker could bypass email verification entirely, enabling fake accounts and abuse, as the real OTP was exposed in the request.
What the attacker needed
A free account; ability to intercept HTTP requests
The fix
The real OTP should never be sent to the client; all verification should happen server-side.
How it was found
- Register an account with a throwaway email and receive a six-digit code.
- Enter a wrong code and turn on Burp Suite interception before submitting.
- Capture the verification request and notice two ConfirmCode parameters.
- Identify that the first ConfirmCode value is the real OTP.
- Copy the real OTP value and resend the request with it.
- Complete verification without checking the email inbox.
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 to prove you own it. Here, the site accidentally included the correct code in the same request that carried the user's guess, so anyone using a tool to inspect web traffic could see the real code and use it. That let them skip the email step completely.
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.