Skip to content
Access control Write-up Beginner

Privilege Escalation via Role Manipulation

A user with a standard manager role could create a normal user, then intercept the update request and change the role to a restricted system-level role. The backend accepted the modified request, granting the attacker elevated privileges.

medium.com

Published on medium.com

Last month I discovered a vulnerability in a private healthcare program that rewarded me $$$$ through their bug bounty program.

C0deRevenant, on 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

Authorization was enforced only on the client side; the backend did not validate whether the user had permission to assign the restricted role.

Impact

The attacker could escalate privileges to a system-level role, gaining unauthorized administrative capabilities and potentially accessing sensitive healthcare data.

What the attacker needed

Access to the platform with a standard manager role

The fix

The vulnerability was fixed by the security team after responsible disclosure.

How it was found

  1. Create a user with a normal role.
  2. Intercept the request to edit that user.
  3. Modify the role value to the restricted system-level role.
  4. Forward the request to the backend.

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 application only checked permissions in the browser, not on the server. By using a tool to intercept and change the request, the attacker could assign themselves a higher role that the interface blocked.

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.

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.