Export
The link always opens the latest version of this page.
Ask an AI about it
Open in ChatGPTA new chat that reads this entry from the site Open in ClaudeThe same, in ClaudeShare the link instead of a file, and they will always see the latest version.
Files are a snapshot of today. The live page has anything newer.
CWE-798: Use of Hard-coded Credentials
The product contains hard-coded credentials for its own inbound authentication or outbound communication.
Definition
CWE-798 is a weakness where a product embeds credentials (passwords, API keys, tokens, or other authentication material) directly in its source code, configuration files, or compiled binaries.
Consequences
Hard-coded credentials enable unauthorized-access1 to systems and services. Attackers who obtain the code or binary can extract these credentials and bypass authentication mechanisms entirely2. This creates pathways for both unauthorized access and privilege escalation3.
Risk Factors
The severity of CWE-798 depends on the scope of credential exposure. Credentials embedded in widely-distributed software (client applications, firmware, containers) pose greater risk than those in restricted server code. Once extracted, hard-coded credentials typically grant the same access level as legitimate users, and rotation becomes difficult across all deployed instances.
Mitigation
- Store credentials in external configuration systems (environment variables, secure vaults, key management services) separate from code
- Use runtime credential injection rather than compile-time embedding
- Implement credential rotation policies
- Scan source code and binaries for embedded secrets during development and CI/CD
- Apply principle of least privilege to embedded credentials when unavoidable
Detection
Hard-coded credentials can be identified through:
- Static code analysis and secret scanning tools
- Binary analysis and string extraction
- Configuration file review
- Access pattern monitoring for anomalous credential usage
In the news 33
- Schneider Electric Easergy MiCOM Px40 Series · CISA Advisories
- Flow Neuroscience FL-100 · CISA Advisories
- CareCam Pro IP Cameras · CISA Advisories
- SAP Patches CVSS 9.9 NetWeaver ABAP Flaw That Could Expose or Modify Data · The Hacker News
- Hackers Exploit Critical VMware, Cisco, and Apache Flaws as Espionage Attacks Emerge · The Hacker News
- CISA Adds Four Known Exploited Vulnerabilities to Catalog · CISA Advisories
- Claude Code's “Don't Ask Again” File Exposes Passwords and Keys in 1,122 Public Copies on GitHub · The Hacker News
- [remote] Exasol Database 7.1.30 - command execution · Exploit-DB
- [0day-rubbish] Exasol Database 7.1.30 docker-db form: shipped default SYS credential to PYTHON3 UDF os.popen command execution as uid=500(exadefusr), output returned in-band (8.8) · Full Disclosure
- Guangzhou Juan IoT Technology EseeCloud · CISA Advisories
- Red Lion Controls N-Tron 700 Series · CISA Advisories
- [0day-rubbish] Maian Cart 3.8 addBanners unrestricted banner upload to PHP webshell and administrator command execution (7.2 primary, PR:H) · Full Disclosure
- [0day-rubbish] Asustor ADM 3.5.9.RWM1 (AS602T) music.cgi act=live stored-filename command injection reaching system() (8.8 primary, PR:L) · Full Disclosure
- Johnson Controls EasyIO FG · CISA Advisories
- Dell CSM Flaws Enable Unauthenticated Admin Access and Root on Kubernetes Nodes · The Hacker News
- Armatura LLC Armatura One · CISA Advisories
- [webapps] TigerGraph_Community_Edition 4.2.4 - arbitrary file write · Exploit-DB
- Viidure Dashcam Android Application · CISA Advisories
- Anjvision YSSD-RTMP-H5 · CISA Advisories
- harness Gitspace hardcoded password for every user account · Full Disclosure
- [0day-rubbish] Server Technology PRO3X PDU 030600 port_mux listener program override to root command execution (7.2) · Full Disclosure
- Eufy Omni C20, Omni X10 Pro · CISA Advisories
- [0day-rubbish] TigerGraph Community Edition 4.2.4 Default credentials plus GSQL TO_CSV arbitrary file write to SSH code execution (9.8) · Full Disclosure
- Bransys ELD · CISA Advisories
- Digital Watchdog VMAX DVR and NVR Product Lineups · CISA Advisories
- Tycon Systems TPDIN-Monitor-WEB3 · CISA Advisories
- FURUNO FA-50 Class B AIS Transponder · CISA Advisories
- Bendix EC80 Brake ECU · CISA Advisories
- Mira Hormone Monitor, Mira Android App · CISA Advisories
- Cisco FMC Zero-Day Actively Exploited, Static Credentials Could Expose Sensitive Data · The Hacker News
- Cisco warns of FMC static credential flaw exploited in zero-day attacks · BleepingComputer
- Gardyn IoT Hub · CISA Advisories
- StoneFly Storage Concentrator · CISA Advisories
Sign in for the full story cards: summaries, tags and starring.