Weaknesses of type CWE-798

943 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-6409HIGH CWE-798: Use of Hard-coded Credentials vulnerability exists that could cause unauthorized access to a project file protected with applicatiEPSS 0.2%CVE-2026-75896CRITICALUse of Hard-coded LDAP Credentials in TÜBİTAK BİLGEM's LiderahenkEPSS 0.2%CVE-2026-22312HIGHUse of Hard-coded Credentials Vulnerability in Radiflow iSAP Smart CollectorEPSS 0.2%CVE-2026-50213HIGHBulk User Private Data HarvestingEPSS 0.2%CVE-2024-35118MEDIUMIBM MaaS360 information disclosureEPSS 0.2%CVE-2026-6374HIGHHardcoded Credentials in Zyxel WAH7601 RouterEPSS 0.2%CVE-2022-22765HIGHBD Viper LT System - Hardcoded CredentialsEPSS 0.2%CVE-2025-7564HIGHLB-LINK BL-AC3600 shadow hard-coded credentialsEPSS 0.2%CVE-2026-13728MEDIUMWatchGuard Firebox Hardcoded Fallback Encryption Key in Access Portal Resource Credential DatabaseEPSS 0.2%CVE-2025-68421HIGHHardcoded credentials in Comarch ERP OptimaEPSS 0.2%CVE-2021-42849MEDIUMA weak default password for the serial port was reported in some Lenovo Personal Cloud Storage devices that could allow unauthorized device EPSS 0.2%CVE-2026-11746CRITICALA vulnerability has been identified in centraldogma-server versions prior to 0.84.0, where enabling ZooKeeper replication without setting reEPSS 0.2%CVE-2026-18164HIGHFlow Neuroscience FL-100 Use of Hard-coded CredentialsEPSS 0.2%CVE-2022-22766HIGHBD Pyxis Products - Hardcoded CredentialsEPSS 0.2%CVE-2021-34571MEDIUMHard-coded Credentials in Enbra Wireless M-Bus devicesEPSS 0.2%CVE-2026-42929HIGHMacGregor Voyage Data Recorder (VDR) G4e Use of Hard-coded CredentialsEPSS 0.2%CVE-2025-9091LOWTenda AC20 shadow hard-coded credentialsEPSS 0.2%CVE-2026-24346HIGHUse of well-known default credentials in EZCast Pro II DongleEPSS 0.2%CVE-2026-33072HIGHFileRise: Default Encryption Key Enables Token Forgery and Config DecryptionEPSS 0.2%CVE-2026-48245MEDIUMOpen ISES Tickets < 3.44.2 Hardcoded Google Maps API Key in tables.phpEPSS 0.2%