Skip to content
IDOR Write-up Beginner

IDOR: The Phone Number That Speaks Everyone’s Secrets

An API endpoint returned a user's email address and verification status when given only a phone number, with no authentication or authorisation check. An attacker could enumerate phone numbers to harvest email addresses and account verification status.

anandhanaryan Follow

Published on medium.com

I was testing a website and noticed something interesting. When I entered a phone number in a form, the website made this request.

Anandhan, 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 backend endpoint lacked authentication and an ownership check, trusting the phone number supplied by the client as sufficient to return the associated account data.

Impact

An unauthenticated attacker could enumerate phone numbers to obtain linked email addresses and verification status, exposing personal data and helping target active accounts.

What the attacker needed

No account needed; knowledge of a phone number

The fix

The endpoint should require authentication and verify that the caller is authorised to view the requested phone number's data before returning it.

How it was found

  1. Enter a phone number in a form on the website and observe the API request it triggers.
  2. Note that the request carries no authentication, session or token.
  3. Replay the request with a different phone number using an intercepting proxy.
  4. Observe that the response returns the email and verification status for that number.

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.

An IDOR (Insecure Direct Object Reference) happens when a website lets you access someone else's data just by changing an identifier, like a phone number, in a request. Here the server never checked who was asking, so anyone could look up any phone number and get back the linked email address.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.