Weaknesses of type CWE-798

1,013 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-2020-7515—A CWE-321: Use of hard-coded cryptographic key stored in cleartext vulnerability exists in Easergy Builder V1.4.7.2 and prior which could alEPSS 0.3%CVE-2026-45039CRITICALRustFS: Internode RPC HMAC secret falls back to public default credential, enabling peer impersonationEPSS 0.3%CVE-2026-54374HIGHVitaFit Android < 2.8.1.0 Hardcoded Credentials DisclosureEPSS 0.3%CVE-2024-8449MEDIUMPLANET Technology switch devices - Local users' passwords recovery through hard-coded credentialsEPSS 0.3%CVE-2026-65313HIGHUse of hard-coded VNC credentials in the engineering-workstation provisioningEPSS 0.3%CVE-2024-28146HIGHHardcoded credentialsEPSS 0.3%CVE-2026-32138HIGHNEXULEAN API Key LeakEPSS 0.3%CVE-2024-29170HIGHDell PowerScale OneFS versions 8.2.x through 9.8.0.x contain a use of hard coded credentials vulnerability. An adjacent network unauthenticaEPSS 0.3%CVE-2025-33089MEDIUMMultiple Vulnerabilities in IBM Concert Software.EPSS 0.3%CVE-2026-49201CRITICALAcer Wave 7 router: Hardcoded Cryptographic KeyEPSS 0.3%CVE-2021-1219HIGHCisco Smart Software Manager Satellite Static Credential VulnerabilityEPSS 0.3%CVE-2026-1958HIGHHard-coded passwords in KlinikaXPEPSS 0.3%CVE-2025-0642MEDIUMHard-coded Credentials in PosCube's AssistEPSS 0.3%CVE-2026-108831MEDIUMmeetecho janus-gateway Admin API admin.js hard-coded credentialsEPSS 0.3%CVE-2026-24346HIGHUse of well-known default credentials in EZCast Pro II DongleEPSS 0.3%CVE-2024-27159MEDIUMHardcoded password used to encrypt logsEPSS 0.3%CVE-2022-32967LOWRealtek RTL8111EP-CG/RTL8111FP-CG - Use of Hard-coded CredentialsEPSS 0.3%CVE-2024-50690MEDIUMSunGrow WiNet-SV200.001.00.P027 and earlier versions contains a hardcoded password that can be used to decrypt all firmware updates.EPSS 0.3%CVE-2024-41777HIGHIBM Cognos Controller hard coded credentialsEPSS 0.3%CVE-2026-47255HIGHAgenticMail API/storage and outbound relay hardeningEPSS 0.3%