User Account takeover in India’s largest digital business company
During sign-up, the OTP was not tied to the user's mobile number and was not validated on the server. An attacker could intercept the sign-up request, replace the mobile number with an already registered one, and log in as that user, receiving their email, name, and contact number.
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
The OTP was not mapped to the user's mobile number during sign-up and was not validated on the server side.
Impact
An attacker could log in as another user and perform actions on their behalf, and the response disclosed the victim's email address, name, and contact number.
What the attacker needed
Ability to intercept HTTP requests; a mobile number to receive OTP
The fix
The OTP should be mapped to the user's mobile number during sign-up and validated on the server side, not just on the client.
How it was found
- Sign up as a new user and receive an OTP on the registered mobile number.
- Submit the OTP from the mobile device and intercept the request.
- Edit the mobile number in the request to an already registered number.
- The response allows login as the other user and includes their email, name, and contact 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, a one-time code (OTP) is sent to your phone to prove it is yours. The app checked the code on your device but not on its own server, so someone could change the phone number in the request to another person's number and still get in. This let them take over that person's account.
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.