Bug 1567245 (CVE-2019-10196)

Summary: CVE-2019-10196 nodejs-http-proxy-agent: Denial of Service and data leak due to improper buffer sanitization
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: cmacedo, cperry, dffrench, drusso, hhorak, jmadigan, jorton, jshepherd, ngough, nodejs-maint, piotr1212, pwright, rschiron, trepel
Target Milestone: ---Keywords: Reopened, Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: nodejs-http-proxy-agent 2.1.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in http-proxy-agent, prior to version 2.1.0. It was discovered http-proxy-agent passes an auth option to the Buffer constructor without proper sanitization. This could result in a Denial of Service through the usage of all available CPU resources and data exposure through an uninitialized memory leak in setups where an attacker could submit typed input to the auth parameter.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 20:00:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1567246, 1567247, 1727825    
Bug Blocks: 1723909, 1940790    

Description Laura Pardo 2018-04-13 16:05:23 UTC
A flaw was found in http-proxy-agent versions before 2.1.0. The http-proxy-agent passes auth option to the Buffer constructor without proper sanitization, resulting in DoS and uninitialized memory leak in setups where an attacker could submit typed input to the 'auth' parameter (e.g. JSON).


References:
https://hackerone.com/reports/321631

Patch:
https://github.com/TooTallNate/node-http-proxy-agent/commit/b7b7cc793c3226aa83f820ce5c277e81862d32eb

Comment 1 Laura Pardo 2018-04-13 16:06:01 UTC
Created nodejs-http-proxy-agent tracking bugs for this issue:

Affects: fedora-all [bug 1567247]
Affects: epel-7 [bug 1567246]

Comment 2 Product Security DevOps Team 2019-06-10 10:19:57 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.

Comment 6 Riccardo Schirone 2019-07-08 08:22:49 UTC
This flaw is similar to CVE-2018-3739.

Comment 7 Riccardo Schirone 2019-07-08 09:32:55 UTC
External References:

https://www.npmjs.com/advisories/607

Comment 11 Riccardo Schirone 2019-07-16 08:13:40 UTC
Statement:

This issue did not affect the versions of nodejs as shipped with Red Hat Enterprise Linux 8 as they already include the patched code.
This issue did not affect the versions of rh-nodejs10-nodejs as shipped with Red Hat Software Collections 3 as they already include the patched code.

Comment 12 Jason Shepherd 2019-08-08 05:47:26 UTC
This vulnerability is out of security support scope for the following product:

 * Red Hat Mobile Application Platform

 Please refer to https://access.redhat.com/support/policy/updates/rhmap for more details