Unauthorized Access to Internal Panel via Response Manipulation
The internal login panel relied on the HTTP status code returned by the server to decide whether authentication succeeded. By intercepting the 401 Unauthorized response and changing it to 200 OK, an attacker could make the client treat a failed login as successful and gain access to the panel.
Published on 0onoproblem.medium.com
Hi everyone, I’m Ahmed Ehab, but many in the security community know me as Nopr. Today, I’d like to share an interesting bug I discovered during testing a bug bounty program.
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 client-side logic decided whether the user was authenticated solely from the HTTP response status, without the server independently enforcing the session.
Impact
An attacker could bypass authentication and reach an internal panel without valid credentials, though the report notes the issue was later marked as a duplicate.
What the attacker needed
Ability to intercept and modify responses; access to the internal login panel
The fix
Authentication decisions should be enforced on the server side, with the client never trusting a response status alone to grant access.
How it was found
- Open the site and go to the login form.
- Enter any random username and password.
- Intercept the login request with a proxy.
- Observe the server returns 401 Unauthorized.
- Change the response status to 200 OK and forward it.
- See that the application treats you as logged in.
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.
When you log in, the server sends back a status code: 401 means 'wrong password', 200 means 'OK'. Here the application trusted that code on the client side instead of checking on the server whether the login really worked. So an attacker could edit the reply in transit and pretend the login had succeeded.
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.