Unprivileged User with Read/Write permission to User Access can escalate their role to ADMIN — Privilege Escalation
A team member with only read/write permission over user data could change the role identifier in the role-edit request to the literal value ADMIN, which the server accepted. This let the low-privileged user become an administrator, access all panel content and delete other admin accounts.
Published on ertugrull.medium.com
Hello, I wanted to share with you the “Privilege Escalation” vulnerability that I found in a private program on HackerOne.
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 trusted the client-supplied role identifier and did not verify that the requesting user was permitted to assign the admin role.
Impact
A low-privileged team member could become an administrator, reach all panel content and delete other admin accounts.
What the attacker needed
A team account; read/write permission on user data; ability to edit own role
How it was found
- Create a custom role that only allows read/write to user data.
- Invite a second account to the team with that limited role.
- Log in as the second account and open the role edit request.
- Replace the UUID in the roleId parameter with ADMIN.
- Send the request and refresh the page to see the admin role applied.
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.
A website lets team owners give each member a role, and each role decides what that person can do. The page that saves a role change trusted a value sent by the browser, so the user simply typed the name of the highest role instead of a normal identifier. The server should have checked that the person was allowed to assign that role, but it did not.
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.