π How I Escalated My Privileges to System Administrator on Redacted Platform by Tweaking a Single API Request
The role assignment API accepted any role ID supplied by the client, including hidden internal roles not exposed in the UI. An attacker with an ordinary Administrator account could change their own role to System Admin and access restricted operational features.
In this write-up, Iβm going to share how I found a Privilege Escalation vulnerability on the Redacted (Letβs call it that) B2B platform that allowed me to upgrade my own role to System Administrator β and unlock restricted menus β by modifying one parameter in an API request.
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 server did not verify that the requesting user was authorised to assign the requested role ID, trusting client-supplied input.
Impact
An ordinary Administrator could escalate to System Admin and access sensitive operational features without authorisation.
What the attacker needed
A standard account (Administrator by default); ability to intercept and modify API requests
How it was found
- Create a standard account, which is assigned the Administrator role by default.
- Go to the Users Management page and edit your own user's role.
- Capture the role assignment request sent when saving.
- Replace the role ID in the request with a hidden role ID such as System Admin.
- Send the modified request and observe a 200 OK response.
- Return to the dashboard and see the Operations menu unlocked.
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 role decides what you are allowed to do in an application. The server should check that you are allowed to give yourself or others a role. Here, the server trusted whatever role number the browser sent, so a normal admin could make themselves a super admin.
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.