Weaknesses of type CWE-321

360 results

Chave criptográfica hardcoded

É quando a chave ou senha usada para criptografia fica embutida no código-fonte ou binário da aplicação. Qualquer pessoa com acesso ao código (incluindo atacantes que fazem engenharia reversa) consegue extrair a chave e descriptografar todos os dados protegidos por ela, anulando completamente a proteção criptográfica.

Example

Um app mobile que faz login criptografa a senha com uma chave fixa como `const ENCRYPTION_KEY = '12345abc'` no código. Um atacante faz dump do APK, encontra a chave em minutos, e consegue descriptografar todas as senhas armazenadas de todos os usuários.

How to mitigate

Armazene chaves em repositórios seguros (key management systems, vaults como AWS Secrets Manager ou HashiCorp Vault), derive chaves de senhas do usuário com algoritmos fortes (PBKDF2, Argon2), ou use mecanismos de derivação dinâmica. Nunca coloque chaves no código, comentários ou arquivos de configuração versionados.

CVE-2022-2660CRITICALDelta Industrial Automation DIALink versions 1.4.0.0 and prior are vulnerable to the use of a hard-coded cryptographic key which could allowEPSS 0.6%CVE-2024-1258LOWJuanpao JPShop API params.php hard-coded keyEPSS 0.6%CVE-2025-8625CRITICALCopypress Rest API 1.1 - 1.2 - Missing Configurable JWT Secret and File-Type Validation to Unauthenticated Remote Code ExecutionEPSS 0.6%CVE-2023-0391HIGHMGT-COMMERCE CloudPanel Shared CertificateEPSS 0.6%CVE-2026-24218HIGHNVIDIA DGX OS contains a vulnerability in the factory provisioning process, where the cloning of a base image causes identical SSH host keyEPSS 0.6%CVE-2025-62581CRITICALDIAView - Authentication Bypass VulnerabilityEPSS 0.6%CVE-2024-2413CRITICALIntumit SmartRobot - Use of Hard-coded Cryptographic KeyEPSS 0.6%CVE-2023-48392CRITICALKaifa Technology WebITR - Hard-coded Cryptographic KeyEPSS 0.6%CVE-2022-2641CRITICALHorner Automation’s RCC 972 with firmware version 15.40 has a static encryption key on the device. This could allow an attacker to perform uEPSS 0.6%CVE-2021-38461HIGHAUVESY VersiondogEPSS 0.5%CVE-2026-28326HIGHSolarWinds Access Rights Manager Unauthenticated Remote Code Execution VulnerabilityEPSS 0.5%CVE-2023-3371MEDIUMEmbedPress <= 3.7.3 - Sensitive Information ExposureEPSS 0.5%CVE-2025-15105MEDIUMgetmaxun auth.ts hard-coded keyEPSS 0.5%CVE-2025-15016CRITICALRagic|Enterprise Cloud Database - Hard-coded Cryptographic KeyEPSS 0.5%CVE-2026-90945CRITICALCrawlab through 0.6.3 Authentication Bypass via Hard-coded JWT SecretEPSS 0.5%CVE-2024-58134HIGHMojolicious versions from 0.999922 for Perl uses a hard coded string, or the application's class name, as an HMAC session cookie secret by defaultEPSS 0.5%CVE-2025-41702CRITICALegOS WebGUI Hard-Coded JWT Secret Enables Authentication BypassEPSS 0.5%CVE-2026-89026CRITICALIssabel Framework Hard-coded JWT Key RCE via pbxapi/manager/originateEPSS 0.5%CVE-2025-11609MEDIUMcode-projects Hospital Management System express-session hard-coded keyEPSS 0.5%CVE-2025-67305CRITICALIn RUCKUS Network Director (RND) < 4.5.0.56, the OVA appliance contains hardcoded SSH keys for the postgres user. These keys are identical aEPSS 0.5%