Improper Access Control Leading to Administrative Privilege Escal
The application did not verify a user's role on the server when serving the admin page. A normal user could change the URL path from the user page to the admin page and see the administrator dashboard.
Kadang bug yang kelihatannya sepele justru paling bahaya. Bukan exploit ribet, bukan juga teknik hacking yang kompleks.
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 server relied on the URL path to decide access and never checked the logged-in user's role before returning the admin page.
Impact
A normal user could gain administrator access, which the author says could lead to full control of the application.
What the attacker needed
A normal user account
The fix
The server should check the user's role on every request and refuse the admin page to non-admin users.
How it was found
- Log in with a normal user account.
- Open the user page at the given path.
- Change the path in the address bar from user to admin.
- Press Enter and the admin dashboard loads.
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 could reach the administrator page just by editing the web address. The server never checked whether that person was really an admin before showing the page. This is called a missing access control check: the program trusts the URL instead of checking the user's role.
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.