Skip to content
Account takeover Write-up Beginner

Insecure by Design: How a Mobile API Let Me Reset Anyone’s Pas

The mobile API's password reset endpoint accepted a new password directly in the request without any OTP or token verification. An attacker who knew a victim's phone number could reset their password and log in to access personal data.

iski Follow

Published on infosecwriteups.com

Free Link 🎈

Iski, on infosecwriteups.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 the password reset endpoint trusted client-supplied new password fields and lacked any server-side verification of phone ownership.

Impact

An attacker could reset passwords for any account by knowing only the phone number, then log in to view sensitive data such as full name, email, linked credit cards, order history, and delivery address.

What the attacker needed

Know victim's phone number; no authentication required

The fix

The endpoint should be fixed by requiring OTP verification, a phone verification token, rate-limiting, captcha, and a user identity validation step.

How it was found

  1. Intercept the mobile app's forgot password request.
  2. Send a request with only the phone number and observe a success message but no SMS.
  3. Add new_password and confirm_password fields to the same request.
  4. The password is reset without any OTP or token.
  5. Log in with the new password to access the account.

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 password reset should prove you own the account, usually by sending a code to your phone or email. Here, the server skipped that check and let anyone set a new password just by sending a phone number. That means anyone who knows your phone number could take over your 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.

More by iski

View all

186 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.