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

目标: 1000 元 · 已筹: 1336

100%

CWE-798 使用硬编码的凭证 类漏洞列表 684

CWE-798 使用硬编码的凭证 类弱点 684 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-798指硬编码凭据漏洞,即软件将密码或密钥直接写入代码。攻击者可通过逆向工程提取这些固定凭据,从而绕过认证机制获取未授权访问权限。为避免此类风险,开发者应严禁在代码中硬编码敏感信息,转而采用环境变量、密钥管理系统或配置数据库等动态方式存储凭据,确保凭据与代码分离,提升系统安全性。

MITRE CWE 官方描述
CWE:CWE-798 使用硬编码凭证 (Use of Hard-coded Credentials) 英文:该产品包含硬编码凭证 (hard-coded credentials),例如密码 (password) 或加密密钥 (cryptographic key)。 主要有两种变体: 入站 (Inbound):该产品包含一种身份验证机制,将输入的凭证 (input credentials) 与一组硬编码凭证 (hard-coded set of credentials) 进行比对。在此变体中,会创建一个默认的管理员账户 (default administration account),并将一个简单的密码 (simple password) 硬编码到产品中并与该账户关联。此硬编码密码 (hard-coded password) 在产品的每次安装中都是相同的,并且通常无法由系统管理员 (system administrators) 在不手动修改程序或修补产品的情况下更改或禁用。管理员也难以检测到此问题。 出站 (Outbound):该产品连接到另一个系统或组件,并包含用于连接该组件的硬编码凭证 (hard-coded credentials)。此变体适用于与后端服务 (back-end service) 进行身份验证的前端系统 (front-end systems)。后端服务 (back-end service) 可能需要一个容易被发现的固定密码 (fixed password)。程序员可能只是将这些后端凭证 (back-end credentials) 硬编码到前端产品 (front-end product) 中。
常见影响 (2)
Access Control Bypass Protection Mechanism
If hard-coded passwords are used, it is almost certain that malicious users will gain access to the account in question. Any user of the product that hard-codes passwords may be able to extract the password. Client-side systems with hard-coded passwords pose even more of a threat, since the extracti…
Integrity, Confidentiality, Availability, Access Control, Other Read Application Data, Gain Privileges or Assume Identity, Execute Unauthorized Code or Commands, Other
This weakness can lead to the exposure of resources or functionality to unintended actors, possibly providing attackers with sensitive information or even execute arbitrary code. If the password is ever discovered or published (a common occurrence on the Internet), then anybody with knowledge of thi…
缓解措施 (5)
Architecture and Design For outbound authentication: store passwords, keys, and other credentials 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 …
Architecture and Design For inbound authentication: Rather than hard-code a default username and password, key, or other authentication credentials for first time logins, utilize a "first login" mode that requires the user to enter a unique strong password or key.
Architecture and Design If the product must contain hard-coded credentials or they cannot be removed, perform access control checks and limit which entities can access the feature that requires the hard-coded credentials. For example, a feature might only be enabled through the system console instead of through a network connection.
Architecture and Design For inbound authentication using passwords: apply strong one-way hashes to 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 handling an incoming password during authentication, take the hash of the password and compare it to the saved hash. Use ra…
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 or keys that 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 or keys should be limited at th…
代码示例 (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-2023-5777 Weintek EasyBuilder Pro 信任管理问题漏洞 — EasyBuilder Pro 9.8 Critical 2023-11-06
CVE-2023-46102 Bosch ctrlX HMI Web Panel 信任管理问题漏洞 — ctrlX HMI Web Panel - WR21 (WR2107) 8.8 High 2023-10-25
CVE-2023-41372 Bosch ctrlX HMI Web Panel WR21 信任管理问题漏洞 — ctrlX HMI Web Panel - WR21 (WR2107) 7.8 High 2023-10-25
CVE-2022-22466 IBM Security Verify Governance 信任管理问题漏洞 — Security Verify Governance 6.8 Medium 2023-10-23
CVE-2023-33836 IBM Security Verify Governance 信任管理问题漏洞 — Security Verify Governance 5.3 Medium 2023-10-16
CVE-2023-45226 F5 BIG-IP 信任管理问题漏洞 — BIG-IP Next SPK 7.4 High 2023-10-10
CVE-2023-36380 Siemens CP-8031 信任管理问题漏洞 — CP-8031 MASTER MODULE 9.8 Critical 2023-10-10
CVE-2023-2306 Qognify NiceVision 信任管理问题漏洞 — NiceVision 10.0 Critical 2023-10-05
CVE-2023-20101 Cisco Emergency Responder 信任管理问题漏洞 — Cisco Emergency Responder 9.8 Critical 2023-10-04
CVE-2022-47891 RIELLO UPS NetMan 信任管理问题漏洞 — Netman-204 8.1 High 2023-10-03
CVE-2023-5318 Microweber 信任管理问题漏洞 — microweber/microweber 9.4 - 2023-09-30
CVE-2023-20034 Cisco SD-WAN vManage 安全漏洞 — Cisco SD-WAN vManage 7.5 High 2023-09-27
CVE-2023-41878 MeterSphere 信任管理问题漏洞 — metersphere 4.6 Medium 2023-09-26
CVE-2023-5074 D-Link D-View 8 信任管理问题漏洞 — D-View 8 9.8 Critical 2023-09-20
CVE-2023-40717 FortiTester 信任管理问题漏洞 — FortiTester 5.0 Medium 2023-09-13
CVE-2023-39422 engine 信任管理问题漏洞 — IRM Next Generation 6.5 Medium 2023-09-07
CVE-2023-39421 Internet Reservation Module Booking Engine 信任管理问题漏洞 — IRM Next Generation 7.7 High 2023-09-07
CVE-2023-39420 Internet Reservation Module Booking Engine 信任管理问题漏洞 — IRM Next Generation 9.9 Critical 2023-09-07
CVE-2023-31173 Schweitzer Engineering Laboratories SEL-5037 SEL Grid Configurator 信任管理问题漏洞 — SEL-5037 SEL Grid Configurator 7.7 High 2023-08-31
CVE-2023-38026 SpotCam FHD 2 信任管理问题漏洞 — SpotCam FHD 2 9.8 Critical 2023-08-28
CVE-2023-38024 SpotCam Sense 信任管理问题漏洞 — SpotCam FHD 2 9.8 Critical 2023-08-28
CVE-2022-3744 Lenovo Notebook 信任管理问题漏洞 — Notebook 6.7 Medium 2023-08-23
CVE-2023-4204 MOXA NPort IAW5000A-I/O Series 信任管理问题漏洞 — NPort IAW5000A-I/O Series 5.4 Medium 2023-08-16
CVE-2023-3264 Dataprobe 信任管理问题漏洞 — iBoot PDU 6.7 Medium 2023-08-14
CVE-2023-3262 Dataprobe 信任管理问题漏洞 — iBoot PDU 6.7 Medium 2023-08-14
CVE-2023-37857 PHOENIX CONTACTs WP 6xxx series web panels 信任管理问题漏洞 — WP 6070-WVPS 3.8 Low 2023-08-09
CVE-2023-37215 JBL soundbar multibeam 信任管理问题漏洞 — soundbar multibeam 6.2 Medium 2023-07-30
CVE-2023-32227 Synel Industries SYnergy Fingerprint Terminals 信任管理问题漏洞 — SYnergy Fingerprint Terminals 9.8 Critical 2023-07-30
CVE-2023-37287 SmartSoft SmartBPM.NET 信任管理问题漏洞 — SmartBPM.NET 9.1 Critical 2023-07-10
CVE-2023-37286 SmartSoft SmartBPM.NET 信任管理问题漏洞 — SmartBPM.NET 9.8 Critical 2023-07-10

CWE-798(使用硬编码的凭证) 是常见的弱点类别,本平台收录该类弱点关联的 684 条 CVE 漏洞。