Skip to content
Access control Write-up Intermediate

Smart recon to PWN the panel

A management panel path was reachable directly without authorisation, and the user-management screen let a newly registered, unapproved account activate itself and assign itself the admin role. An attacker could therefore gain full control of the panel.

medium.com

Published on medium.com

Hello everyone, this is my second write-up, and I will be talking about one of the most interesting findings I discovered this week.

rood, 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 management endpoints and the role/status update lacked server-side authorisation checks, so the client could change its own account state.

Impact

The attacker gained admin privileges and full control of the management panel.

What the attacker needed

A free account; admin approval normally required; knowledge of the panel path

How it was found

  1. Find the company's subdomains with an internet scanning search engine and filter the results.
  2. Register a new account, which requires admin approval.
  3. Inspect the login request and notice the role parameter in the response.
  4. Try response manipulation, which does not work.
  5. Read the JavaScript file to find hidden paths and open the management path directly.
  6. In user management, activate the account, assign the admin role, and log back in.

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.

A web app has hidden pages that are meant only for staff, such as a settings or user-management screen. Here those pages were not protected on the server, so anyone who knew the address could open them. The page also trusted the browser to say what role the account had, so a normal visitor could simply set their own account to admin.

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.