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.
- 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
- Click https://www.████████.mil/███████ (Example Forbidden page). If you click you will redirect to 403 "forbidden" page.
- But you can bypass this.
- 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.
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
- Visit the forbidden page and confirm it returns a 403 error.
- Send a POST request to the same URL with a Content-Length: 0 header.
- 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.