Bug 1856371 (CVE-2020-7693)

Summary: CVE-2020-7693 npmjs-sockjs: incorrect handling of upgrade header with the value websocket leads to DoS
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: anpicker, bmontgom, eparis, erooth, gparvin, jburrell, jokerman, jramanat, jweiser, lcosic, nstielau, sponnaga, stcannon, surbania, tfister, thee
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: npmjs-sockjs 0.3.20 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-04 14:54:08 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: 1856408, 1856409, 1856410, 1856411, 1857039, 1859405    
Bug Blocks: 1856373    

Description Guilherme de Almeida Suckevicz 2020-07-13 13:31:17 UTC
Incorrect handling of Upgrade header with the value websocket leads in crashing of containers hosting sockjs apps. This affects the package sockjs before 0.3.20.

References:
https://snyk.io/vuln/SNYK-JS-SOCKJS-575261
https://github.com/sockjs/sockjs-node/issues/252

Comment 3 Mark Cooper 2020-07-15 01:43:11 UTC
In OpenShift 4 the container openshift/ose-prometheus packages a vulnerable version of npm-sockjs (0.3.19). 

It is present in the Prometheus ReactUI which is unused in OpenShift, but can still be manually accessed via the URL.

Comment 4 Florencio Cano 2020-07-17 09:26:00 UTC
Mitigation:

There is no mitigation for this issue, the flaw can only be resolved by applying updates.