目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CWE-259 使用硬编码的口令 类漏洞列表 126

CWE-259 使用硬编码的口令 类弱点 126 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-259 指软件在入站认证或出站通信中硬编码密码的漏洞。攻击者常通过逆向工程提取源码中的明文凭证,进而伪装合法用户或横向渗透外部系统。开发者应避免此类做法,改用环境变量、密钥管理服务或配置文件存储敏感信息,确保密码动态生成且与代码分离,从而降低凭证泄露风险。

MITRE CWE 官方描述
CWE:CWE-259 使用硬编码密码 (Use of Hard-coded Password) 英文:该产品包含一个硬编码密码 (hard-coded password),用于其自身的入站认证 (inbound authentication) 或与外部组件进行出站通信 (outbound communication)。 硬编码密码 (hard-coded password) 主要有两种变体:入站 (Inbound):该产品包含一种认证机制,用于检查硬编码密码 (hard-coded password)。出站 (Outbound):该产品连接到另一个系统或组件,并包含用于连接该组件的硬编码密码 (hard-coded password)。
常见影响 (2)
Access Control Gain Privileges or Assume Identity
If 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 Maintainability
A 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.
缓解措施 (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 For inbound authentication: apply strong one-way hashes to your passwords and store those hashes in a configuration file or database with appropriate access control. That way, theft of the file/database still requires the attacker to try to crack the password. When receiving an incoming password during authentication, take the hash of the password and compare it to the hash that you have saved. Us…
Architecture and Design For front-end to back-end connections: Three solutions are possible, although none are complete. The first suggestion involves the use of generated passwords which are changed automatically and must be entered at given time intervals by a system administrator. These passwords will be held in memory and only be valid for the time intervals. Next, the passwords used should be limited at the back end…
代码示例 (2)
The following code uses a hard-coded password to connect to a database:
... DriverManager.getConnection(url, "scott", "tiger"); ...
Bad · Java
javap -c ConnMngr.class 22: ldc #36; //String jdbc:mysql://ixne.com/rxsql 24: ldc #38; //String scott 26: ldc #17; //String tiger
Attack
The following code is an example of an internal hard-coded password in the back-end:
int VerifyAdmin(char *password) { if (strcmp(password, "Mew!")) { printf("Incorrect Password!\n"); return(0); } printf("Entering Diagnostic Mode...\n"); return(1); }
Bad · C
int VerifyAdmin(String password) { if (!password.equals("Mew!")) { return(0); } //Diagnostic Mode return(1); }
Bad · Java
CVE ID 标题 CVSS 风险等级 Published
CVE-2022-22144 TCL LinkHub Mesh Wi-Fi 信任管理问题漏洞 — LinkHub Mesh Wifi 8.8 - 2022-08-05
CVE-2017-20039 SICUNET Access Controller 信任管理问题漏洞 — Access Controller 9.8 Critical 2022-06-11
CVE-2022-27172 InHand Networks InRouter302 信任管理问题漏洞 — InRouter302 8.8 - 2022-05-12
CVE-2021-34601 Bender ebee 充电控制器 信任管理问题漏洞 — CC612 9.8 Critical 2022-04-27
CVE-2021-36312 Dell EMC CloudLink 安全漏洞 — CloudLink 9.1 Critical 2021-11-23
CVE-2021-38456 Moxa Mxview Network Management Software 信任管理问题漏洞 — MXview Network Management Software 9.8 Critical 2021-10-12
CVE-2021-28813 QSW-M2116P-2T2S 安全漏洞 — QSW-M2116P-2T2S 9.6 Critical 2021-09-10
CVE-2020-5351 Dell EMC Data Protection Advisor 安全漏洞 — Data Protection Advisor 7.5 High 2021-07-28
CVE-2021-22729 EVlink City、EVlink Parking 和 EVlink Smart Wallbox 安全漏洞 — EVlink City (EVC1S22P4 / EVC1S7P4 all versions prior to R8 V3.4.0.1), EVlink Parking (EVW2 / EVF2 / EV.2 all versions prior to R8 V3.4.0.1), and EVlink Smart Wallbox (EVB1A all versions prior to R8 V3.4.0.1 ) 9.8 - 2021-07-21
CVE-2021-21818 D-Link D-LINK DIR-3040 信任管理问题漏洞 — D-Link 7.5 - 2021-07-16
CVE-2021-32525 QSAN Storage Manager 信任管理问题漏洞 — Storage Manager 9.1 Critical 2021-07-07
CVE-2021-32521 QSAN 多款产品信任管理问题漏洞 — Storage Manager 7.3 High 2021-07-07
CVE-2019-10881 Xerox AltaLink 信任管理问题漏洞 — AltaLink B8045/B8055/B8065/B8075/B8090 9.8 - 2021-04-13
CVE-2021-27440 Grid Solutions GE Reason DR60 信任管理问题漏洞 — Reason DR60 9.8 - 2021-03-25
CVE-2021-27452 Grid Solutions GE Reason DR60 信任管理问题漏洞 — MU320E 9.8 - 2021-03-25
CVE-2021-27254 Netgear NETGEAR 信任管理问题漏洞 — R7800 8.8 - 2021-03-05
CVE-2020-2499 QNAP QES 信任管理问题漏洞 — QES 6.3 Medium 2020-12-24
CVE-2020-7590 Siemens DCA Vantage Analyzer 安全漏洞 — DCA Vantage Analyzer 6.8 - 2020-10-13
CVE-2020-12012 Baxter ExactaMix EM2400和EM1200 信任管理问题漏洞 — Baxter ExactaMix EM 2400 & EM 1200 7.7 - 2020-06-29
CVE-2020-12016 Baxter ExactaMix EM2400和ExactaMix EM1200 信任管理问题漏洞 — Baxter ExactaMix EM 2400 & EM 1200 8.4 - 2020-06-29
CVE-2020-12037 Baxter PrismaFlex 安全漏洞 — Baxter PrismaFlex and PrisMax 7.5 - 2020-06-29
CVE-2020-12039 Baxter Sigma Spectrum Infusion System和Spectrum Infusion System 信任管理问题漏洞 — Baxter Sigma Spectrum Infusion Pumps 2.4 - 2020-06-29
CVE-2020-12045 Baxter Spectrum WBM 信任管理问题漏洞 — Baxter Sigma Spectrum Infusion Pumps 9.8 - 2020-06-29
CVE-2020-12047 Baxter Spectrum WBM 信任管理问题漏洞 — Baxter Sigma Spectrum Infusion Pumps 9.8 - 2020-06-29
CVE-2019-13530 多款Philips产品信任管理问题漏洞 — Philips IntelliVue WLAN, portable patient monitors 8.8 - 2019-09-12
CVE-2014-5431 Baxter SIGMA Spectrum Infusion System 安全漏洞 — SIGMA Spectrum Infusion System 6.8 - 2019-03-26
CVE-2014-5434 Baxter Wireless Battery Module 安全漏洞 — SIGMA Spectrum Infusion System 9.8 - 2019-03-26
CVE-2015-3953 多款Hospira产品安全漏洞 — Plum A+ Infusion System 9.8 - 2019-03-25
CVE-2019-3908 IDenticard Systems Identicard Premisys 信任管理问题漏洞 — Premisys Identicard 3.1.190 6.5 - 2019-01-18
CVE-2018-8870 Medtronic MyCareLink Patient Monitor、24950 MyCareLink Monitor和24952 MyCareLink Monitor 安全漏洞 — 24950 MyCareLink Monitor 6.4 Medium 2018-07-02

CWE-259(使用硬编码的口令) 是常见的弱点类别,本平台收录该类弱点关联的 126 条 CVE 漏洞。