Skip to content
Access control Write-up Beginner

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.

0onoproblem Follow

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.

0_oNoProblem, on 0onoproblem.medium.com

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

  1. Open the site and go to the login form.
  2. Enter any random username and password.
  3. Intercept the login request with a proxy.
  4. Observe the server returns 401 Unauthorized.
  5. Change the response status to 200 OK and forward it.
  6. 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.

More by 0onoproblem

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.