A Story of a Slowloris DoS — the coolest DoS Attack
A Slowloris denial-of-service vulnerability in Node.js allowed an attacker to exhaust server resources by opening many slow connections, and a later bypass of the fix let an attacker reuse a single TCP connection to send subsequent request headers slowly, evading the headers timeout.
In this writeup, I am going to present a bug which was not found by me, but that I would still love to share, as I think this is a very interesting vulnerability.
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 headers timeout only applied to the first request on a TCP connection, so subsequent requests on a keep-alive connection could send headers slowly without triggering the timeout.
Impact
This attack results in a denial of service, making genuine users unable to browse the web page and critically compromising availability.
What the attacker needed
Node.js server with vulnerable version; Ability to open many connections
The fix
The time counter is now reset and started again after a request, regardless of whether a new TCP connection is used or an older one is reused.
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.
A denial-of-service attack makes a website unavailable to normal users. Slowloris does this by sending requests very slowly, so the server keeps waiting and runs out of resources like memory or connection slots. In Node.js, many slow connections could exhaust file descriptors, and a later bypass let an attacker keep one connection open and send later requests slowly to avoid a timeout.
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.