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