Skip to content
Account takeover Write-up Intermediate

Authentication Bypass via Inconsistent Credential Validation (Pho

The login system inconsistently validates credentials for phone-number-based logins, allowing an attacker to log in or trigger OTPs without knowing the account password. This could lead to account takeover if OTP enforcement is weak or missing.

Lakshya Follow

Published on ch1ta.medium.com

During routine research on mobile authentication flows, I discovered a critical vulnerability that allows authentication bypass in systems where login can be done via phone numbers and email addresses. This flaw occurs due to inconsistent credential validation — the system skips password enforcement for certain…

Lakshya, on ch1ta.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

An attacker could bypass authentication and potentially take over accounts if OTP enforcement is weak or missing.

What the attacker needed

Valid phone number; no password set for phone identity; weak or missing OTP enforcement

The fix

The system should enforce uniform password validation across all identifiers and block login attempts if password or OTP is not explicitly validated.

How it was found

  1. Select or brute-force a valid 10-digit phone number.
  2. Attempt to log in using just the phone number and any random password.
  3. Observe that if the number is registered but has no password set, the system sends an OTP or directly logs in.

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 log in with a phone number, the system should check your password just like it does for email. Here, it sometimes lets you in or sends a code without checking the password at all. That means someone could get into your account just by knowing your phone number.

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 Lakshya

View all

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