nodejs / llhttp

Port of http_parser to llparse

Home Page:http://llhttp.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Web Server HTTP Header Memory Exhaustion DoS

Eric3495 opened this issue · comments

Synopsis
The remote web server is vulnerable to the 'infinite request' attack.
Description
It was possible to kill the web server by sending an invalid 'infinite' HTTP request that never ends, like:
GET / HTTP/1.0 Referer: XXXXXXXXXXXXXXXXXXXXXXXX ...

An attacker may exploit this vulnerability to make your web server crash continually (if the attack saturates virtual memory on the target) or even execute arbitrary code on your system (in case of buffer / heap overflow).
Solution
Upgrade your software or protect it with a filtering reverse proxy.

Can llhttp limit this security problem?

@pallas is right. There's nothing llhttp can do about this.
In addition to limit HTTP request size (which means rejecting the call at byte N) I would also impose an hard timeout on the sending time.

Closing as no action is possible here.