Skip to content
Access control Write-up Beginner

Privilege Escalation Melalui Manipulasi Role di program hackerone

The role of a newly created user was chosen on the client side, and the server did not properly check or authorise that role value. An authenticated user could change the role to an admin value in the request and create a new account with administrative rights.

medium.com

Published on medium.com

Telah ditemukan kerentanan vertical privilege escalation pada alur pembuatan pengguna baru. Dalam antarmuka “Tambah Pengguna”, penentuan peran (role) pengguna baru dikendalikan di sisi klien.

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

The server trusted a client-supplied role parameter when creating a user instead of enforcing authorisation on the server side.

Impact

The invited user becomes an admin and could edit or delete information and possibly take assets or money from the workspace, which the author says could be critical.

What the attacker needed

An authenticated account; ability to add users in a workspace; a proxy to edit the request

How it was found

  1. Open the page in the workspace where a new user can be added.
  2. Add a new user and fill in the required details.
  3. Capture the create-user request in a proxy and look at the role field.
  4. Change the role value to an admin value and forward the request.
  5. Check the response; a created status means an admin user was added.

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 add a user, the page sends a request that includes the user's role, such as viewer. The server accepted whatever role the request asked for instead of deciding the role itself. So a normal user could ask for an admin account 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.

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.