Skip to content
Access control Disclosed report Intermediate

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.

nickvergessen Follow

Originally disclosed on HackerOne

Informational View original
  • Triaged in under an hour
  • Fixed in 6 days
  • Disclosed after 36 days

Steps

  1. As admin make user1 group admin for group1 and group2
  2. As user1 create a new user user2
  3. As user1 try to remove the user from both groups via the UI
  4. Take the first togglegroup.php request and replay it with group2 on 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.

The original report as published on HackerOne, by nickvergessen. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. As admin, make user1 group admin for group1 and group2.
  2. As user1, create a new user user2.
  3. As user1, try to remove user2 from both groups via the UI.
  4. 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.

More by nickvergessen

View all

10 more disclosed reports, best first.

More from Nextcloud

View all

The newest disclosed reports for this program.

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.