Skip to content
IDOR Write-up Beginner

Bola Enumerating An Entire Employee Directory Through A Predictable Id

An internal HR endpoint used a sequential integer as the sole identifier for employee records and never checked whether the caller was entitled to that record. An authenticated low-privilege user could walk the ID to read other employees' personal data, including plaintext passwords, enabling account takeover.

Sid Follow

Published on infosecwriteups.com

During a gray-box pentest of a corporate SaaS platform (“TargetApp”), an internal HR/personnel endpoint accepted a plain sequential integer — idPersonnal — as the only identifier for which employee record to return, with no check that the authenticated caller had any relationship to that record. Walking the ID up or…

Sid, on infosecwriteups.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

The handler used the client-supplied identifier purely as a database lookup key and never bound it to the authenticated caller's identity or role.

Impact

Every employee's personal data, including plaintext passwords that were confirmed valid, could be harvested without rate limiting, enabling takeover of other accounts including administrative ones.

What the attacker needed

An authenticated low-privilege account; access to the HR/personnel module

The fix

The server should check on every request that the caller owns the requested record or holds an explicit role-based grant, and should never return passwords or emails to unprivileged roles; the text says remediation was done and confirmed.

How it was found

  1. Log in as a standard user with no administrative role and browse the HR module while capturing API traffic.
  2. Notice the personnel lookup request carrying a small sequential identifier for the logged-in user's own record.
  3. Resend the request with a nearby identifier belonging to a different employee.
  4. Observe a full personnel record returned for that other employee.
  5. Repeat with further nearby identifiers to confirm the whole directory is enumerable.

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 application programming interface (API) is how a website's front end talks to its server. This one accepted a simple number that identified an employee and returned that person's file without checking whether the person asking was allowed to see it. Because the numbers run in order, anyone logged in could count through them and collect everyone's details.

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 Sid

View all

4 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.