Skip to content
IDOR Write-up Intermediate

IDOR Allows Unauthorized Access to Other Users’ Personal Data

An endpoint accepted a user identifier and returned personal data for any user, without checking that the requester owned that identifier. An attacker could enumerate identifiers to fetch other users' email, phone, name and country.

medium.com

Published on medium.com

Hi hackers, I’m Mahmoud Barkat (aka brbr0s) a bug hunter who’s always trying to learn more and get better at what he does.

brbr0s, 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 server trusted the supplied user identifier and returned the matching record without verifying that the caller was authorised to view it.

Impact

An attacker could retrieve other users' personal data such as email, phone, name and country by guessing identifiers.

What the attacker needed

Ability to send requests to the endpoint; valid Salesforce-style user IDs to guess

How it was found

  1. Capture the POST request to the Apex execute endpoint that contains a userId parameter.
  2. Replace the userId with one belonging to another account you control and observe that it returns that account's data.
  3. Note that the first 11 characters of the Salesforce ID are fixed and the last 3 are a checksum, leaving 4 characters to guess.
  4. Generate a wordlist of four-letter uppercase combinations and run it through Intruder against the userId value.
  5. Use a discovered valid ID in the request to retrieve that user's personal information.

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 ask for a record by its identifier but never checks that the record belongs to you. Here the identifier was a Salesforce record ID, and the site returned personal details for whichever ID you supplied. Because part of the ID was predictable, someone could try many values and collect other people's information.

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.