Privilege Escalation by manipulating endpoint
A supervisor-level user could reach the admin panel by changing the URL path to the admin endpoint, and then use admin-only functionality. This let a lower-privileged user perform actions reserved for administrators.
Published on medium.com
Hello Jai Shree Ram Dosto, Here is my first blog. I have found the Privilege Escalation during pen-testing.
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 admin endpoint relied on the link being hidden rather than checking the user's role on the server for every request.
Impact
A supervisor user could access the admin panel and perform all admin-only actions, which could lead to full control of the application.
What the attacker needed
A supervisor-level account
How it was found
- Log in to the application as the supervisor user.
- Change the URL path to the admin panel endpoint.
- Observe that the admin panel loads and admin-only functionality is available.
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 had a page meant only for administrators, but it checked who you were only by hiding the link, not by checking your account when the page loaded. A normal user could simply type the admin page address and get in, then use admin features.
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.