Finding My First Bug Http Request Smuggling
The website used an outdated web server that mishandled conflicting Content-Length and Transfer-Encoding headers, allowing HTTP request smuggling. An attacker could bypass front-end access controls to reach internal staff-only pages and documents that normally returned 403 errors.
Published on infosecwriteups.com
During my recon when I found all the possible subdomains I just started visiting them one by one, the vulnerable subdomain gave a 403 Forbidden error along with the version of the webserver.
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 front-end and back-end servers used different rules to determine request boundaries because the web server software was an outdated version that extended Nginx.
Impact
The technique could bypass front-end rules and may allow access to internal content meant to be private, as demonstrated by reaching a staff-only login page and documents that normally returned 403.
What the attacker needed
Vulnerable outdated web server; ability to send crafted HTTP requests
How it was found
- Visit the vulnerable subdomain, which returned a 403 Forbidden error and disclosed the web server version.
- Use Burp Suite's passive scanner to identify that the disclosed version might be vulnerable.
- Send a request with both Content-Length and Transfer-Encoding headers to trigger the desync.
- Smuggle a second request to access a staff-only login page and documents that normally returned 403, receiving 200 status codes.
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.
HTTP request smuggling happens when two servers in a chain disagree about where one HTTP request ends and the next begins. By sending a request with both a Content-Length header and a Transfer-Encoding header, the attacker makes the front-end and back-end servers interpret the request differently. This can let the attacker sneak a second request past the front-end's access checks, reaching pages that should be forbidden.
What is Smuggling / CRLF?
A front end and a back end split one connection's bytes into requests differently, letting an attacker hide a request inside another user's.