Insufficient Hostname Verification
Affecting node package, versions [12.0.0,12.18.0) || [14.0.0,14.4.0) || [10.0.0,10.21.0)
Report new vulnerabilitiesOverview
node is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Affected versions of this package are vulnerable to Insufficient Hostname Verification. TLS session reuse can lead to host certificate verification bypass.
session
event is emitted after secure
event on TLSSocket
, but before secureConnect
event. This is problematic for https.Agent
because it must cache session only after verifying the remote peer's certificate.
Connecting to a server that presents an invalid certificate resulted in the session being cached after the handshake with the server and evicted right after a certifiate validation error and socket's destruction. A request initiated during this narrow window would pick the faulty session, send it to the malicious server and skip the verification of the server's certificate.
Remediation
Upgrade node
to version 12.18.0, 14.4.0, 10.21.0 or higher.
References
CVSS Score
-
Attack VectorNetwork
-
Attack ComplexityLow
-
Privileges RequiredNone
-
User InteractionNone
-
ScopeUnchanged
-
ConfidentialityHigh
-
IntegrityLow
-
AvailabilityNone
- Credit
- Fedor Indutny
- CVE
- CVE-2020-8172
- CWE
- CWE-494
- Snyk ID
- SNYK-UPSTREAM-NODE-570869
- Disclosed
- 02 Jun, 2020
- Published
- 02 Jun, 2020