Skip to content
Access control Write-up Beginner

Breaking the Hierarchy: How I Bypassed Role Restrictions to Becom

An administrator could invite a new user with the Owner role by changing the role parameter in the invite request, even though the system was designed to allow only one Owner. This let the attacker create an Owner account with full privileges, including deleting the original Owner and the entire workspace.

Fuzzyy Duck Follow

Published on meetcyber.net

Hey hackers! today, I’m here to share a Privilege Escalation vulnerability I found on a VDP Program that allowed me to create an Owner account from an Administrator account. This was a classic privilege escalation bug, and the impact?

Fuzzyy Duck, on meetcyber.net

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 did not validate the role parameter on the invite endpoint, trusting the client-supplied value instead of enforcing that only an existing Owner can assign the Owner role.

Impact

An attacker with an Administrator account could create an Owner account and gain full control, including deleting the original Owner, modifying or deleting any data, altering system configurations, and potentially deleting the entire workspace.

What the attacker needed

An Administrator account; ability to intercept HTTP requests

The fix

The server should enforce role-based access control on the invite endpoint, ensuring that only an existing Owner can assign the Owner role and that the role parameter is validated against allowed values for the caller's privilege level.

How it was found

  1. Log in as an Administrator and send an invitation to a secondary email with the Editor role.
  2. Intercept the invitation request using Burp Suite.
  3. Change the role parameter in the request body from Editor to Owner.
  4. Forward the request; the server responds with 200 OK and the invitation is created with Owner role.
  5. Complete the invitation process and log in as the new user to confirm full Owner privileges.

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.

In many apps, different users have different levels of power. An administrator can manage users but should not be able to create another owner, because the owner has the highest power. Here, the app checked the role only in the browser but not on the server, so by changing a hidden value in the request, the administrator could create an owner account and take over everything.

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 Fuzzyy Duck

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.