HTTP Chunk Extension Processing Vulnerabilities
Several HTTP server libraries did not properly limit the size of chunk extensions in chunked transfer encoding, allowing an attacker to send many small chunks with large extensions. This caused the server to read excessive amounts of data, leading to denial of service through resource exhaustion.
Published on nowotarski.info
A chunk extension can be added to a data chunk in HTTP/1.1 to extend it with some metadata connected to a given chunk. But what are chunks and chunk encoding in general?
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 HTTP parsers failed to enforce a reasonable limit on the total length of chunk extensions, as recommended by RFC9112, allowing unbounded or excessively large extensions to be read.
Impact
An attacker could cause a denial of service by exhausting server CPU, memory, or network bandwidth, potentially crashing the server or slowing responses for other clients.
What the attacker needed
Server uses vulnerable HTTP library; attacker can send HTTP requests
The fix
The vulnerabilities were fixed in updated versions of the affected libraries (Go 1.21.5/1.20.12, Puma 6.4.2/5.6.8, Hyper v1.1.0, and Node.js via CVE-2024-22019).
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.
When a web server receives data in chunks, each chunk can have extra metadata called a chunk extension. Some servers did not limit how long these extensions could be, so an attacker could send many tiny chunks with huge extensions, forcing the server to read gigabytes of unnecessary data and slow down or crash.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.