# Malformed HTTP/2 SETTINGS frame leads to reachable assert

Malformed HTTP/2 SETTINGS frames sent repeatedly trigger a reachable assert in Node.js node_http2.cc, crashing the process with SIGABRT (DoS).

- Payout: $250
- Severity: critical
- Program: Node.js
- Found by: jzebor
- Disclosed: 2020-07-03
- Write-up quality: 6/10
- Original: https://hackerone.com/reports/800140
- Library page: https://bugbountylibrary.com/r/h1%3A800140
- Tags: area:oss domain:network domain:oss impact:dos kind:bounty platform:hackerone sev:critical tech:nodejs technique:fuzzing technique:source-review vuln:dos

**Target:** Node.js HTTP/2 server (node_http2.cc SETTINGS frame handling)
**Root cause:** Malformed SETTINGS frames drive the HTTP/2 state machine into an unexpected condition that hits an assertion in node_http2.cc (line ~1521), aborting the process instead of returning a protocol error.
**Steps:**
1. Start an HTTP/2 server using nodejs http2.createSecureServer example.
2. Open a new connection and complete the HTTP/2 connection preface.
3. Send a malformed SETTINGS frame (per attached SETTINGS_FRAME_DETAILS.png) on the connection.
4. Repeat roughly 25 times in a loop / across new connections.
5. Observe node process exit with SIGABRT (assertion in node_http2.cc).
**How found:** Fuzzing with an internal tool: sending malformed SETTINGS frames repeatedly surfaced a crash; reporter traced the SIGABRT to a specific assert in node_http2.cc.
**Exploitation:** Unauthenticated remote attacker sends a series of malformed HTTP/2 SETTINGS frames to a Node.js HTTP/2 server; the assertion fires and the entire process aborts, denying service to all connections.
**Insight:** HTTP/2 frame-level fuzzing of SETTINGS (and other control frames) on Node's native http2 binding is productive because asserts in C++ land are reachable from JS-exposed protocol handlers and abort the whole process rather than throwing.

