Privilege Escalation via IDOR and ACL Bypass in a SaaS Applicatio
An employee-level user could change the user ID in an ACL-editing request to target their own account, removing network-based access restrictions that only an administrator should control. This allowed privilege escalation by bypassing the intended ACL restriction.
Published on kumarmohank889.medium.com
Hello! This is a short writeup explaining how I was able to chain an IDOR vulnerability with an ACL (Access Control List) bypass while hunting on a SaaS platform that implements extensive Role-Based Access Controls (RBAC).
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 server trusted the user-supplied ID parameter without verifying that the authenticated user was authorised to modify ACLs for that specific target account.
Impact
Employees could remove their own network-based ACL restrictions, escalating their privileges beyond what was intended.
What the attacker needed
An Employee-level account; ability to edit ACLs for a User account
The fix
The server should verify that the authenticated user is authorised to modify ACLs for the target user ID, not just rely on the supplied ID.
How it was found
- As an administrator, invite two users: one with the Employee role and one with the User role.
- Log in as the Employee user and start editing the ACL configuration for the User account.
- Inspect the request and find the ID parameter that selects which user's ACL is being changed.
- Change that ID from the User's ID to the Employee's own ID and submit the request.
- Observe that the ACL restrictions on the Employee's own account are removed.
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 ACL (Access Control List) is a rule that decides who can access what, often based on network location. Here, an employee was only supposed to manage ACLs for lower-privileged users, not for themselves. By tampering with a user ID in the request, the employee could edit their own ACL and lift restrictions, which is a privilege escalation.
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.