From Nothing to Full Admin Access: Chaining Broken Access Control
The application relied on client-side response parameters to decide which pages a user could access, and the admin API endpoints only checked a response flag rather than server-side roles. By tampering with the responses, a normal user could reach the admin panel and view or modify users, pages and other functions.
Broken Access Controls are everywhere. In application security, they show up in many different ways.
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 client-side response fields (hasAccessPermission, success, code) for authorisation instead of enforcing role checks on the server.
Impact
A normal user could access the admin panel and view or modify users, pages and other functions, effectively gaining full admin access.
What the attacker needed
A normal user account; ability to intercept and modify responses
How it was found
- Log in as a normal user and observe the /api/Pages/GetForUser response.
- Change hasAccessPermission from false to true in that response so the Admin Panel menu item becomes clickable.
- Open the Admin Panel and note the admin API endpoints that are loaded.
- Intercept the /api/Role/Roles request, which returns 403 Forbidden.
- Change the response status to 200 OK, success to true and code to 200.
- Use the now-accessible admin endpoints to view or modify users, pages and other functions.
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 app decided what you were allowed to see in your browser, not on its server. A user could edit the server's reply so the app believed they were an admin, and the admin pages then loaded. This is like a club letting you in because you wrote 'VIP' on your own hand instead of checking a list at the door.
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.