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-2022-47617HIGHHitron Technologies Inc. CODA-5310 - Hard-coded Cryptographic KeyEPSS 0.5%CVE-2025-13293CRITICALBackdoor / default root credentialsEPSS 0.5%CVE-2026-27167NONEGradio: Mocked OAuth Login Exposes Server Credentials and Uses Hardcoded Session SecretEPSS 0.5%CVE-2026-61740CRITICALLightRAG: Authentication bypass: hardcoded DEFAULT_TOKEN_SECRET and public /auth-status defeat LIGHTRAG_API_KEY protectionEPSS 0.5%CVE-2026-74892HIGHopenssl_encrypt before 1.4.0 Hardcoded Secret KeyEPSS 0.5%CVE-2026-1221CRITICALBROWAN COMMUNICATIONS |PrismX MX100 AP controller - Use of Hard-coded CredentialsEPSS 0.5%CVE-2025-67418CRITICALClipBucket 5.5.2 is affected by an improper access control issue where the product is shipped or deployed with hardcoded default administratEPSS 0.5%CVE-2025-61926MEDIUMAllstar Reviewbot has Authentication Bypass via Hard-coded Webhook SecretEPSS 0.5%CVE-2025-45813CRITICALENENSYS IPGuard v2 2.10.0 was discovered to contain hardcoded credentials.EPSS 0.5%CVE-2026-121609CRITICALQihoo 360 Whole Home Router M5 Boot Script mpt start hard-coded credentialsEPSS 0.5%CVE-2026-17403CRITICALMultiple Vulnerabilities in IBM API ConnectEPSS 0.5%CVE-2026-93970MEDIUMaiyiyi121 SxDevOps Settings settings.py hard-coded credentialsEPSS 0.5%CVE-2026-90509MEDIUMdromara orion-visor ExposeApiAspect.java ExposeApiAspect.beforeExposeApi hard-coded credentialsEPSS 0.5%CVE-2023-46102HIGHThe Android Client application, when enrolled to the AppHub server, connects to an MQTT broker to exchange messages and receive commands toEPSS 0.5%CVE-2026-93969MEDIUMaiyiyi121 SxDevOps services.py ensure_default_superuser hard-coded credentialsEPSS 0.5%CVE-2026-4404CRITICALUse of hard coded credentials in GoHarbor HarborEPSS 0.5%CVE-2023-46943CRITICALAn issue was discovered in NPM's package @evershop/evershop before version 1.0.0-rc.8. The HMAC secret used for generating tokens is hardcodEPSS 0.5%CVE-2026-37012HIGHA vulnerability in pentestgpt/core/langfuse.py in PentestGPT 1.0.0 allows remote attackers to disclose sensitive user telemetry data via harEPSS 0.5%CVE-2024-25731HIGHThe Elink Smart eSmartCam (com.cn.dq.ipc) application 2.1.5 for Android contains hardcoded AES encryption keys that can be extracted from a EPSS 0.5%CVE-2026-78062MEDIUMvas3k TaxHacker JWT Secret config.ts envSchema.parse hard-coded credentialsEPSS 0.5%