HTTP/2 Denial of Service Vulnerability
Malformed HTTP/2 frames, such as a GOAWAY frame, cause the Node.js http2 module to perform an uninitialised read, leading to a segmentation fault. An attacker can send such frames to crash the Node.js process, causing a denial of service for all users of the instance.
- Disclosed after 22 months
Summary: Malformed HTTP/2 frames cause NodeJS http2 module to perform an uninitialized read. This results in a segmentation fault of the node process, causing a denial of service for all users of the instance.
Description: I have already worked extensively with the nodejs core security team on this issue. The issue has already been acknowledged by James Snell so this report is to officially get the issue on the books. All necessary details for this bug report have already been provided via security mailing list for nodejs. This issue is known to be present in v9 and v10 of nodejs.
Steps To Reproduce:
Again, all the necessary repro instructions, core file, and stack traces have been provided to nodejs core security team.
- Setup HTTP/2 server with node.
- Send malformed HTTP/2 frames - I've noticed the issue with a GOAWAY frame, there are potentially others which also cause this issue.
- Observe crash of nodejs instance. Segmentation fault results in core file generation.
Impact: Segfaults lead to denial of service vulnerability. Attacker is able to send malformed frame to crash the instance.
Supporting Material/References: Already provided to nodejs core security team. Reference email threads with James Snell for additional details.
- List any additional material (e.g. screenshots, logs, references, commits, code examples, etc.).
Impact
Denial of service on NodeJS instances which use HTTP/2.
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 an uninitialised read in the Node.js http2 module when processing malformed frames, leading to a segmentation fault.
Impact
An attacker could send malformed frames to crash the Node.js instance, causing a denial of service for all users.
What the attacker needed
Node.js v9 or v10 with HTTP/2 enabled; Ability to send HTTP/2 frames to the server
How it was found
- Set up an HTTP/2 server with Node.js.
- Send malformed HTTP/2 frames, such as a GOAWAY frame.
- Observe the Node.js instance crash with a segmentation fault and core file generation.
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/2 is a version of the protocol that web servers and browsers use to talk to each other. A malformed frame is a message that does not follow the expected structure. In this case, sending such a message makes the Node.js server software read memory it should not, which crashes the whole program and stops the service for everyone.
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.