Denial of Service (DoS) Affecting hapi package, versions <11.1.3
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID npm:hapi:20151223
- published 24 Dec 2015
- disclosed 23 Dec 2015
- credit Adam Baldwin
Introduced: 23 Dec 2015
CVE-2015-9241 Open this link in a new tabOverview
Sending a purposefully crafted invalid date in the If-Modified-Since
or Last-Modified
header will cause the Hapi
server to err but keep the socket open (the socket will time out after 2 minutes by default). This allows an attacker to quickly exhaust the sockets on the server, making it unavailable (a Denial of Service
attack).
The vulnerability is caused by the combination of two bugs.
First, the underlying V8 engine throws an exception when processing the specially crafted date, instead of stating the date is invalid as it should. Second, the Hapi
server does not handle the exception well, leading to the socket remaining open.
Upgrading Hapi
will address the second issue and thus fix the vulnerability.