Skip to content
Access control Write-up Beginner

Privilege Escalation Bug Allowing Unauthorized Management of High

A Manager could assign the General Manager role to an employee and modify an existing General Manager account by tampering with requests, because the backend did not enforce role hierarchy restrictions. This allowed privilege escalation and unauthorised modification of higher-privileged accounts.

0xMo7areb 🥷 Follow

Published on medium.com

While testing the role management functionality, I discovered two related vulnerabilities affecting the application’s permission hierarchy.

0xMo7areb 🥷, 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

Likely the backend trusted user-supplied role values and employee identifiers without verifying the requester's authority, relying on frontend restrictions as security controls.

Impact

A Manager could escalate an employee to General Manager and modify or downgrade an existing General Manager account, gaining control over the highest-privileged role.

What the attacker needed

A Manager account; ability to intercept HTTP requests

The fix

The backend should enforce role hierarchy checks server-side, verifying that the requester is authorised to assign or modify the target role and account.

How it was found

  1. Log in as a Manager and go to an Employee profile.
  2. Open the role editing functionality and intercept the request.
  3. Replace the role value 'manager' with 'general_manager' and forward the request.
  4. The employee is promoted to General Manager.
  5. Log in as a Manager and open the editing functionality for a normal Employee.
  6. Intercept the update request and replace the employee identifier with a General Manager's ID, then forward it.

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 has different user roles with different levels of power. A lower-level user (Manager) should not be able to give someone the highest role or change the highest-level user's details. But the server did not check these rules, so by changing the request a Manager could do both.

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 0xMo7areb 🥷

View all

8 more disclosed reports, 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.