POJIA破甲
地图 / [crypto-js] Insecure entropy source - Math.random()

[crypto-js] Insecure entropy source - Math.random()

密码学缺陷 / Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) / #678989

厂商
Node.js third-party modules
严重程度
低危 · CVSS 4.8
赏金
—
弱点
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
研究员
@chalker
披露日期
2020-06-04
资产
crypto-js
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(2045 字符中的一小部分)
**module name:** crypto-js **version:** 3.1.9-1 **npm page:** `https://www.npmjs.com/package/crypto-js`
原文中的代码
$ node --random_seed=42 -e "console.log(require('crypto-js').lib.WordArray.random(16))"
{ words: [ -1477405629, 964516052, 1254255372, 1089500106 ],
  sigBytes: 16 }
$ node --random_seed=42 -e "console.log(require('crypto-js').lib.WordArray.random(16))"
{ words: [ -1477405629, 964516052, …

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

时间线

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

同类报告

Grammarly Keyboard for Android "Authorization Code with PKCE" flow implementation vulnerability that allows account takeoverSuperhuman (formerly Grammarly) · 2020-07-24Splatoon 3 Anticheat Seed Randomization WeaknessNintendo · 2026-02-19Predictable Random Number GeneratorNextcloud · 2019-06-26Weak randomness in WebCrypto keygenNode.js · 2022-10-26Insecure randomness for default password in file sharing when password policy app is disabledNextcloud · 2023-03-30