Skip to content
Account takeover Write-up Intermediate

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.

dani3l Follow

Published on medium.com

Hello hunters! it is an interesting case of chaining vulnerabilities to take over any user account on an application — including admin and employee accounts.

dani3l, on medium.com

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

  1. Identify default test phone numbers that accept any OTP.
  2. Analyse the signup POST request and its parameters (mobileNo, uid, socialMediaId).
  3. Modify the uid parameter to a victim's phone number and observe the response.
  4. Confirm account takeover via the response containing isExistingUser: true and Login Successful.
  5. Brute-force phone numbers using Intruder and filter for isExistingUser=true to find valid accounts.
  6. 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.

More by dani3l

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.