How I Demoted a Project Owner to Viewer Using Just Burp Suite —
A project admin could change the project owner's role to viewer by altering the user ID in a PATCH request, because the backend did not verify the target user's role or the requester's authority. This let a lower-privileged admin permanently strip the owner of control, with no way for the owner to recover.
If you’ve been following along, you already know I’m rudr03 — a self-taught bug bounty hunter documenting every report I find. This is my second writeup, and this one’s a little different from the JS secrets finding.
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 ID in the URL and changed the role without checking whether the target was the project owner or whether the requester had authority over that specific user.
Impact
A project admin could silently demote the project owner to viewer, permanently removing the owner's control over the project with no way to recover without external help.
What the attacker needed
Attacker has a project admin account; victim is the project owner; attacker knows the owner's user ID
The fix
The backend should enforce role hierarchy and ownership invariants, validating that the requester has authority to modify the specific target user's role and preventing any change that would leave a project without an owner.
How it was found
- Create two accounts: one as project owner (victim) and one as project admin (attacker).
- Confirm the UI hides any option to edit the owner's role.
- Find the owner's user ID by viewing their profile, which puts the ID in the URL.
- Capture a legitimate role-change request from the admin account to another member.
- Replace the target user ID in the request with the owner's ID and forward it.
- Observe a 204 response and verify the owner's role is now viewer.
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.
In many apps, the screen hides buttons you are not allowed to press, but the server behind it must also check. Here, the server accepted a request to change the owner's role just because the attacker was an admin, without checking that the target was the owner. The attacker simply swapped the user ID in the request to point at the owner.
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.