js-ts.detect-pseudoRandomBytes

返回列表 · CWE 索引

js-tsWARNING规则详情

各语言消息对照

语言消息
de

Die Verwendung von crypto.pseudoRandomBytes wurde erkannt; diese Funktion erzeugt keine sicheren Zufallszahlen.

en

Detected usage of crypto.pseudoRandomBytes, which does not produce secure random numbers.

fr

L'utilisation de crypto.pseudoRandomBytes a été détectée ; elle ne produit pas de nombres aléatoires sécurisés.

ja

crypto.pseudoRandomBytes の使用が検出されました。これは安全な乱数を生成しません。

ko

crypto.pseudoRandomBytes가 감지되었습니다. 이는 안전한 난수를 생성하지 않습니다.

ru

Обнаружено использование crypto.pseudoRandomBytes — он не создаёт криптографически стойкие случайные числа.

zh

检测到 crypto.pseudoRandomBytes——它不产生安全的随机数。

zh-Hant

檢測到 crypto.pseudoRandomBytes——它不產生安全的亂數。

CWE 知识卡

语言名称修复建议
deSchwacher Zufallswert (Sicherheitszweck)Verwenden Sie in Sicherheitsszenarien einen CSPRNG (crypto.randomBytes/SecureRandom), nicht Math.random/rand.
en——
frUtilisation d'un générateur pseudo-aléatoire cryptographiquement faibleDans les scénarios de sécurité, utilisez un CSPRNG (crypto.randomBytes/SecureRandom) et non Math.random/rand.
ja弱い乱数(セキュリティ用途)セキュリティに関わる場面では CSPRNG(crypto.randomBytes/SecureRandom)を使用し、Math.random や rand は使用しないでください。
ko약한 난수(보안 용도)보안 시나리오에서는 CSPRNG(crypto.randomBytes/SecureRandom)를 사용하고, Math.random/rand는 사용하지 마십시오.
ruСлабое случайное число (в задачах безопасности)В защищённых сценариях используйте CSPRNG (crypto.randomBytes/SecureRandom), а не Math.random/rand.
zh弱随机数(安全用途)安全场景使用 CSPRNG(crypto.randomBytes/SecureRandom),不用 Math.random/rand。
zh-Hant弱亂數(安全用途)安全場景使用 CSPRNG(crypto.randomBytes/SecureRandom),不用 Math.random/rand。

OWASP

A02:2021 - Cryptographic Failures

元数据

likelihoodLOW
impactLOW
confidenceLOW

修复字段

fix无
fix-regex无

上游规则源

github.com/opengrep/opengrep-rules/tree/main/javascript/lang/security/detect-pseudoRandomBytes.yaml