Skip to content
Access control Write-up Beginner

πŸš€ 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.

ASC Lages Follow

Published on root-geek.medium.com

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.

ASC Lages, on root-geek.medium.com

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

  1. Create a standard account, which is assigned the Administrator role by default.
  2. Go to the Users Management page and edit your own user's role.
  3. Capture the role assignment request sent when saving.
  4. Replace the role ID in the request with a hidden role ID such as System Admin.
  5. Send the modified request and observe a 200 OK response.
  6. 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.

More by ASC Lages

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.