Skip to content
IDOR Write-up Beginner

I Found a Major Privacy Leak in a Popular Social App Just Because

An API endpoint for user data accepted a sequential numeric identifier, allowing anyone to enumerate and retrieve private information such as email addresses, phone numbers and physical addresses, even for private accounts. A related update endpoint allowed unauthenticated changes to other users' profile photos, bios and privacy settings.

KonaN Follow

Published on kkonann.medium.com

Sometimes vulnerabilities don’t come from months of reconnaissance or deep-dives into enterprise systems. Sometimes, it starts with a casual conversation.

KonaN, on kkonann.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 API used a predictable sequential identifier for user records and did not enforce authentication or authorisation on the read and update endpoints.

Impact

Over 100,000 users' private information could be exposed and anyone could tamper with other users' profiles, enabling privacy invasion, doxxing and reputation damage; the report says the issue had not been patched at the time of writing.

What the attacker needed

No account needed; network access to the API

The fix

The API should require authentication and authorisation on every endpoint and should not use sequential identifiers to access user data, but the text says it had not been patched.

How it was found

  1. Download the app's APK and extract endpoints and parameters with Mobsf.
  2. Notice the users endpoint accepts both a sequential id and a random userid.
  3. Enumerate users by incrementing the id parameter.
  4. Observe private data returned for each user, including private accounts.
  5. Send a PUT request to the same endpoint with a userid to change another user's profile.

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.

Many apps give each user a number, like 1, 2, 3. If the app lets anyone ask for user number 5, 6, 7 and so on without checking who is asking, a stranger can collect everyone's details. Here the app also let anyone change other people's profiles without logging in.

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.

More by KonaN

View all

2 more disclosed reports, best first.

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.