Falhas do tipo CWE-1241

12 resultados

Uso de algoritmo previsível em gerador de números aleatórios

A fraqueza ocorre quando o software usa um algoritmo determinístico ou com baixa entropia para gerar números que deveriam ser aleatórios (chaves criptográficas, tokens de sessão, nonces). Um atacante que conheça o algoritmo ou o estado inicial pode prever todos os valores gerados, comprometendo a segurança da aplicação.

Exemplo

Um sistema gera tokens de autenticação usando `Math.random()` em JavaScript ou `rand()` em C, que são funções de propósito geral e não criptograficamente seguras. Um atacante pode replicar a sequência de números e falsificar tokens válidos, assumindo controle de contas de usuários.

Como mitigar

Use geradores de números aleatórios criptograficamente seguros: `java.security.SecureRandom` em Java, `secrets` em Python, `crypto.getRandomValues()` em JavaScript, ou `/dev/urandom` em sistemas UNIX. Nunca use funções genéricas de aleatoriedade para fins criptográficos.

CVE-2016-10180HIGHAn issue was discovered on the D-Link DWR-932B router. WPS PIN generation is based on srand(time(0)) seeding.EPSS 4.4%CVE-2021-3689HIGHUse of Predictable Algorithm in Random Number Generator in yiisoft/yii2EPSS 1.9%CVE-2021-3692HIGHUse of Predictable Algorithm in Random Number Generator in yiisoft/yii2EPSS 1.7%CVE-2026-26018HIGHCoreDNS Loop Detection Denial of Service VulnerabilityEPSS 0.8%CVE-2023-4695CRITICALUse of Predictable Algorithm in Random Number Generator in pkp/pkp-libEPSS 0.7%CVE-2026-82191MEDIUMJoomla Extension - j2commerce.com - Unescaped request data reflected into PayPal notify redirect in J2Store 1.0.0-3.3.2, 4.0.0-4.0.22, 4.1.0-4.1.7EPSS 0.4%CVE-2025-13079MEDIUMPopup Builder - Create highly converting, mobile friendly marketing popups. <= 4.4.2 - Improper Authorization to Unauthenticated Subscriber Removal via Predictable TokensEPSS 0.4%CVE-2026-57869HIGHBroken object-level access controls and the use of a deterministic pattern during random ID generation in MicroRealEstate allows attackers tEPSS 0.4%CVE-2026-73576MEDIUMIn Zimbra Collaboration (ZCS) before 10.1.17, weak cryptographic key generation vulnerability exists in the OnlyOffice integration. The zimbEPSS 0.3%CVE-2026-82190MEDIUMJoomla Extension - j2commerce.com - Predictable/forgeable order access token in J2Store 1.0.0-3.3.2, 4.0.0-4.0.22, 4.1.0-4.1.7EPSS 0.3%CVE-2025-32056MEDIUMAnti-Theft Bypass for Infotainment ECUEPSS 0.3%CVE-2026-6420MEDIUMKeylime: keylime: security bypass due to hardcoded tpm quote nonceEPSS 0.2%