Fake Logins, Real Costs: The OTP Bug Worth €X,XXX
The mobile app's OTP endpoint sent SMS or WhatsApp verification messages to any phone number, even ones never registered, because the backend did not check whether an account existed. An attacker could script the API to send unlimited messages, causing the company to pay large SMS/WhatsApp bills and risking a ban of its WhatsApp business number.
infosecwriteups.com
Published on infosecwriteups.com
In modern mobile apps, account verification via SMS and WhatsApp is standard practice. But what happens when a company skips the most basic check — whether an account even exists?
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 did not verify that the phone number belonged to an existing, active user before sending a verification message.
Impact
An attacker could send unlimited SMS or WhatsApp messages at the company's expense, potentially getting its WhatsApp business number flagged or banned, and the messages could be used in social engineering or phishing.
What the attacker needed
Access to the API endpoint; ability to intercept and modify requests
The fix
The backend should check that the phone number belongs to a valid, active user before sending a verification message, and add rate-limiting to block abuse.
How it was found
- Intercept the request to send an OTP.
- Change the request to indicate the user is registering and supply a phone number.
- Send the request even though no account exists for that number.
- Observe that the server responds that the OTP was sent and a real SMS or WhatsApp message arrives.
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 log in with a phone number, the app sends you a one-time code (OTP) by text or WhatsApp. This app sent that code to any number, even if nobody had signed up with it, because it never checked whether the account existed. Someone could automate this to send thousands of messages, and the company pays for each one.
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.