Skip to content
Account takeover Write-up Beginner

OTP Bypass Leads to $2000 (2/30 DAYS)

The app's phone number update feature accepted the default OTP '0000' as valid, bypassing verification. An attacker could change any phone number, leading to account takeover, account deletion, or trip manipulation.

medium.com

Published on medium.com

I’m a security researcher, and I’ve taken on the challenge of explaining one bug bounty report every day for the next 30 days — 30 days, 30 reports!

0day stories, 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

Impact

Attackers could hijack accounts by changing the phone number, delete accounts linked to the phone number, or cancel and mess with trips.

What the attacker needed

Access to the app's account settings; a new phone number to enter

The fix

The OTP validation should not accept default codes like '0000', and stronger server-side checks should verify OTP authenticity.

How it was found

  1. Open the app and go to account settings.
  2. Choose to update your phone number.
  3. Enter a new phone number.
  4. When prompted for the OTP, enter '0000'.
  5. The phone number changes without verification.

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 change your phone number in an app, it usually sends a one-time code (OTP) to your new number to prove you own it. Here, the app also accepted a fixed code, '0000', so anyone could skip that proof. That means an attacker could take over an account by changing its phone number to one they control.

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.

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.