Default OTP: Account Takeover
The login flow accepted a fixed default OTP of 1234 for any phone number, so an attacker could log into any account by entering the victim's phone number and that code. The target was not in production, and the OTP was likely hardcoded or used as a default.
Published on rashahacks.com
Attacker can login into any account by entering their phone number and confirmation OTP 1234. The target was not in production, 1234 must be hardcoded or used as a default OTP.
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 used a hardcoded or default value of 1234 instead of a randomly generated, per-user code.
What the attacker needed
Victim's phone number; target not in production
The fix
The issue was resolved according to the timeline, though the text does not describe the fix; it should be fixed by generating a random, single-use OTP per login attempt and rejecting any default or hardcoded code.
How it was found
- Open the target site and choose Login.
- Enter a phone number.
- Enter the confirmation OTP 1234.
- The login succeeds.
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.
A one-time password (OTP) is a short code sent to your phone to prove it is you when logging in. Here the system always accepted the same code, 1234, for every phone number, so anyone who knew a victim's phone number could sign in as them. The report notes the site was not yet live, which may explain why such a weak default was left in place.
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.