Group admin can remove user from all his groups via API
A group admin could remove a user from groups they do not administer by replaying a request with a different group identifier. This allowed the admin to escape their group boundaries and manage users outside their assigned groups.
Originally disclosed on HackerOne
- Triaged in under an hour
- Fixed in 6 days
- Disclosed after 36 days
Steps
- As admin make user1 group admin for group1 and group2
- As user1 create a new user user2
- As user1 try to remove the user from both groups via the UI
- Take the first
togglegroup.phprequest and replay it withgroup2on curl
Expected
Should not work
Actual
The group-admin can escape his groups and create users that are not part of his groups.
Also possible via the provisioning_api.
Either the restriction should be enforced on the api endpoints (not only in the UI), or the restriction in the UI should be removed.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the API endpoint did not verify that the requesting admin had authority over the target group, relying only on UI restrictions.
What the attacker needed
Group admin privileges; ability to intercept and replay requests
How it was found
- As admin, make user1 group admin for group1 and group2.
- As user1, create a new user user2.
- As user1, try to remove user2 from both groups via the UI.
- Capture the first togglegroup.php request and replay it with group2.
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 report has not been written yet. The Original tab links to the source.
A group admin is only supposed to manage users within their own groups. The server checked this rule in the web interface but not in the API, so an admin could change the group name in a request and affect other groups.
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.