PT-2022-20593 · Node.Js+1 · Node.Js+1
Christopher Davenport
·
Published
2022-07-29
·
Updated
2022-08-09
·
CVE-2022-31183
CVSS v3.1
9.8
Critical
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
fs2-io versions 3.1.0 through 3.2.10
Description
The issue arises when establishing a server-mode
TLSSocket using fs2-io on Node.js, where the parameter requestCert = true is ignored, and peer certificate verification is skipped, allowing the connection to proceed. This vulnerability is limited to fs2-io running on Node.js, specifically affecting server-mode TLSSockets with mutual TLS (mTLS) enabled via requestCert = true in TLSParameters. The default setting for server-mode TLSSockets is false.Recommendations
For fs2-io versions 3.1.0 through 3.2.10, update to version 3.2.11 or later, where the
requestCert = true parameter is respected, and peer certificate verification is properly performed, raising a SSLException if verification fails.
As a temporary workaround for unpatched versions on Node.js, do not use a server-mode TLSSocket with requestCert = true to establish a mTLS connection.Exploit
Fix
Improper Certificate Validation
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Node.Js
Fs2-Io