Skip to content
Access control Write-up Beginner

Broken Access Control leads to Take Admin Role

The sign-up request for an admin portal included a user-controlled 'type' parameter, so a new account could be created directly with admin or super-admin privileges. An attacker could therefore gain full administrative access and edit or delete other accounts.

0xebn-taimia Follow

Published on 0xebn-taimia.medium.com

بِسْ� ِ اللَّـهِ الرَّحْ� َـٰنِ الرَّحِي� ِ | In the name of God, the most gracious, the most merciful

0xEbn-Taimia, on 0xebn-taimia.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 trusted a client-supplied 'type' field during account creation instead of assigning the role itself.

Impact

An attacker could create accounts with admin or super-admin roles and edit or delete other accounts; the report says the issue had already been fixed before the submission was accepted.

What the attacker needed

Access to the admin portal sign-up page; a proxy tool to edit requests

The fix

The server should assign account roles itself and ignore any role value supplied by the client; the text says the issue had already been fixed.

How it was found

  1. Find the admin login endpoint by fuzzing a subdomain.
  2. Create a normal account from the sign-up page.
  3. Capture the account creation request in a proxy.
  4. Change the 'type' parameter to an admin value and resend.
  5. Log in and confirm access to the admin interface.

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.

When you create an account on a website, the site usually decides what permissions you get. Here the website trusted a value sent by the browser that said what kind of account to make. By changing that value, a normal visitor could make themselves an administrator.

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 0xebn-taimia

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.