Admin Dashboard Access Wasn’t Hacked — It Was Allowed
A publicly accessible API documentation subdomain revealed endpoints for user and admin management, and an unauthenticated endpoint exposed sensitive user details including role identifiers. By modifying a registration request to include an administrator role identifier, a normal user could create an account with administrator privileges.
medium.com
Published on medium.com
No exploits. No malware.
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 registration endpoint accepted a client-supplied role identifier without verifying that the user was allowed to assign that role, and an unauthenticated endpoint leaked role identifiers.
Impact
A normal visitor could create an account with administrator privileges and access the admin console.
What the attacker needed
Internet access; a normal user account; a proxy tool to intercept requests
The fix
The registration endpoint should ignore client-supplied role identifiers and assign roles only on the server side, and the user-details endpoint should require authentication and proper authorization.
How it was found
- Find an API subdomain with publicly accessible documentation.
- Register a normal user account and intercept traffic with a proxy.
- Notice an endpoint that reveals other users' details, including role identifiers.
- Modify the registration request to include an administrator role identifier.
- Submit the modified request and log in with the new administrator account.
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.
This is about a website that let anyone see its private API instructions and even a list of users with their roles. Because the site trusted whatever role a new user asked for, someone could sign up as an administrator just by changing a value in the request. No hacking tools were needed beyond a proxy to watch and edit web traffic.
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.