Falhas do tipo CWE-337

13 resultados

Gerador de números pseudoaleatórios com seed previsível

A fraqueza ocorre quando um gerador de números pseudoaleatórios (PRNG) é inicializado com uma seed (semente) previsível ou que se repete, como timestamp do sistema ou valores deriváveis. Isso torna a sequência de números gerada reproduzível por um atacante, comprometendo qualquer lógica que dependa de aleatoriedade criptográfica (tokens, nonces, IVs, chaves temporárias).

Exemplo

Um aplicativo gera tokens de sessão usando `Math.random()` com seed baseada em `System.currentTimeMillis()`. Como o timestamp é fácil de prever ou repetir, um atacante consegue regenerar os mesmos tokens e sequestrar sessões de outros usuários.

Como mitigar

Use geradores criptograficamente seguros: em Java, `java.security.SecureRandom` sem configurar seed manualmente; em Python, `secrets` ou `os.urandom()`; evite seeds derivadas de tempo, PIDs ou valores observáveis. Para casos críticos, valide que o PRNG está usando entropy adequada do sistema operacional.

CVE-2022-26852HIGHDell PowerScale OneFS, versions 8.2.x-9.3.x, contain a predictable seed in pseudo-random number generator. A remote unauthenticated attackerEPSS 1.2%CVE-2022-40267MEDIUMAuthentication Bypass Vulnerability in Web Server Function on MELSEC SeriesEPSS 1.2%CVE-2026-26018HIGHCoreDNS Loop Detection Denial of Service VulnerabilityEPSS 1.1%CVE-2020-28597CRITICALA predictable seed vulnerability exists in the password reset functionality of Epignosis EfrontPro 5.2.21. By predicting the seed it is possEPSS 1.0%CVE-2016-15006LOWenigmaX Scrambling Table main.c getSeed prng seedEPSS 0.8%CVE-2024-7558HIGHJUJU_CONTEXT_ID is a predictable authentication secret. On a Juju machine (non-Kubernetes) or Juju charm container (on Kubernetes), an unpriEPSS 0.5%CVE-2025-7770HIGHPredictable Seed in Pseudo-Random Number Generator (PRNG) in Tigo Energy Cloud Connect AdvancedEPSS 0.5%CVE-2024-22194LOWcdo-local-uuid vulnerable to insertion of artifact derived from developer's Present Working Directory into demonstration codeEPSS 0.4%CVE-2023-49343MEDIUMTemporary data passed between application components by Budgie Extras Dropby applet could potentially be viewed or manipulated. The data is EPSS 0.3%CVE-2025-55069HIGHAutomationDirect CLICK PLUS Predictable Seed in Pseudo-Random Number GeneratorEPSS 0.3%CVE-2026-25235HIGHPEAR Has a Predictable Verification Hash in Election Account RequestsEPSS 0.3%CVE-2025-62710MEDIUMSakai kernel-impl: predictable PRNG used to generate server‑side encryption key in EncryptionUtilityServiceImplEPSS 0.2%CVE-2025-20613LOWPredictable Seed in Pseudo-Random Number Generator (PRNG) in the firmware for some Intel(R) TDX may allow an authenticated user to potentialEPSS 0.1%