HTTP Request Smuggling: From Needs More Info to Confirmed Impact!
The target web application was vulnerable to HTTP request smuggling due to inconsistent handling of Transfer-Encoding and Content-Length headers. An attacker could inject arbitrary headers, redirect users to a malicious domain, and expose internal IP addresses.
medium.com
Published on medium.com
During a recent assessment, I uncovered an HTTP request smuggling vulnerability in a target web application, which allowed me to inject arbitrary headers, redirect users to a malicious domain, and expose internal IP addresses. Here’s a breakdown of how I discovered and exploited this issue, including the technical…
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 frontend and backend servers disagreed on how to parse the request body due to conflicting Transfer-Encoding and Content-Length headers, leading to request desynchronisation.
Impact
An attacker could redirect users to malicious sites for phishing and expose internal IP addresses, potentially aiding further attacks; the text does not mention any defence that limited the exploit.
What the attacker needed
No special access required; Target uses both frontend and backend servers
The fix
The vulnerability was fixed according to the text, with recommendations including strict header validation, removal of sensitive headers, and hardening of redirection logic.
How it was found
- Send a request with both Transfer-Encoding: chunked and Content-Length headers, where the chunked body contains a second request with a malicious Host header.
- Observe that the backend processes the smuggled request and responds with a redirect to the attacker-controlled domain and reveals an internal IP address.
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 is a technique where an attacker sends a specially crafted request that is interpreted differently by two servers (like a frontend proxy and a backend server). This can cause the backend to treat part of the attacker's request as a new, separate request, allowing the attacker to manipulate how the backend handles subsequent requests. In this case, the attacker could make the backend redirect users to a malicious site and reveal internal network addresses.
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.