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-2017-20234CRITICALGarrettCom Magnum 6K and 10K Authentication Bypass via Hardcoded StringEPSS 0.5%CVE-2025-56749CRITICALCreativeitem Academy LMS up to and including 6.14 uses a hardcoded default JWT secret for token signing. This predictable secret allows attaEPSS 0.5%CVE-2026-42374CRITICALD-Link DIR-600L B1 Hardcoded Telnet Backdoor CredentialsEPSS 0.5%CVE-2026-82808MEDIUMInbox Foundry ActiveInbox Extension Google OAuth Client Secret service-worker.production-esm.js hard-coded credentialsEPSS 0.5%CVE-2026-86673MEDIUMningzichun Student Management System Database Connection database.php mysqli_connect hard-coded credentialsEPSS 0.5%CVE-2026-42375CRITICALD-Link DIR-600L A1 Hardcoded Telnet Backdoor CredentialsEPSS 0.5%CVE-2026-42373CRITICALD-Link DIR-605L B2 Hardcoded Telnet Backdoor CredentialsEPSS 0.5%CVE-2023-34473MEDIUMUsage of Hard-coded CredentialsEPSS 0.5%CVE-2025-57578HIGHAn issue in H3C Magic M Device M2V100R006 allows a remote attacker to execute arbitrary code via the default passwordEPSS 0.5%CVE-2023-2504HIGH Files present on firmware images could allow an attacker to gain unauthorized access as a root user using hard-coded credentials. EPSS 0.5%CVE-2026-42376CRITICALD-Link DIR-456U A1 Hardcoded Telnet Backdoor CredentialsEPSS 0.5%CVE-2026-105641CRITICALPlane: Hardcoded SECRET_KEY and LIVE_SERVER_SECRET_KEY shipped in aio/cli community deployment manifests — session forgery and live-server auth bypassEPSS 0.5%CVE-2024-46436HIGHHardcoded credentials in Tenda W18E V16.01.0.8(1625) allows unauthenticated remote attackers to gain root access to the device over the telnEPSS 0.5%CVE-2023-45226HIGHBIG-IP Next SPK SSH vulnerabilityEPSS 0.5%CVE-2026-9139CRITICALTaiko AG1000-01A Rev 7.3/8 Hard-coded Credentials via login.zhtmlEPSS 0.5%CVE-2026-45631CRITICALDokploy: Pre-Auth Admin Takeover via Hardcoded Authentication SecretEPSS 0.5%CVE-2025-32985CRITICALNETSCOUT nGeniusONE before 6.4.0 b2350 has Hardcoded Credentials that can be obtained from JAR files.EPSS 0.5%CVE-2024-36049MEDIUMAptos Wisal payroll accounting before 7.1.6 uses hardcoded credentials in the Windows client to fetch the complete list of usernames and pasEPSS 0.5%CVE-2024-57811CRITICALIn Eaton X303 3.5.16 - X303 3.5.17 Build 712, an attacker with network access to a XC-303 PLC can login as root over SSH. The root password EPSS 0.5%CVE-2026-59229HIGHApache IoTDB: Legacy Pipe Privilege EscalationEPSS 0.4%