Skip to content
IDOR Write-up Beginner

I Found a “Hidden” API Bug That Could Have Paid $2,000+ — And Most Hackers Would Miss It

An undocumented internal API endpoint listing users was reachable with an ordinary user token, exposing emails and account data. A second internal endpoint took a user ID and returned any user's private details when the ID was changed.

osintteam.blog

Published on osintteam.blog

Until one day… I found a hidden API endpoint that wasn’t even supposed to be public.

Krish_cyber, on osintteam.blog

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 internal API endpoints checked that a request carried a valid login token but never checked the caller's role or that the requested record belonged to them.

Impact

An attacker with any account could dump the user list, including emails, and read any user's private data, enabling phishing and account enumeration.

What the attacker needed

A normal user account; an intercepting proxy

How it was found

  1. Browse the site with an intercepting proxy and note the API requests.
  2. Spot an undocumented internal endpoint that lists users.
  3. Replay that request with a normal user's token and see the full user list.
  4. Find a second internal endpoint that returns user details by ID.
  5. Change the ID to another user's and receive their private 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.

A website's API is the set of behind-the-scenes requests its pages make to fetch data. Here, some of those requests were meant only for staff but still answered ordinary users, and one accepted any user number, so anyone could read other people'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.

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.