CVE-2022-32213 - HTTP Request Smuggling Due to Flawed Parsing of Transfer-Encoding
The llhttp parser in Node.js's http module did not correctly parse and validate Transfer-Encoding headers, which could allow HTTP request smuggling. An attacker could potentially use this to poison caches, bypass security layers, or steal credentials, depending on the application.
- Triaged in 15 hours
- Fixed in 14 days
- Paid in 14 days
- Disclosed after 14 days
Summary by the program
HTTP Request Smuggling - Flawed Parsing of Transfer-Encoding (Medium)(CVE-2022-32213)
The llhttp parser in the http module does not correctly parse and validate Transfer-Encoding headers. This can lead to HTTP Request Smuggling (HRS).
More details will be available at CVE-2022-32213 after publication.
Thank you to Zeyu Zhang (@zeyu2001) for reporting this vulnerability.
Impacts:
All versions of the 18.x, 16.x, and 14.x releases lines. llhttp v6.0.7 and llhttp v2.1.5 contains the fixes that were updated inside Node.js
Security Advisory: https://nodejs.org/en/blog/vulnerability/july-2022-security-releases/
The report
Original Report: https://hackerone.com/reports/1524555
Impact
Depending on the specific web application, HRS can lead to cache poisoning, bypassing of security layers, stealing of credentials and so on.
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 llhttp parser did not properly handle edge cases in Transfer-Encoding header parsing, leading to inconsistent interpretation of request boundaries.
Impact
Depending on the application, this could lead to cache poisoning, bypassing of security layers, or credential theft.
What the attacker needed
Node.js 18.x, 16.x, or 14.x
The fix
The issue was fixed in llhttp v6.0.7 and v2.1.5, which were included in Node.js security releases.
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.
HTTP request smuggling is a trick where an attacker sends a request that different servers interpret differently, so one server sees two requests instead of one. This can let the attacker sneak past security checks or poison a cache. Here, the bug was in how Node.js parsed a header that tells the server how to read the request body.
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.