Fallos del tipo CWE-334

13 resultados

Espaço insuficiente de valores aleatórios

A aplicação gera números ou tokens aleatórios usando um espaço de possibilidades muito pequeno, permitindo que um atacante adivinhe ou força bruta rapidamente. O problema é que a aleatoriedade é previsível ou limitada, comprometendo mecanismos de segurança que dependem dela, como tokens de sessão, senhas temporárias ou nonces criptográficos.

Ejemplo

Um sistema gera tokens de redefinição de senha usando apenas 4 dígitos numéricos (0000 a 9999), totalizando 10 mil combinações. Um atacante consegue testar todas em segundos. Outro caso: usar rand() do C em vez de uma fonte criptograficamente segura, ou gerar IDs de sessão com apenas 16 bits.

Cómo mitigar

Use geradores criptograficamente seguros (como /dev/urandom no Linux, crypto.getRandomBytes() no Node.js, ou secrets do Python) com espaço suficiente (mínimo 128 bits para tokens sensíveis). Evite funções frágeis como rand() ou Math.random(), e sempre valide o tamanho efetivo da entropia gerada.

CVE-2022-22517HIGHCommunication Components in multiple CODESYS products vulnerable to communication channel disruptionEPSS 1.3%CVE-2021-21955HIGHAn authentication bypass vulnerability exists in the get_aes_key_info_by_packetid() function of the home_security binary of Anker Eufy HomebEPSS 1.0%CVE-2022-33707Improper identifier creation logic in Find My Mobile prior to version 7.2.24.12 allows attacker to identify the device.EPSS 0.8%CVE-2023-39979CRITICALMXsecurity Authentication BypassEPSS 0.7%CVE-2024-6890CRITICALJournyx Unauthenticated Password Reset BruteforceEPSS 0.7%CVE-2024-52616MEDIUMAvahi: avahi wide-area dns predictable transaction idsEPSS 0.7%CVE-2022-20941MEDIUMA vulnerability in the web-based management interface of Cisco Firepower Management Center (FMC) Software could allow an unauthenticated, reEPSS 0.7%CVE-2022-24402HIGHIntentionally weakened effective strength in TETRA TEA1EPSS 0.6%CVE-2025-3895CRITICALLow token entropy in MegaBIPEPSS 0.4%CVE-2024-51720MEDIUMVulnerabilities in SecuSUITE Server Components Impact SecuSUITEEPSS 0.3%CVE-2024-54017MEDIUMA vulnerability has been identified in SIPROTEC 5 6MD84 (CP300) (All versions < V11.0), SIPROTEC 5 6MD85 (CP200) (All versions), SIPROTEC 5 EPSS 0.3%CVE-2020-7566HIGHA CWE-334: Small Space of Random Values vulnerability exists in Modicon M221 (all references, all versions) that could allow the attacker toEPSS 0.3%CVE-2023-6951MEDIUMA Use of Weak Credentials vulnerability affecting the Wi-Fi network generated by a set of DJI drones could allow a remote attacker to deriveEPSS 0.3%