Authentication Bypass leads to PII = ($$$)
A page intended for internal employees returned a 200 status with an access-denied message, and adding a header claiming the request came from the local machine revealed a panel holding users' personally identifiable information. The reporter found this by fuzzing headers and comparing response sizes rather than status codes.
medium.com
Published on medium.com
I hope you’re doing well! I want to share a recent scenario from one of my latest 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 application trusted a client-supplied forwarding header to decide the request originated from localhost and therefore skipped authentication.
Impact
An unauthenticated attacker could view a staff-only panel exposing users' personally identifiable information; the finding was in a test environment with demo data.
What the attacker needed
No account needed; ability to send custom headers
The fix
The security team patched the issue, though the text does not describe how.
How it was found
- Notice that restricted pages return 200 with an access-denied message instead of 403.
- Fuzz request headers and compare response sizes against the baseline.
- Spot a header that produces a different response size.
- Send the request with that header and reach the internal panel.
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.
Some web servers decide who you are based on headers, which are just extra lines of text sent with every request. Here the server trusted a header that claims where the request came from, so anyone could pretend to be an internal machine and see a staff-only page. That page showed personal details about users, which is sensitive data.
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.