Skip to content
Access control Disclosed report Beginner

403 Forbidden Bypass at www.██████.mil

A misconfigured server allowed bypassing 403 Forbidden pages by sending a POST request with a Content-Length: 0 header. An attacker could read pages that were intended to be restricted.

sldwn Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 27 days
  • Disclosed after 38 days

Summary by the researcher

403 Page Bypass possible with misconfigured server. Attacker can read pages cause of misconfigured server.

The report

Hi team, I managed to bypass 403 forbidden pages in www.████████.mil #Reproduce

  1. Click https://www.████████.mil/███████ (Example Forbidden page). If you click you will redirect to 403 "forbidden" page.
  2. But you can bypass this.
  3. type this command: curl -H "Content-Length:0" -X POST https://www.████████.mil/███

#Proof-of-Concept For exploit write this command. Exploited command: curl -H "Content-Length:0" -X POST https://www.███████.mil/██████████ Denied command: curl -X GET https://www.███████.mil/██████ #Questions: Why you need "Content-Length:0" header? Answer: If you dont use this headersometimes you can get 411 error code. Can i reproduce this in burpsuite? Answer: Yes, you can.But "curl" faster. How you did bypass? **Answer:**With POST method and Content-Length header.If you send GET or dont use that header you cant bypass.

#Note I looked for something important in the site. However, I could not find it. But if something important is used within the site and maintained in the same way, it may be possible to bypass it with the same techniques.

Impact

Attacker can bypass forbidden 403 pages.

The original report as published on HackerOne, by sldwn. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server's access rules only checked GET requests and did not apply the same restriction to POST requests with a Content-Length header.

Impact

An attacker could bypass 403 Forbidden pages and read restricted content, though the reporter did not find any sensitive information.

What the attacker needed

None

How it was found

  1. Visit the forbidden page and confirm it returns a 403 error.
  2. Send a POST request to the same URL with a Content-Length: 0 header.
  3. The request bypasses the 403 restriction.

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 report has not been written yet. The Original tab links to the source.

A 403 Forbidden page is a standard web error that means the server is refusing to show you a page. Here, the server was set up incorrectly, so it would still show the page if the request was sent in a slightly different way. This let someone see content that was supposed to be blocked.

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 from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.