Design Flaw on OTP endpoint leads to Create Fake Accounts —�
The iOS app's registration endpoint accepted any random six-digit OTP, so accounts were created without verifying the user's email. An attacker could automate the creation of many fake, unverified accounts.
Published on medium.com
During a mobile application testing, I came across an interesting design flaw in the user registration flow of an iOS app. The flaw allowed bypassing email OTP verification during signup, a security check considered fundamental in modern authentication systems.
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 registration endpoint did not validate the submitted OTP against the one sent to the email before creating the account.
Impact
Attackers could automate the creation of many fake or unverified accounts, enabling spam and wasting backend storage and OTP sending costs; login still required a correct OTP, so the fake accounts could not be accessed without it.
What the attacker needed
IOS app access; valid email address
The fix
OTP verification should be mandatory at the registration step, and the account should only be created after successful verification.
How it was found
- Enter valid registration details such as name, email and phone.
- The app sends an OTP to the registered email.
- Enter a random six-digit OTP instead of the real one.
- The request is accepted and the account is created without error.
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 is supposed to send a one-time code (OTP) to your email and only create your account if you type the correct code. Here, the app created the account no matter what code was typed, so anyone could make accounts with fake email addresses. The app did check the code later when logging in, but the account already existed.
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.