How I Locked Out Every Owner and Admin in the Organization with a
A user with only the 'Edit Roles' permission could modify the protected Administrator role by changing the role ID in the request to the Administrator's internal ID. This removed all permissions from the Administrator role, causing every Owner and Admin in the organisation to be locked out and unable to log in.
I’m back after a long break — and I returned with a high-severity bug found in a private HackerOne program that can lock out every Owner and Admin in an organization, paving the way for a complete org takeover.
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 did not check that the role being edited was not the protected Administrator role, relying only on the UI to hide the edit option.
Impact
All Owners and Admins across the organisation were locked out and could not log back in, effectively causing a total organisation takeover.
What the attacker needed
A user account with 'Edit Roles' permission; ability to intercept HTTP requests
How it was found
- Create an organisation and invite a second user with only the 'Edit Roles' permission.
- Send a GET request that returns all role objects to find the Administrator role's internal ID (1).
- Edit any other role through the UI, removing all permissions, and intercept the outgoing PUT request.
- Replace the role ID in the request with 1 and forward it.
- Observe that the Administrator role now has no permissions and is labelled 'Edited'.
- Switch to the Owner account and see that it has been logged out and cannot log back in.
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.
The platform had a special 'Administrator' role that was supposed to be protected from changes. A user who was only allowed to edit other roles found that by changing a number in the request they could edit the protected role too. Removing all its permissions locked every owner and admin out of the organisation.
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.