Denial of Service: nghttp2 use of uninitialized pointer
A use of an uninitialized pointer in nghttp2's handling of ALTSVC frames can be triggered by sending malformed ALTSVC and GOAWAY frames, causing a crash. For Node.js this crashes the process, resulting in denial of service.
- Disclosed after 22 months
While investigating https://hackerone.com/reports/335533 and while following the same reproduction steps, I uncovered a bug in nghttp2 that causes use of an uninitialized pointer for an altsvc frameresulting in crash. The error can be easily triggered by a remote attacker by sending malformed ALTSVC and GOAWAY frames to the server, or by a malicious server sending same to the client. For Node.js, the result is a crashed process. The report has been submitted to the nghttp2 author who is working on a fix and is working on a fixed release.
Impact
Crashing the Node.js process causing a Denial of Service
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 uninitialized pointer is used when processing an ALTSVC frame result, leading to a crash.
Impact
A remote attacker could crash the Node.js process, causing a denial of service.
What the attacker needed
Ability to send malformed ALTSVC and GOAWAY frames
The fix
The nghttp2 author is working on a fix and a fixed release.
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.
A pointer is a small piece of memory that holds the address of some data. If a program uses a pointer before it has been given a valid address, it can read or write the wrong place and crash. Here, a remote attacker can send specially crafted network messages to make the server crash, so other users cannot use it.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.