sm-crypto 提供了对中国密码算法 SM2、SM3 和 SM4 的 JavaScript 实现。在版本 0.5.0 之前,在 Node.js 环境中调用不带参数的 方法时,会使用 中提供的模块级 实例。该实例由依赖库 提供,由于即使 存在, 仍然不可用,因此该 实例会使用 和 来为 ARC4 流密码生成种子值。攻击者若能观测到进程的 输出,并能估算出密钥生成的时间,就可以重建种子值,进而恢复生成的 SM2 私钥,并预测用于生成签名的临时标量值,从而伪造签名。该问题已在 0.5.0 版本中修复。
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| JuneAndGreen | sm-crypto | < 0.5.0 |
affected |
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| JuneAndGreen | sm-crypto | < 0.5.0 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No comments yet