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-2023-21524HIGHWindows Local Security Authority (LSA) Elevation of Privilege VulnerabilityEPSS 0.4%CVE-2026-86520HIGHUse of Hard-coded Credentials in Bransys ELDEPSS 0.4%CVE-2025-52492HIGHA vulnerability has been discovered in the firmware of Paxton Paxton10 before 4.6 SR6. The firmware file, rootfs.tar.gz, contains hard-codedEPSS 0.4%CVE-2025-2765HIGHCarlinKit CPC200-CCPA Wireless Hotspot Hard-Coded Credentials Authentication Bypass VulnerabilityEPSS 0.4%CVE-2018-14801—In Philips PageWriter TC10, TC20, TC30, TC50, TC70 Cardiographs, all versions prior to May 2018, an attacker with both the superuser passworEPSS 0.4%CVE-2025-4130HIGHHardcoded Credentials in PAVO Inc.'s PAVO PayEPSS 0.4%CVE-2026-85149MEDIUMLightstar|SmartIT Desktop Manager - Use of Hard-coded CredentialsEPSS 0.4%CVE-2023-36380CRITICALA vulnerability has been identified in CP-8031 MASTER MODULE (All versions < CPCI85 V05.11 (only with activated debug support)), CP-8050 MASEPSS 0.4%CVE-2024-52788HIGHTenda W9 v1.0.0.7(4456) was discovered to contain a hardcoded password vulnerability in /etc_ro/shadow, which allows attackers to log in as EPSS 0.4%CVE-2024-52789HIGHTenda W30E v2.0 V16.01.0.8 was discovered to contain a hardcoded password vulnerability in /etc_ro/shadow, which allows attackers to log in EPSS 0.4%CVE-2026-78251CRITICALDJI Drone FTP Service Allows Unrestricted Storage Consumption of the /blackbox DirectoryEPSS 0.4%CVE-2026-79740HIGHDell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to 5.36.00.00, contains an Use of Hard-codedEPSS 0.4%CVE-2026-79738HIGHDell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to 5.36.00.00, contains an Use of Hard-codedEPSS 0.4%CVE-2026-50601MEDIUMPlanet9 Hardcoded Credentials Vulnerability InformationEPSS 0.4%CVE-2026-79950HIGHDell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions prior to 5.36.00.00, contains an Use of Hard-codedEPSS 0.4%CVE-2026-30701CRITICALThe web interface of the WiFi Extender WDR201A (HW V2.1, FW LFMZX28040922V1.02) contains hardcoded credential disclosure mechanisms (in the EPSS 0.4%CVE-2023-43870HIGHWhen installing the Net2 software a root certificate is installed into the trusted store. A potential hacker could access the installer batcEPSS 0.4%CVE-2026-75940CRITICALA vulnerability was reported in Lenovo Health Android Application, distributed exclusively in the Chinese market, that could allow an attackEPSS 0.4%CVE-2026-114088HIGHTrigger.dev before 4.5.4 Hardcoded Coordinator Secret Authentication Bypass via Socket.IOEPSS 0.4%CVE-2026-18931CRITICALHardcoded Credentials in TMT Machine's Talassoft Industrial Management SoftwareEPSS 0.4%