Day 16: Massive Users Account Takeovers (Chaining Vulnerabilities
Default test phone numbers allowed login with any OTP, and the signup endpoint's uid parameter could be manipulated to log in as any user. An attacker could brute-force phone numbers and take over accounts, including admin and employee accounts.
Hello hunters! it is an interesting case of chaining vulnerabilities to take over any user account on an application — including admin and employee accounts.
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, default test phone numbers were not disabled in production, and the signup endpoint trusted a user-supplied uid parameter without proper validation.
Impact
An attacker could enumerate valid phone numbers and take over any user account, including employee and admin accounts, and access sensitive user data.
What the attacker needed
No account needed; Knowledge of victim phone number; Signup endpoint accessible
How it was found
- Identify default test phone numbers that accept any OTP.
- Analyse the signup POST request and its parameters (mobileNo, uid, socialMediaId).
- Modify the uid parameter to a victim's phone number and observe the response.
- Confirm account takeover via the response containing isExistingUser: true and Login Successful.
- Brute-force phone numbers using Intruder and filter for isExistingUser=true to find valid accounts.
- Log in as any user, including employees or admins.
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.
Some phone numbers used for testing during development were left active in production, so anyone could log in as those users without a real code. Also, a signup request had a parameter that could be changed to make the system think you are someone else, letting you log in as them. This means an attacker could guess phone numbers and break into many accounts.
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.