Skip to content
Access control Write-up Beginner

Privilege Escalation: From being a normal user to admin

A URL found in archived data contained an admin app_id and redirect_uri. When a logged-in normal user visited it, their account was changed to admin, granting access to admin-only features.

Akshar Tank Follow

Published on parasarora06.medium.com

Reference:https://www.netsparker.com/blog/web-security/privilege-escalation/

Paras Arora, on parasarora06.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 application trusted a client-supplied app_id parameter to assign the admin role without verifying the user's authorisation.

Impact

A normal user could gain full admin access to the web application.

What the attacker needed

A normal user account; knowledge of the special URL

How it was found

  1. Find the URL containing the admin keyword and app_id via archived data.
  2. Register a normal user account on the site.
  3. While logged in as the normal user, open the found URL in a new tab.
  4. Observe that the account is changed to admin and admin features become accessible.

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 normal user account was able to become an admin just by opening a special web address. The address contained a hidden identifier for the admin role, and the site trusted it without checking if the user was allowed to be an 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.

More by Akshar Tank

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.