Bypassing OTP Verification: Another Bug Found Without Any Tools!
The OTP verification during signup was not tied to the email address entered, so any valid OTP from a different email was accepted. An attacker could create an account using a victim's email address without access to that email.
medium.com
Published on medium.com
If you’re new to bug hunting or just curious about how these things work, this post will show you that even simple mistakes can lead to big vulnerabilities. Let’s get into the details!
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 OTP verification was not bound to the email address being registered, so any valid OTP from any email was accepted.
Impact
An attacker could create an account using a victim's email address without access to that email, potentially leading to account takeover or impersonation; the text notes the impact would be more critical if OTP were also used for password resets.
What the attacker needed
Attacker has a valid email address; victim's email address is known; no account on the target site for the victim's email
How it was found
- Go to the sign-up page and enter your own email address.
- Submit the form and receive an OTP, but do not use it; press the Back button.
- Return to the sign-up page and enter the victim's email address instead.
- Submit the form again and enter the OTP that was sent to your own email.
- The account is created successfully with the victim's email address.
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 checked that the code was valid but did not check that it was sent to the email you were signing up with. So someone could use their own code to verify an account for someone else's email address.
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.