Falhas do tipo CWE-760

12 resultados

Hash unidirecional com sal previsível

Quando você usa uma função hash criptográfica (como SHA-256) para proteger senhas, mas reutiliza o mesmo sal ou usa um sal fácil de adivinhar (como o ID do usuário ou uma constante), um atacante consegue pré-computar todas as combinações possíveis em uma tabela rainbow e quebrar os hashes rapidamente. O problema é que o sal previsível elimina a vantagem de segurança que ele deveria trazer.

Exemplo

Um banco usa `hash = SHA256(senha + userID)` para armazenar senhas. Como o userID é sequencial e público, um atacante cria uma tabela rainbow com SHA256(senhas_comuns + 1001), SHA256(senhas_comuns + 1002), etc., e consegue reverter centenas de hashes em segundos.

Como mitigar

Use um sal aleatório e criptograficamente seguro gerado para cada hash (pelo menos 16 bytes), nunca reutilize sais e armazene-o junto com o hash. Melhor ainda: troque hashes genéricos por funções especializadas como bcrypt, argon2 ou scrypt, que já incorporam sal forte e defesa contra força bruta.

CVE-2021-38314MEDIUMGutenberg Template Library & Redux Framework <= 4.2.11 Sensitive Information DisclosureEPSS 29.0%CVE-2020-28214CRITICALA CWE-760: Use of a One-Way Hash with a Predictable Salt vulnerability exists in Modicon M221 (all references, all versions), that could allEPSS 0.7%CVE-2024-38881HIGHAn issue in Horizon Business Services Inc. Caterease 16.0.1.1663 through 24.0.1.2405 and possibly later versions, allows a remote attacker tEPSS 0.4%CVE-2023-22599HIGH InHand Networks InRouter 302, prior to version IR302 V3.5.56, and InRouter 615, prior to version InRouter6XX-S-V2.3.0.r5542, contain vulnerEPSS 0.3%CVE-2026-121450HIGHCFNext before 3.1.0 Admin Password Recovery via MD5-Derived Subscription UUIDEPSS 0.3%CVE-2025-9290MEDIUMAuthentication Weakness on Omada Controllers, Gateways and Access PointsEPSS 0.2%CVE-2024-13951MEDIUMOne way hash with predictable saltEPSS 0.2%CVE-2018-5552LOWDocuTrac DTISQLInstaller.exe Hard-Coded SaltEPSS 0.2%CVE-2026-9370MEDIUMulisesbocchio jasypt-spring-boot Password Hash SimpleGCMConfig.java getSecretKeySaltGenerator hash predictable saltEPSS 0.2%CVE-2026-82759LOWReversible IP address pseudonymisation in AshAuthentication audit log hash modeEPSS 0.1%CVE-2026-46749MEDIUMA vulnerability has been identified in SINEC INS (All versions < V1.0 SP2 Update 6). The affected application uses a password hashing implemEPSS 0.1%CVE-2025-26486MEDIUMBroken or Risky Cryptographic Algorithm, Use of Password Hash With Insufficient Computational Effort, Use of Weak Hash, Use of a One-Way HEPSS 0.1%