This One Hacker Trick Got Me Access To An Admin Dashboard ️
An admin dashboard returned 403 Forbidden to direct requests, but the backend honoured an X-Original-URL header and served the dashboard. An attacker could reach the admin dashboard without authentication.
Published on infosecwriteups.com
I’m a passionate cybersecurity enthusiast — a curious mind who likes poking around where I probably shouldn’t (ethically, of course 😉). One of my favorite types of bugs?
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 reverse proxy enforced access control on the original request path but forwarded the X-Original-URL header to the backend, which trusted it as an internal rewrite instruction.
Impact
An unauthenticated attacker could view the admin dashboard, potentially leading to full application compromise, though the text does not show actions beyond viewing the dashboard.
What the attacker needed
Knowledge of the admin subdomain; ability to send custom HTTP headers
The fix
Access controls should be enforced in the application layer, and proxies should strip untrusted headers such as X-Original-URL.
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 website's front door (a proxy) was told 'no entry' for the admin page, but the back room (the application server) still listened to a special note in the request saying which page was really wanted. By adding that note, the author got the admin page without logging in. This is a broken access control bug: the check happened in the wrong place and could be bypassed.
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.