Full Organization Account Takeover (ATO) by Changing One Parameter
A full-access user could change the owner's password by swapping the admin_id parameter in a profile-edit request, because the backend never checked whether the caller was allowed to modify that account. This let the attacker log in as the owner and take full control of the organisation.
In this write-up, I’ll explain step by step how I discovered a critical Broken Access Control vulnerability that allowed a normal user to take over the Owner account of an entire organization.
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 trusted the user-supplied admin_id parameter and never verified that the requester had permission to modify the target account.
Impact
An attacker with a full-access account could take over the owner account and gain full control of the entire organisation.
What the attacker needed
A full-access user account; ability to intercept HTTP requests
The fix
The backend should check that the requester is authorised to modify the target account and enforce role hierarchy before processing the change.
How it was found
- As a full-access user, click 'Show Sessions' for the owner account and intercept the request to read the owner's admin_id.
- Edit your own profile and intercept the POST request to the user management endpoint.
- Replace your own admin_id with the owner's admin_id and add a new password field.
- Send the request; the server returns success and the owner's password is changed.
- Log out and log in with the owner's email and the new password to gain owner access.
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 website had a hidden form that let you edit your own account. The form included a number identifying which account to edit. The server trusted that number without checking whether you were allowed to edit that account, so by putting the owner's number in, you could change the owner's password and log in as them.
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.