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-2023-26566HIGHSangoma FreePBX 1805 through 2203 on Linux contains hardcoded credentials for the Asterisk REST Interface (ARI), which allows remote attackeEPSS 0.7%CVE-2023-40300CRITICALNETSCOUT nGeniusPULSE 3.8 has a Hardcoded Cryptographic Key.EPSS 0.7%CVE-2024-32740CRITICALA vulnerability has been identified in SIMATIC CN 4100 (All versions < V3.0). The affected device contains undocumented users and credentialEPSS 0.7%CVE-2025-34209CRITICALVasion Print (formerly PrinterLogic) Hardcoded GPG Private KeyEPSS 0.7%CVE-2026-92787CRITICALFeast through 0.66.0 Authentication Bypass via Unverified TokenEPSS 0.7%CVE-2026-82448CRITICALShinobi before commit 5a76c74f Arbitrary Database Query Execution via Hardcoded Child Node KeyEPSS 0.7%CVE-2024-36496HIGHHardcoded CredentialsEPSS 0.7%CVE-2025-42890CRITICALInsecure key & Secret Management vulnerability in SQL Anywhere Monitor (Non-Gui)EPSS 0.7%CVE-2026-8983CRITICALBackdoor Authentication TokenEPSS 0.7%CVE-2024-28875HIGHA security flaw involving hard-coded credentials in LevelOne WBR-6012's web services allows attackers to gain unauthorized access during theEPSS 0.7%CVE-2025-3621CRITICALRemote Code Execution in ProTNS ActADUREPSS 0.7%CVE-2019-3907—Premisys Identicard version 3.1.190 stores user credentials and other sensitive information with a known weak encryption method (MD5 hash ofEPSS 0.7%CVE-2026-37270CRITICALTrueview Security camera T18161- AF v4.9.60.0 contains an authentication bypass vulnerability caused by improper password validation and theEPSS 0.7%CVE-2022-41397CRITICALThe optional Web Screens and Global Search features for Sage 300 through version 2022 use a hard-coded 40-byte blowfish key ("LandlordPassKeEPSS 0.7%CVE-2023-41878MEDIUMWeak password of selenium VNC in MeterSphereEPSS 0.7%CVE-2022-40242HIGHMegaRAC Default Credentials VulnerabilityEPSS 0.7%CVE-2024-33329HIGHA hardcoded privileged ID within Lumisxp v15.0.x to v16.1.x allows attackers to bypass authentication and access internal pages and other seEPSS 0.7%CVE-2021-45106—A vulnerability has been identified in SICAM TOOLBOX II (All versions). Affected applications use a circumventable access control within a dEPSS 0.7%CVE-2022-22512CRITICALVARTA: Multiple devices prone to hard-coded credentialsEPSS 0.7%CVE-2025-7503CRITICALAn OEM IP camera manufactured by Shenzhen Liandian Communication Technology LTD exposes a Telnet service (port 23) with undocumented, defaulEPSS 0.7%