Loading HuntDB...

CVE-2017-16030

UNKNOWN
Published 2018-06-04T19:00:00Z
Actions:

Expert Analysis

Professional remediation guidance

Get tailored security recommendations from our analyst team for CVE-2017-16030. We'll provide specific mitigation strategies based on your environment and risk profile.

No CVSS data available

Description

Useragent is used to parse useragent headers. It uses several regular expressions to accomplish this. An attacker could edit their own headers, creating an arbitrarily long useragent string, causing the event loop and server to block. This affects Useragent 2.1.12 and earlier.

Available Exploits

No exploits available for this CVE.

Related News

No news articles found for this CVE.

Affected Products

GitHub Security Advisories

Community-driven vulnerability intelligence from GitHub

✓ GitHub Reviewed HIGH

ReDoS via long UserAgent header in useragent

GHSA-pjmx-9xr3-82qr

Advisory 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 ```js 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 Packages

npm useragent
ECOSYSTEM: ≥0 <2.1.13

CVSS Scoring

CVSS Score

7.5

Advisory provided by GitHub Security Advisory Database. Published: July 24, 2018, Modified: September 6, 2023

References

Published: 2018-06-04T19:00:00Z
Last Modified: 2024-09-17T00:41:28.696Z
Copied to clipboard!