Skip to content
Access control Write-up Beginner

$XXX Privilege Escalation Vulnerability Led me to be Application

A user-creation endpoint checked only the sender's role, so a project manager could create a new account with super admin privileges. An attacker with project manager access could therefore gain full administrative control of the application.

Nyx0r Follow

Published on medium.com

Hi Hackers, today we are gonna talk about a basic broken access control vulnerability i have found on a production-based closed project used for calculating the risk measure happens in incidents at medical industries

Nyx0r, 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

Impact

A project manager could create a super admin account and thereby escalate to full administrative control of the application.

What the attacker needed

A project manager account

How it was found

  1. Log in as a project manager and send a request to the user-creation endpoint.
  2. Change the new user's role in the request from coordinator or member to super admin.
  3. Submit the request and observe that the super admin account is created.
  4. Log in with the new account and see the super admin dashboard.

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.

Applications often give people different levels of permission, such as a normal member or an administrator. This endpoint checked that the person asking was allowed to create users at all, but never checked that they were allowed to create an administrator. So a mid-level user could simply ask for a new account with the highest permissions and get one.

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 Nyx0r

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.