Skip to content
Access control Write-up Intermediate

“500" Internal Server Bypass Everything Will Be “200" Okay

A mail service endpoint returned a 500 error instead of the expected 403, and by altering the encoding of the request the author obtained a 200 response that exposed sensitive information. The text does not specify what data was exposed or how the encoding change worked.

Xt3sY Follow

Published on medium.com

Hello, Pushkar here I just want to share my crazy experience regarding the sensitive data exposure bug at one of the mail service.

Pushkar Bhagat, on 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 server mishandled a malformed or unusually encoded request, failing open and returning protected content instead of rejecting it.

Impact

The author could access potentially valuable information that the endpoint was meant to protect, though the text does not say what data or how serious it was.

What the attacker needed

Target with a 500-returning endpoint

How it was found

  1. Run a content discovery tool against the target and note endpoints returning 403 or 500.
  2. Pick the endpoint that returned a 500 error and investigate it.
  3. Alter the encoding of the request and resend it.
  4. Observe a 200 OK response containing sensitive information.

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 return an error code (like 500) when they are confused by a request, rather than properly refusing it. The author noticed this odd response, changed how the request was encoded, and the server then answered normally (200) and showed data it should have kept private. The write-up does not explain the exact trick, so it is hard to learn the technique from it.

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 Xt3sY

View all

4 more disclosed reports, 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.