My First Bug Bounty — 2 Factor Authentication Bypass
A sign-up request contained a parameter controlling where the one-time password was sent. Changing its value caused the OTP to be delivered to the email address instead of the phone number, allowing phone verification to be bypassed.
Published on medium.com
{{media:0}}
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 server trusted a client-supplied parameter to decide the OTP delivery channel without validating it against the intended phone verification flow.
Impact
An attacker could bypass phone number verification, and the issue could be elevated to bypass two-factor authentication if the attacker also had access to the victim's email.
What the attacker needed
Ability to intercept and modify sign-up request
How it was found
- Intercept the sign-up request and locate the twoFactorNotificationType parameter.
- Change its value from the default 0 to 1.
- Submit the request and observe that the OTP arrives by email rather than to the phone number.
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 prove you own your phone. This report found that a hidden setting in the sign-up request could be changed so the code went to your email instead. That means you could confirm a phone number you do not actually control.
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.