Skip to content
DoS Disclosed report Intermediate

Node.js HTTP/2 Large Settings Frame DoS

The Node.js http2 module did not limit the size or number of SETTINGS frames, so an attacker could send many large SETTINGS frames over many connections. This overloaded a CPU core to 100% usage from a single machine, causing a denial of service.

galgo Follow

Originally disclosed on HackerOne

  • Triaged in 21 hours
  • Fixed in 18 months
  • Disclosed after 19 months

Hi,

I would like to report a vulnerability in the http2 module of Node.js.

In section 10.5 of the HTTP/2 RFC an attack is described where an attacker is sending large SETTINGS frames that includes many settings inside it. We tested this scenario by opening many connections to the server and sending a SETTINGS frame with payload size of 14400 bytes and we were able to overload one CPU core with 100% usage with a single machine. Another important thing to mention is that node doesn’t close the connection to the server after some time so the attacker is able to continue sending those large SETTINGS frames.

This was tested against Node version 8.11.3 You can the code that was used to start the http2 server and also the script that we used for attacking it attached.

Impact

Denial of Service

The original report as published on HackerOne, by galgo. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 http2 module processed SETTINGS frames without enforcing a reasonable size or rate limit, allowing excessive CPU work per connection.

What the attacker needed

Network access to the HTTP/2 server; Node.js 8.11.3 (tested version)

How it was found

  1. Open many connections to the Node.js HTTP/2 server.
  2. Send a SETTINGS frame with a payload size of 14400 bytes on each connection.
  3. Keep sending these large SETTINGS frames because the server does not close the connection.

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 server speaks a set of rules called HTTP/2 to browsers. One of those rules lets a client send a 'SETTINGS' message to adjust connection options. The server here did not cap how big or how many of these messages it would process, so a single attacker could keep it busy and stop it serving normal users.

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.

More from Node.js

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.