CVE-2022-29167 ReDoS vulnerability in header parsing in hawk
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
Description
Hawk is an HTTP authentication scheme providing mechanisms for making authenticated HTTP requests with partial cryptographic verification of the request and response, covering the HTTP method, request URI, host, and optionally the request payload. Hawk used a regular expression to parse Host HTTP header (Hawk.utils.parseHost()), which was subject to regular expression DoS attack - meaning each added character in the attacker's input increases the computation time exponentially. parseHost() was patched in 9.0.1 to use built-in URL class to parse hostname instead. Hawk.authenticate() accepts options argument. If that contains host and port, those would be used instead of a call to utils.parseHost().
Upgrade path
8 packages: 8 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-hawk(Debian 12) | < 9.0.1-1 | 9.0.1-1 | Fixed |
| debian/node-hawk(Debian 13) | < 9.0.1-1 | 9.0.1-1 | Fixed |
| debian/node-hawk(Debian 14) | < 9.0.1-1 | 9.0.1-1 | Fixed |
| mozilla hawk | < 9.0.1; = < 9.0.1 | 9.0.1 | Fixed |
| npm hawk(npm) | < 9.0.1 | 9.0.1 | Fixed |
| ubuntu/node-hawk(Ubuntu 18.04) | < 6.0.1+dfsg-1+deb10u1build0.18.04.1; = 6.0.1+dfsg-1 | 6.0.1+dfsg-1+deb10u1build0.18.04.1 | Fixed |
| ubuntu/node-hawk(Ubuntu 20.04) | < 7.1.2+dfsg-1ubuntu0.1; = 7.1.1+dfsg-2; = 7.1.2+dfsg-1 | 7.1.2+dfsg-1ubuntu0.1 | Fixed |
| ubuntu/node-hawk(Ubuntu 22.04) | < 8.0.1+dfsg-1ubuntu0.22.04.1; = 8.0.1+dfsg-1 | 8.0.1+dfsg-1ubuntu0.22.04.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm hawk(npm) | < 9.0.1 | 9.0.1 |
| mozilla hawk | = < 9.0.1 | No fix listed |
| ubuntu/node-hawk(Ubuntu:22.04) | < 8.0.1+dfsg-1ubuntu0.22.04.1 | 8.0.1+dfsg-1ubuntu0.22.04.1 |
| mozilla hawk | < 9.0.1 | 9.0.1 |
| debian/node-hawk(Debian:12) | < 9.0.1-1 | 9.0.1-1 |
| debian/node-hawk(Debian:14) | < 9.0.1-1 | 9.0.1-1 |
| debian/node-hawk(Debian:13) | < 9.0.1-1 | 9.0.1-1 |
| ubuntu/node-hawk(Ubuntu:18.04) | < 6.0.1+dfsg-1+deb10u1build0.18.04.1 | 6.0.1+dfsg-1+deb10u1build0.18.04.1 |
| ubuntu/node-hawk(Ubuntu:18.04) | = 6.0.1+dfsg-1 | No fix listed |
| ubuntu/node-hawk(Ubuntu:20.04) | < 7.1.2+dfsg-1ubuntu0.1 | 7.1.2+dfsg-1ubuntu0.1 |
| ubuntu/node-hawk(Ubuntu:20.04) | = 7.1.1+dfsg-2 | No fix listed |
| ubuntu/node-hawk(Ubuntu:20.04) | = 7.1.2+dfsg-1 | No fix listed |
| ubuntu/node-hawk(Ubuntu:22.04) | = 8.0.1+dfsg-1 | No fix listed |
References
- github.com issue-tracking patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com patch
- github.com
- Debian Security Tracker CVE-2022-29167 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-6116-1 vendor-advisory
- www.cve.org issue-tracking
- github.com product
- github.com issue-tracking