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

目标: 1000 元 · 已筹: 1359 元

100%

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

CWE-798 使用硬编码的凭证 类弱点 749 条 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-2026-54374 VitaFit Android <2.8.1.0 硬编码凭证泄露漏洞 — VitaFit 7.5 High 2026-11-04
CVE-2026-121144 Tata Motors iRA 硬编码凭证漏洞 — Tata Motors iRA 2.0 8.8 High 2026-11-04
CVE-2026-121609 360 全屋路由 M5 启动脚本硬编码凭证漏洞 — Whole Home Router M5 10.0 Critical 2026-11-04
CVE-2026-119736 Attendo Admin 3.0.13 硬编码 MQTT 凭证漏洞 — Attendo (formerly Petpooja Payroll) 8.2 High 2026-11-02
CVE-2026-7003 WIT SynApps Runtime 1.4.11 硬编码 OAuth 凭证泄露漏洞 — SynApps Runtime 5.3 Medium 2026-10-30
CVE-2026-119662 Songloft 2.9.0-2.13.6 后端硬编码管理员凭证漏洞 — songloft 8.8 High 2026-10-30
CVE-2026-111419 Foxit 官网硬编码 API 令牌漏洞 — foxit.com 8.6 High 2026-10-29
CVE-2026-118601 Alpine iLX-F511 SSH 硬编码凭证远程代码执行漏洞 — iLX-F511 - - 2026-10-28
CVE-2026-18449 Supermicro BMC 存在 SMCRAKP 固定密钥漏洞 — X12SPI 7.5 High 2026-10-27
CVE-2026-54631 Part-DB 硬编码密钥致记住我 Cookie 伪造漏洞 — Part-DB-server 6.3 Medium 2026-10-23
CVE-2026-92450 Kiloview E3 NDI Encoder 硬编码凭证漏洞 — E3 Firmware 7.5 High 2026-10-22
CVE-2026-114219 NewType NT OneAPP 硬编码凭证漏洞 — NT OneAPP 7.4 High 2026-10-22
CVE-2026-87950 SAML SSO 服务提供商 2026-148 硬编码凭证漏洞 — SAML SSO - Service Provider - - 2026-10-22
CVE-2026-53986 Girafit Camera App 1.9.1 硬编码 TURN 凭证泄露漏洞 — Girafit camera app 5.3 Medium 2026-10-21
CVE-2026-76466 Cisco Expressway 系列远程代码执行漏洞 — Cisco TelePresence Video Communication Server (VCS) Expressway 9.8 Critical 2026-10-21
CVE-2026-114119 Best Practice Bp Premier 1.14.1.1128 硬编码凭据漏洞 — Bp Premier 9.8 Critical 2026-10-21
CVE-2026-114088 Trigger.dev 4.5.4 硬编码密钥认证绕过漏洞 — trigger.dev 6.5 Medium 2026-10-21
CVE-2026-109126 IBM Verify Access 硬编码凭证漏洞 — Verify Identity Access 8.8 High 2026-10-19
CVE-2026-112146 D-Link E15/M32/R15/R32 MQTT 硬编码凭证漏洞 — E15 7.4 High 2026-10-19
CVE-2026-107617 广州简云 IoT EseeCloud 硬编码凭证漏洞 — EseeCloud App 9.8 Critical 2026-10-16
CVE-2026-111281 Jooan JA-A12 未授权远程代码执行漏洞 — JA-A12 9.8 Critical 2026-10-15
CVE-2026-105033 EnergizeLab AI Station SSH默认凭据漏洞 — AI Station firmware (RK3562) 8.8 High 2026-10-15
CVE-2026-77427 FileRise 手动安装时不安全的默认加密密钥回退漏洞 — FileRise 5.9 Medium 2026-10-14
CVE-2026-110667 sar2html 硬编码凭证漏洞 — sar2html 7.3 High 2026-10-14
CVE-2026-81964 Windows更新协调器服务安全功能绕过漏洞 — Windows 10 Version 21H2 5.5 Medium 2026-10-13
CVE-2026-109566 Rapyd Admin 9.0.0-9.20.0 硬编码超级管理员凭证漏洞 — rapyd-admin 9.8 Critical 2026-10-12
CVE-2026-108831 Janus-Gateway Admin API硬编码凭证漏洞 — janus-gateway 6.3 Medium 2026-10-12
CVE-2026-107437 GV-E-Map Server V18.2.0A 明文数据库密码泄露漏洞 — GV-E-map Server 6.2 Medium 2026-10-12
CVE-2026-108905 pH7Builder 18.6.0 以下 硬编码 API 密钥绕过漏洞 — ph7builder 7.5 High 2026-10-11
CVE-2026-108584 FunnyWolf Viper配置文件硬编码凭据漏洞 — Viper 5.3 Medium 2026-10-11

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