When APIs Don’t Play by the Rules — Multiple Authorization By
The backend APIs of a workplace collaboration platform failed to enforce role-based access control, letting low-privileged admins suspend users, access restricted features by swapping permission IDs, create or delete sub-admins, and force-logout arbitrary users via IDOR. An attacker with a low-privileged account could escalate privileges and disrupt the organisation.
Published on medium.com
I’m Sagar Kirola, and in this writeup I’ll share multiple API vulnerabilities I discovered while testing a SAAS workplace communication and collaboration platform it was the same target that i discuss in my first writeup if you did’t read it yet give it a sort.
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
The backend APIs trusted user-controlled values in URLs and request bodies and did not perform server-side authorization checks.
Impact
A low-privileged admin or member could escalate privileges, suspend or delete higher-privileged accounts, access restricted admin functionality, and force-logout arbitrary users at scale, potentially taking control of the organisation.
What the attacker needed
A low-privileged admin account; a member-level account for IDOR; knowledge of target user IDs
How it was found
- Log in as a custom admin with only Group Management permission.
- Send a direct API request to the user suspension endpoint using the session cookies.
- Observe that the target user is suspended despite lacking permission.
- Replace the permission ID in the URL with a higher-privileged one and access restricted admin features.
- Change the role name in the URL from opAdmin to subAdmin to promote a user, or use DELETE to remove a sub-admin.
- Replace the user ID in the logout request with another user's ID to force-logout them.
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.
This report describes several bugs where a website's server trusted whatever the user's browser sent, instead of checking whether that user was actually allowed to do the action. A low-level admin could change a value in a request (like a role name or a user ID) and the server would carry out sensitive actions such as suspending accounts or logging people out. The fix is for the server to always verify permissions itself, not rely on the interface hiding buttons.
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.