Skip to content
Access control Write-up Beginner

A Simple URL Led to Full Admin Access: Privilege Escalation Case Study

A low-privileged user could reach the admin workgroup page by typing its URL directly, because the server did not check the user's role. The attacker could then use all admin functions, including reading and changing other users' data.

mrshan Follow

Published on mrshan.medium.com

I’m Shan, an Application Security Analyst focused on web, mobile, and infrastructure security testing.

MR SHAN, on mrshan.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 admin endpoint relied on hiding the UI link instead of enforcing a server-side role check.

Impact

A low-privileged user could access, modify and perform CRUD operations on other users' data.

What the attacker needed

A low-privileged account; knowledge of the admin endpoint URL

The fix

The server should check the user's role and permissions on every request to sensitive endpoints and return 403 when the user is not authorised.

How it was found

  1. Log in as an admin and note the admin page URL.
  2. Log in as a low-privileged user and confirm no admin tab is shown.
  3. Paste the admin URL into the low-privileged user's session.
  4. Observe that the admin page and its functions load.

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.

The application hid the admin menu from normal users, but the admin page itself was still reachable if you knew its web address. The server never asked 'is this person an admin?' before showing the page. So anyone with a normal account could open the admin page and do admin things.

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 mrshan

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.