Nextcloud · Report #199286
Group admin can remove user from all his groups via API
Validstatus
10upvotes
23 Feb 2017disclosed
How it was found
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.