VariantDraft
CWE-259Use of Hard-coded Password
Category: auth
Description
The product contains a hard-coded password, which it uses for its own inbound authentication or for outbound communication to external components.
Common consequences· 2
- Access Control — Gain Privileges or Assume IdentityIf hard-coded passwords are used, it is almost certain that malicious users can gain access through the account in question.
- Access Control — Gain Privileges or Assume Identity, Hide Activities, Reduce MaintainabilityA hard-coded password typically leads to a significant authentication failure that can be difficult for the system administrator to detect. Once detected, it can be difficult to fix, so the administrator may be forced into disabling the product entirely.
Potential mitigations· 5
- [Architecture and Design]For outbound authentication: store passwords outside of the code in a strongly-protected, encrypted configuration file or database that is protected from access by all outsiders, including other local users on the same system. Properly protect the key (CWE-320). If you cannot use encryption to protect the file, then make sure that the permissions are as restrictive as possible.
- [Architecture and Design]For inbound authentication: Rather than hard-code a default username and password for first time logins, utilize a "first login" mode that requires the user to enter a unique strong password.
- [Architecture and Design]Perform access control checks and limit which entities can access the feature that requires the hard-coded password. For example, a feature might only be enabled through the system console instead of through a network connection.
- [Architecture and Design]
- [Architecture and Design]
References
Compliance frameworks addressing this (incoming)3
| Type | Target | Confidence | Tier |
|---|---|---|---|
| ComplianceControl | cis_v8-5 | 100% | live |
| ComplianceControl | cis_v8-6 | 100% | live |
| ComplianceControl | iso27001-a.8.5 | 100% | live |
(incoming)29
| Type | Target | Confidence | Tier |
|---|---|---|---|
| Vulnerability | CVE-2025-1100cve-2025-1100 | 0% | live |
| Vulnerability | CVE-2025-11126cve-2025-11126 | 0% | live |
| Vulnerability | CVE-2025-11643cve-2025-11643 | 0% | live |
| Vulnerability | CVE-2025-14126cve-2025-14126 | 0% | live |
| Vulnerability | CVE-2025-15111cve-2025-15111 | 0% | live |
| Vulnerability | CVE-2025-20286cve-2025-20286 | 0% | live |
| Vulnerability | CVE-2025-2322cve-2025-2322 | 0% | live |
| Vulnerability | CVE-2025-2402cve-2025-2402 | 0% | live |
| Vulnerability | CVE-2025-25428cve-2025-25428 | 0% | live |
| Vulnerability | CVE-2025-27638cve-2025-27638 | 0% | live |
| Vulnerability | CVE-2025-30106cve-2025-30106 | 0% | live |
| Vulnerability | CVE-2025-30115cve-2025-30115 | 0% | live |
| Vulnerability | CVE-2025-44955cve-2025-44955 | 0% | live |
| Vulnerability | CVE-2025-46067cve-2025-46067 | 0% | live |
| Vulnerability | CVE-2025-54754cve-2025-54754 | 0% | live |
| Vulnerability | CVE-2025-59388cve-2025-59388 | 0% | live |
| Vulnerability | CVE-2025-70041cve-2025-70041 | 0% | live |
| Vulnerability | CVE-2025-7079cve-2025-7079 | 0% | live |
| Vulnerability | CVE-2025-70798cve-2025-70798 | 0% | live |
| Vulnerability | CVE-2025-70802cve-2025-70802 | 0% | live |
| Vulnerability | CVE-2025-8730cve-2025-8730 | 0% | live |
| Vulnerability | CVE-2025-8974cve-2025-8974 | 0% | live |
| Vulnerability | CVE-2025-9725cve-2025-9725 | 0% | live |
| Vulnerability | CVE-2026-1610cve-2026-1610 | 0% | live |
| Vulnerability | CVE-2026-25753cve-2026-25753 | 0% | live |
| Vulnerability | CVE-2026-2616cve-2026-2616 | 0% | live |
| Vulnerability | CVE-2026-4475cve-2026-4475 | 0% | live |
| Vulnerability | CVE-2026-7251cve-2026-7251 | 0% | live |
| KEVEntry | Zoho ManageEngine ADSelfService Plus Remote Code Execution Vulnerabilitykev-cve-2022-28810 | 0% | live |
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.