Skip to content
IDOR Write-up Beginner

Find My Contacts (or personal data of 650,000 people)

The application used an incremental user identifier in API requests despite having an authentication token, allowing an attacker to change the identifier to read and modify other users' personal data. This exposed email addresses, phone numbers, locations, and MD5 password hashes of about 650,000 people.

medium.com

Published on medium.com

This is my third write-up, feel free to give me feedback on Twitter (@thibeaultchenu) or in the comments to help me. 🙂

The author, 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 API relied on a client-supplied incremental user ID for authorization instead of checking the authenticated user's identity from the token.

Impact

An attacker could read and modify the personal data of about 650,000 users, including email addresses, phone numbers, locations, and MD5 password hashes.

What the attacker needed

A valid user account; ability to intercept HTTPS traffic

The fix

The vulnerability was fixed the day after it was reported.

How it was found

  1. Install a proxy's SSL certificate on the phone to intercept HTTPS traffic.
  2. Use the app and export the captured requests.
  3. Identify endpoints that take an 'id' parameter even though an authentication token is present.
  4. Change the 'id' value in a request to modify another user's data and observe an 'OK' response.
  5. Change the 'id' in the location history endpoint to retrieve another user's data.

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.

The app's servers trusted a number that identified each user, and that number was easy to guess because it simply counted up. By changing the number in requests, anyone could see or change another person's private information, like their email or location.

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.