Skip to content
Access control Write-up Beginner

Information Disclosure Through Unrestricted API Endpoints

A low-privileged viewer could call project management API endpoints directly and retrieve user lists, emails, internal IDs, role assignments and admin indicators that the UI hid. The backend did not enforce the same permission checks as the frontend, so any viewer who knew the endpoints could read sensitive project data.

Dr_Robik Follow

Published on medium.com

During one of my usual bug hunting sessions, I was exploring a website that I’ll call target.com to keep things anonymous. I was testing with a low-privileged account, basically a viewer, and at first, everything seemed completely normal.

DrRobik, 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 endpoints lacked server-side authorization checks, relying on the frontend to hide sensitive data instead of enforcing permissions on each request.

Impact

A viewer could read all users in a project, their emails, internal IDs, role assignments and admin indicators, which could help an attacker map the team and plan further attacks; the text states no write access was possible.

What the attacker needed

A low-privileged viewer account; knowledge of the API endpoints

The fix

The backend should enforce the same permission checks as the frontend on every API endpoint, so viewers cannot retrieve user or role data.

How it was found

  1. Log in with a low-privileged viewer account and confirm the UI hides users, roles and project data.
  2. Temporarily upgrade the account to Project Manager and capture a role-update request in Burp Suite.
  3. Downgrade the account back to viewer and confirm the UI hides the same data again.
  4. Change the saved request method to GET and simplify the path to the project management API root.
  5. Request project-specific and people endpoints directly and observe that user details are returned.

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 has two parts: the screens you see and the server behind them. The screens were hiding user lists and roles from a low-privileged account, but the server would still hand over that data if asked directly. This is like a receptionist refusing to show you a file cabinet while the storage room door is unlocked.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Dr_Robik

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.