Skip to content
Info disclosure Write-up Beginner

Information disclosure, but not in the way you might expect

The login endpoint for phone-based OTP verification returned the email address linked to the account in its error response when an incorrect OTP was submitted. An attacker could use any valid phone number to learn the associated email address.

rajveer_0101 Follow

Published on medium.com

“This write-up highlights the importance of not overlooking any response and how it can sometimes earn you a bounty.”

Rajveer, 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 the OTP verification error response included the account's email address instead of a generic failure message.

Impact

An attacker could learn the email address associated with any phone number that has an account, which may aid further targeted attacks; the report does not claim account takeover.

What the attacker needed

A valid phone number with an account; access to the login panel

How it was found

  1. Open the login panel on the subdomain.
  2. Enter a valid phone number to start OTP verification.
  3. Submit any incorrect OTP.
  4. Observe the email address linked to the account in the response.

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 site sends a one-time code (OTP) to confirm it is you. If you type the wrong code, the site's error message accidentally included the email address registered to that phone number. That means anyone who knows a phone number can find out which email account it belongs to.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by rajveer_0101

View all

4 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.