POJIA破甲
地图 / Built-in TLS module unexpectedly treats "rejectUnauthorized: undefined" as "rejectUnauthorized: false", disabling all certificate validation

Built-in TLS module unexpectedly treats "rejectUnauthorized: undefined" as "rejectUnauthorized: false", disabling all certificate validation

密码学缺陷 / 证书校验不当 / #1278254

厂商
Node.js
严重程度
低危
赏金
$150
弱点
证书校验不当
研究员
@pimterry
披露日期
2021-09-10
资产
https://github.com/nodejs/node
CVE
CVE-2021-22939

该报告还没有中文解读。

原文摘录

摘自原文(2721 字符中的一小部分)
> NOTE! Thanks for submitting a report! Please replace *all* the [square] sections below with the pertinent details. Remember, the more detail you provide, the easier it is for us to triage and respond quickly, so be sure to take your time filling out the report!
原文中的代码
const https = require('https');
const request = https.get('https://expired.badssl.com', { rejectUnauthorized: undefined });
request.on('error', (e) => console.log('Request failed:', e.message));
request.on('response', (e) => console.log('Request succeeded'));

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Node.js 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @pimterry · 版权归作者与 Node.js 所有

同类报告

[3DS][SSL] Improper certificate validation allows an attacker to perform MitM attacksNintendo · 2020-12-18SameSite restrictions are lifted, and SameSite:Strict cookie are being sent.Brave Software · 2025-10-15CVE-2025-5025: No QUIC certificate pinning with wolfSSLcurl · 2025-05-28CVE-2020-8286: Inferior OCSP verificationcurl · 2020-12-09CVE-2024-2466: TLS certificate check bypass with mbedTLS (reward request)Internet Bug Bounty · 2024-03-29 · $2,580CVE-2025-10966: missing SFTP host verification with wolfSSHcurl · 2025-11-05