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-2024-49060HIGHAzure Stack HCI Elevation of Privilege VulnerabilityEPSS 0.4%CVE-2024-32988HIGH'OfferBox' App for Android versions 2.0.0 to 2.3.17 and 'OfferBox' App for iOS versions 2.1.7 to 2.6.14 use a hard-coded secret key for JWT.EPSS 0.4%CVE-2023-33920MEDIUMA vulnerability has been identified in CP-8031 MASTER MODULE (All versions < CPCI85 V05), CP-8050 MASTER MODULE (All versions < CPCI85 V05).EPSS 0.4%CVE-2026-50083CRITICALAqara hardcoded OAuth client credentialsEPSS 0.4%CVE-2026-28674HIGHxiaoheiFS Vulnerable to RCE via Arbitrary Payment Plugin Upload (Automatic Execution)EPSS 0.4%CVE-2024-9334HIGHInformation Disclosure in E-Kent's Pallium Vehicle TrackingEPSS 0.4%CVE-2024-52902HIGHIBM Cognos Controller information disclosureEPSS 0.4%CVE-2026-85451HIGHMOOS core-moos through 10.4.0 Remote Process Termination via Hard-Coded Multicast PassphraseEPSS 0.4%CVE-2026-108584MEDIUMFunnyWolf Viper config hard-coded credentialsEPSS 0.4%CVE-2025-2343HIGHIROAD Dash Cam X5/Dash Cam X6 Device Pairing hard-coded credentialsEPSS 0.4%CVE-2025-13252MEDIUMshsuishang ShopSuite ModulithShop RSA/OAuth2/Database hard-coded credentialsEPSS 0.4%CVE-2023-6198CRITICALHard Coded CredentialEPSS 0.4%CVE-2026-42251HIGHHard-coded credentials in KS-SOMEDEPSS 0.4%CVE-2020-37220HIGHHuawei HG630 V2 Router Authentication Bypass via Serial NumberEPSS 0.4%CVE-2021-20025—SonicWall Email Security Virtual Appliance version 10.0.9 and earlier versions contain a default username and a password that is used at iniEPSS 0.4%CVE-2019-20471HIGHAn issue was discovered on TK-Star Q90 Junior GPS horloge 3.1042.9.8656 devices. When using the device at initial setup, a default password EPSS 0.4%CVE-2026-80170MEDIUMDell 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-105033HIGHEnergizeLab AI Station Default Root Credentials with SSH EnabledEPSS 0.4%CVE-2026-109758CRITICALPerforce Helix Authentication Service (HAS) deployments that retain the shipped default SCIM bearer token are vulnerable to unauthorized accEPSS 0.4%CVE-2024-36556CRITICALForever KidsWatch Call Me KW50 R36_YDR_A3PW_GM7S_V1.0_2019_07_15_16.19.24_cob_h, and Forever KidsWatch Call Me 2 KW60 R36CW_YDE_S4_A29_2_V1.EPSS 0.4%