Forced Browsing to Access Admin Panel
The admin panel of a subdomain could be accessed without authentication by directly requesting internal paths while supplying a session cookie obtained from a public JSON endpoint. An attacker could view sensitive server-side information from the admin panel.
Published on vijetareigns.medium.com
Hello hackers, it’s been a while and I haven’t write anything about my finding. So, I decided to share one of my interesting findings.
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-side authorisation check was missing or incorrectly applied to the internal admin paths, so requests with a valid session cookie were served admin content without verifying the user's role.
Impact
An unauthenticated attacker could view sensitive server-side information from the admin panel, though only by forced browsing with a valid session cookie; normal navigation still redirected to the login page.
What the attacker needed
A valid session cookie from a public endpoint; knowledge of internal admin paths
The fix
The issue was fixed according to the timeline.
How it was found
- Enumerate subdomains and find admin.redacted.com.
- Open the admin subdomain and get redirected to the login page.
- Fetch JavaScript files and extract common paths such as /admin/dashboard and /admin/user.
- Observe a request to /backend/admin/user/user-menu.json that includes a PHPSESSID cookie.
- Use that cookie to directly request the extracted admin paths and view the admin panel content.
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 had an admin area that was supposed to be protected by a login page. However, if you asked for certain internal pages directly while sending a cookie from a public file, the site showed the admin content without asking you to log in. This is like finding a back door that skips the password check.
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.