From Login Page to Full Admin Panel Takeover
An archived admin login page was reachable despite the main site returning 403, and endpoints that redirected with 302 could be accessed by changing the status to 200 and removing authentication headers. A user-creation endpoint accepted a role parameter, allowing the attacker to create an admin account and gain full backend control including PII of over 8,000 employees.
medium.com
Published on medium.com
Hey everyone, In this write-up, I’m sharing the journey of how a simple login page led to full admin access in a live production environment. It started with casual recon and turned into one of the most impactful vulnerabilities I’ve found.
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
Impact
The attacker could create an admin account and gain full control over the backend, including managing workflows, sites, clients, roles, users, and accessing PII of over 8,000 employees and more than 270 sensitive internal functions.
What the attacker needed
Archived admin login page indexed by search engine; ability to intercept and modify HTTP responses; no credentials required
How it was found
- Use DuckDuckGo dorking to find an archived admin login panel indexed by a search engine.
- Fuzz paths adjacent to the archived login page to discover endpoints returning 302 with large response sizes.
- Manually change the HTTP status from 302 to 200 and remove authentication-enforcing headers to render pages without logging in.
- Fuzz JavaScript files to find sensitive POST endpoints for add, edit, and delete operations.
- Replicate requests to these endpoints, which worked without authentication.
- Find a user-creation endpoint that includes a role parameter, and craft a request to create a new user with the admin role.
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 tester found an old admin login page that search engines had saved, even though the main site said 'forbidden'. By altering the web server's response, they could see admin pages without logging in, and then they created a new account with admin rights. This gave them control over the whole system and access to private data of thousands of employees.
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.