Regular Expression Denial of Service

Module: hawk

Published: January 19th, 2016

Reported by: Adam Baldwin

CVE-2016-2515

CWE-

Vulnerable: < 3.1.3 || >= 4.0.0 <4.1.1
Patched: >=3.1.3 < 4.0.0 || >=4.1.1

Overview

Specifically crafted long headers or uris can cause a minor denial of service when using hawk versions less than 4.1.1.

"The Regular expression Denial of Service (ReDoS) is a Denial of Service attack, that exploits the fact that most Regular Expression implementations may reach extreme situations that cause them to work very slowly (exponentially related to input size). An attacker can then cause a program using a Regular Expression to enter these extreme situations and then hang for a very long time."

Updates:

  • Updated to include fix in 3.1.3

Remediation

Update to hawk version 4.1.1 or greater.

References

Sign up FREE for
nsp Continuous Security

Free for open source and the first private repo,
then just $1/mo per private repo