Skip to content
Access control Write-up Intermediate

I Bypassed a 404 Page With cURL and Earned $2,500 From One Bug

The application returned a fake 404 page for normal requests but returned real internal content when a spoofed forwarding header was added. An attacker could use modified requests to access employee panels, support tickets, internal files and user information that should not have been public.

medium.com

Published on medium.com

I was half asleep using curl commands copied from old notes while eating cheap noodles.

Halohashm, 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 application trusted a user-supplied forwarding header to decide access, so spoofing it bypassed authorization checks.

Impact

An attacker could access employee panels, support tickets, internal files and user information that should not have been public.

What the attacker needed

Network access to the target; ability to send custom HTTP headers

How it was found

  1. Send a normal request to the admin path and observe a 404 response.
  2. Change the request method to POST and still get a 404.
  3. Add a spoofed forwarding header claiming the request came from the local machine.
  4. Observe an HTTP 200 OK response with real internal content despite the page still showing 'Page Not Found'.

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.

A website can show a 'not found' page while secretly returning real content if the request looks a certain way. Here, adding a header that claimed the request came from the local machine made the server show protected pages. This is dangerous because attackers can see private data just by changing the request.

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.

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.