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.
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…
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
- Log in as a standard user with no administrative role and browse the HR module while capturing API traffic.
- Notice the personnel lookup request carrying a small sequential identifier for the logged-in user's own record.
- Resend the request with a nearby identifier belonging to a different employee.
- Observe a full personnel record returned for that other employee.
- 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.