ghsa-44pw-h2cw-w3vq
Vulnerability from github
Published
2022-05-23 20:18
Modified
2022-05-23 20:18
Severity ?
Summary
Uncontrolled Resource Consumption in Hawk
Details
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()
.
{ "affected": [ { "package": { "ecosystem": "npm", "name": "hawk" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "9.0.1" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2022-29167" ], "database_specific": { "cwe_ids": [ "CWE-1333", "CWE-400" ], "github_reviewed": true, "github_reviewed_at": "2022-05-23T20:18:14Z", "nvd_published_at": "2022-05-05T23:15:00Z", "severity": "HIGH" }, "details": "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\u0027s 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()`.", "id": "GHSA-44pw-h2cw-w3vq", "modified": "2022-05-23T20:18:14Z", "published": "2022-05-23T20:18:14Z", "references": [ { "type": "WEB", "url": "https://github.com/mozilla/hawk/security/advisories/GHSA-44pw-h2cw-w3vq" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-29167" }, { "type": "WEB", "url": "https://github.com/mozilla/hawk/pull/286" }, { "type": "WEB", "url": "https://github.com/mozilla/hawk/commit/d10d72ca82db967f6c5fcf866ff78e3ca25ce1ab" }, { "type": "PACKAGE", "url": "https://github.com/mozilla/hawk" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:N/A:H", "type": "CVSS_V3" } ], "summary": "Uncontrolled Resource Consumption in Hawk" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.