Web Security Bug Bounty Write-Up: Bypassing Authentication via Lo
The application granted access to restricted areas without authentication when a crafted request included an altered Referer header and no Authorization header. An attacker could access restricted user accounts, retrieve sensitive data, and perform unauthorized actions.
Published on medium.com
In this write-up, I will detail how I discovered and exploited an authentication bypass vulnerability on a web application. This vulnerability allowed unauthorized access to restricted areas, demonstrating the critical importance of implementing proper access controls.
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 relied on the Referer header for access control instead of validating the session or authentication token.
Impact
An attacker could access restricted user accounts, retrieve sensitive user data without credentials, and perform unauthorized actions on behalf of users.
What the attacker needed
A valid user account; ability to intercept and modify requests
The fix
The development team implemented proper session validation, ensuring that authentication checks were strictly enforced at the server level.
How it was found
- Initiate an authentication request with a valid user.
- Capture the request and modify the Referer header to a dashboard URL.
- Remove the Authorization header entirely and forward the request.
- The server responds with 200 OK and grants access to the restricted area.
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 report describes a login bypass. The server checked the 'Referer' header (which tells where a request came from) instead of properly checking if the user was logged in. By changing that header and removing the login token, the attacker could get into private areas without a password.
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.