Weaknesses of type CWE-798

1,008 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-2026-29023MEDIUMKeygraph Shannon Hard-coded Router API KeyEPSS 0.3%CVE-2020-27278—In Hamilton Medical AG,T1-Ventillator versions 2.2.3 and prior, hard-coded credentials in the ventilator allow attackers with physical accesEPSS 0.3%CVE-2024-4740MEDIUMMXsecurity Use of Hard-coded CredentialsEPSS 0.3%CVE-2023-49224HIGHPrecor touchscreen console P62, P80, and P82 contains a default SSH public key in the authorized_keys file. A remote attacker could use thisEPSS 0.3%CVE-2026-2702LOWBeetel 777VR1 WPA2 PSK hard-coded credentialsEPSS 0.3%CVE-2023-27921MEDIUMJINS MEME CORE Firmware version 2.2.0 and earlier uses a hard-coded cryptographic key, which may lead to data acquired by a sensor of the afEPSS 0.3%CVE-2026-105147MEDIUMSciPhi-AI R2R JWT Secret hard-coded credentialsEPSS 0.3%CVE-2026-101052MEDIUMrefly-ai refly JWT Token app.config.ts hard-coded credentialsEPSS 0.3%CVE-2025-55262HIGHHCL Aftermarket DPC is affected by SQL InjectionEPSS 0.3%CVE-2025-34197HIGHVasion Print (formerly PrinterLogic) Undocumented Local Account with Hardcoded Password and Passwordless sudoEPSS 0.3%CVE-2023-29064MEDIUMHardcoded SecretsEPSS 0.3%CVE-2026-6610MEDIUMliangliangyy DjangoBlog Setting settings.py hard-coded credentialsEPSS 0.3%CVE-2026-118601MEDIUMAlpine iLX-F511 SSH Hard-Coded Credentials Remote Code Execution VulnerabilityEPSS 0.3%CVE-2024-27170HIGHHardcoded credentials for WebDAV accessEPSS 0.3%CVE-2024-55927HIGHFlawed token generation implementation & Hard-coded key implementationEPSS 0.3%CVE-2025-62777HIGHUse of Hard-Coded Credentials issue exists in MZK-DP300N version 1.07 and earlier, which may allow an attacker within the local network to lEPSS 0.3%CVE-2025-7564HIGHLB-LINK BL-AC3600 shadow hard-coded credentialsEPSS 0.3%CVE-2026-4832MEDIUMCWE-798 Use of Hard-coded Credentials vulnerability exists that could cause unauthorized access to sensitive device information when an unauEPSS 0.3%CVE-2025-4633MEDIUMDefault CredentialsEPSS 0.3%CVE-2025-41722HIGHSauter: Hard-coded Authentication CredentialsEPSS 0.3%