Skip to content
IDOR Write-up Beginner

IDOR Allows an Admin to Add SuperAdmin (Which is not allowed)

An admin user could add a new staff member with the SuperAdmin role by changing the role identifier in the request, even though admins are not permitted to create SuperAdmins. This allowed the attacker to create a SuperAdmin account that could then change any staff member's password.

mrro0o0tt Follow

Published on medium.com

Hello Hackers, Already you assumed what I want to share with you guys! Of course my Title gave you the basic idea!

Whoami, 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 server did not verify that the requesting admin was authorised to assign the SuperAdmin role, trusting the role identifier supplied in the request.

Impact

A new SuperAdmin account could be created, which could then change any staff member's password.

What the attacker needed

An admin account

The fix

The server should check that the requesting user is allowed to assign the SuperAdmin role before creating the account.

How it was found

  1. Log in as an admin user.
  2. Go to the manage staff function and start adding a new staff member.
  3. Intercept the request and find the role identifier parameter.
  4. Change the role identifier from the admin value to the SuperAdmin value.
  5. Submit the request and observe that a SuperAdmin account is created.

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 web apps, the server trusts a value sent by the browser to decide what role a new user gets. Here, an admin could simply edit that value to 'SuperAdmin' and the server accepted it without checking whether the admin was allowed to do that. This is called an insecure direct object reference (IDOR) because the app uses an identifier from the request without verifying permission.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by mrro0o0tt

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.