Weaknesses of type CWE-798

943 results

Uso de credenciais hardcoded

Credenciais (senhas, chaves de API, tokens) embutidas no código-fonte ou binários da aplicação. O risco é que qualquer pessoa com acesso ao código ou arquivo compilado consegue extrair essas credenciais e abusar dos recursos protegidos, sem depender de quebra de senha ou ataque de força bruta.

Example

Um desenvolvedor coloca a senha do banco de dados como string literal dentro do código: `String connStr = "Server=db.empresa.com;Password=Admin123!";` Quando o código é compilado, a senha fica visível em ferramentas de análise binária ou se o repositório for exposto. Um atacante a encontra e acessa diretamente o banco.

How to mitigate

Armazene credenciais em variáveis de ambiente, secrets managers (como HashiCorp Vault, AWS Secrets Manager) ou arquivos de configuração protegidos fora do repositório. Nunca commite credenciais no Git; use .gitignore e ferramentas de scanning automático para evitar.

CVE-2024-23453MEDIUMAndroid Spoon application version 7.11.1 to 8.6.0 uses hard-coded credentials, which may allow a local attacker to retrieve the hard-coded AEPSS 0.2%CVE-2023-22429HIGHAndroid App 'Wolt Delivery: Food and more' version 4.27.2 and earlier uses hard-coded credentials (API key for an external service), which mEPSS 0.2%CVE-2025-3426HIGHUse of default hardcoded credentialsEPSS 0.2%CVE-2026-25601MEDIUMCredential Exposure vulnerability in MEPIS RMEPSS 0.2%CVE-2024-29963LOWBrocade SANnav contains hardcoded TLS keys used by DockerEPSS 0.2%CVE-2025-4049HIGHHardcoded SQLite password in FARAEPSS 0.2%CVE-2026-49204MEDIUMHard-coded AWS Cognito Testing AccountsEPSS 0.2%CVE-2023-21426MEDIUMHardcoded AES key to encrypt cardemulation PINs in NFC prior to SMR Jan-2023 Release 1 allows attackers to access cardemulation PIN.EPSS 0.2%CVE-2025-13776HIGHHard-coded database credentials in Finka softwareEPSS 0.2%CVE-2023-30904A security vulnerability in HPE Insight Remote Support may result in the local disclosure of privileged LDAP information.EPSS 0.2%CVE-2025-9806LOWTenda F1202 Administrative shadow hard-coded credentialsEPSS 0.2%CVE-2024-27161MEDIUMHardcoded password used to encrypt filesEPSS 0.2%CVE-2024-41689MEDIUMHard-coded Credentials VulnerabilityEPSS 0.2%CVE-2026-5667HIGHInformation Disclosure, Information Tampering, or Denial-of-Service (DoS) Vulnerability in Multiple Home AppliancesEPSS 0.2%CVE-2025-27255HIGHUse of Hard-coded Credentials vulnerability in GE Vernova EnerVista UR Setup allows Privilege Escalation. The local user database is encryptEPSS 0.1%CVE-2016-20031MEDIUMZKTeco ZKBioSecurity 3.0 Local Authorization Bypass via visLogin.jspEPSS 0.1%CVE-2025-10609MEDIUMHardcoded Credentials in Logo Software's TigerWings ERPEPSS 0.1%CVE-2026-85544MEDIUMSome Hikvision intercom products utilize an immutable factory value which should be obtained from local network or physical interaction withEPSS 0.1%CVE-2025-37111MEDIUMHard-Coded Authentication Keys found in SystemEPSS 0.1%CVE-2024-39582LOWDell PowerScale InsightIQ, version 5.0, contain a Use of hard coded Credentials vulnerability. A high privileged attacker with local access EPSS 0.1%