Skip to content
Access control Write-up Beginner

APIS are so easy to exploit

A low-privilege member could retrieve template information and team member details by manipulating API requests sent in the background. The attacker changed the resource parameter in a search endpoint to 'users' to disclose team member information.

momen_besher Follow

Published on medium.com

“Application Programming Interface:A set of functions and procedures allowing the creation of applications that access the features or data of an operating system, application, or other service.”

123456789uwu, 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 did not check whether the requesting user had permission to access the requested resources, allowing parameter manipulation to retrieve restricted data.

Impact

A low-level member could access template information and team member details that were restricted to higher-level roles, potentially exposing sensitive data.

What the attacker needed

A low-level member account

How it was found

  1. As a low-level member, try to access template information and observe no info appears.
  2. Use a proxy to inspect background API requests and find the request that retrieves template info.
  3. In the search function, search for any letter and note that customer info is returned but not team members.
  4. Review background API requests and find the search endpoint with a resource parameter.
  5. Change the resource parameter to 'users' after testing accepted values.
  6. Search for the mail domain with resource=users to disclose team member 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.

APIs are like waiters that fetch data for the app. The app was asking for data it should not show to low-level users, and the author changed the request to ask for other data. This let them see information meant for higher-level members.

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 momen_besher

View all

2 more disclosed reports, 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.