[Bounty Weekend] Phone Verification Bypass With Business Logic Vulnerability
The registration flow reused the same OTP for both email and phone verification, so an attacker could complete phone verification using the OTP sent to their email. This bypassed the phone number verification step, compromising the integrity of the registration process.
Bismillah, hello there ! I’m Rifqihz, a penetration tester, bug hunter and a college student who’s currently learning and writing about cyber security related topics.
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 same OTP value or verification state was shared between the email and phone verification steps, so a code issued for one purpose was accepted for the other.
Impact
An attacker could bypass phone number verification during registration, which the report rates as a low integrity impact.
What the attacker needed
Access to the registration flow; an email address you control
How it was found
- Start the registration flow and intercept the request that sends the OTP to the email address.
- Complete the email verification step.
- Trigger the API to resend the OTP to the email address.
- Use the OTP received via email for the phone number verification step.
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 app sends a one-time code (OTP) to your email and then to your phone to prove you own them. Here, the code sent to the email was also accepted for the phone step, so someone could skip proving they own the phone number.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.