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

目标: 1000 元 · 已筹: 1359 元

100%

CWE-321 使用硬编码的密码学密钥 类漏洞列表 380

CWE-321 使用硬编码的密码学密钥 类弱点 380 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-321 指软件在代码中硬编码了不可更改的加密密钥。攻击者通过逆向工程提取该密钥,即可解密受保护数据或伪造合法通信,严重破坏机密性与完整性。开发者应避免此类做法,改用动态密钥管理机制,如从安全密钥库、环境变量或硬件安全模块中运行时获取密钥,确保密钥可轮换且不与源代码一同发布。

MITRE CWE 官方描述
CWE:CWE-321 使用硬编码的加密密钥(Use of Hard-coded Cryptographic Key) 英文:The product uses a hard-coded, unchangeable cryptographic key. 译文:该产品使用了硬编码且不可更改的加密密钥(cryptographic key)。
常见影响 (1)
Access Control Bypass Protection Mechanism, Gain Privileges or Assume Identity, Read Application Data
If hard-coded cryptographic keys are used, it is almost certain that malicious users will gain access through the account in question. The use of a hard-coded cryptographic key significantly increases the possibility that encrypted data may be recovered.
缓解措施 (1)
Architecture and Design Prevention schemes mirror that of hard-coded password storage.
代码示例 (2)
The following code examples attempt to verify a password using a hard-coded cryptographic key.
int VerifyAdmin(char *password) { if (strcmp(password,"68af404b513073584c4b6f22b6c63e6b")) { printf("Incorrect Password!\n"); return(0); } printf("Entering Diagnostic Mode...\n"); return(1); }
Bad · C
public boolean VerifyAdmin(String password) { if (password.equals("68af404b513073584c4b6f22b6c63e6b")) { System.out.println("Entering Diagnostic Mode..."); return true; } System.out.println("Incorrect Password!"); return false;
Bad · Java
In 2022, the OT:ICEFALL study examined products by 10 different Operational Technology (OT) vendors. The researchers reported 56 vulnerabilities and said that the products were "insecure by design" [REF-1283]. If exploited, these vulnerabilities often allowed adversaries to change how the products operated, ranging from denial of service to changing the code that the products executed. Since these…
CVE ID 标题 CVSS 风险等级 Published
CVE-2025-30206 Dpanel 安全漏洞 — dpanel 9.8 Critical 2025-04-15
CVE-2025-31362 OPEN BizRobo! 安全漏洞 — BizRobo! 9.1AI Critical AI 2025-04-11
CVE-2025-3177 FastCMS 安全漏洞 — FastCMS 5.0 Medium 2025-04-03
CVE-2025-30406 Gladinet CentreStack 安全漏洞 — CentreStack 9.0 Critical 2025-04-03
CVE-2025-30095 VyOS 安全漏洞 — VyOS 9.0 Critical 2025-03-31
CVE-2025-30234 Joyent SmartOS 安全漏洞 — SmartOS 8.3 High 2025-03-19
CVE-2024-54027 Fortinet FortiSandbox 安全漏洞 — FortiSandbox 7.8 High 2025-03-17
CVE-2024-13773 WordPress plugin Civi 安全漏洞 — Civi - Job Board & Freelance Marketplace WordPress Theme 7.3 High 2025-03-14
CVE-2025-26340 Q-Free MAXTIME Suite 安全漏洞 — MaxTime 8.8 High 2025-02-12
CVE-2024-33504 Fortinet FortiManager 安全漏洞 — FortiManager 3.9 Medium 2025-02-11
CVE-2024-13842 Ivanti Connect Secure 安全漏洞 — Connect Secure 6.0 Medium 2025-02-11
CVE-2024-28989 SolarWinds Web Help Desk 安全漏洞 — Web Help Desk 5.5 Medium 2025-02-11
CVE-2025-1099 TP-Link Tapo C500 安全漏洞 — Tapo C500 V1 Wi-Fi Camera 5.7 - 2025-02-10
CVE-2024-47256 2N Access Commander 安全漏洞 — 2N Access Commander 6.0 Medium 2025-02-06
CVE-2024-12078 ECOVACS robot lawnmowers和vacuums 安全漏洞 — Unspecified robots 6.3 Medium 2025-01-23
CVE-2024-50564 Fortinet FortiClientWindows 安全漏洞 — FortiClientWindows 3.2 Low 2025-01-14
CVE-2023-37936 Fortinet FortiSwitch 安全漏洞 — FortiSwitch 9.6 Critical 2025-01-14
CVE-2024-5722 Logsign Unified SecOps Platform 安全漏洞 — Unified SecOps Platform 8.8 - 2024-11-22
CVE-2024-45837 AIPHONE IX SYSTEM和AIPHONE IXG SYSTEM 安全漏洞 — IX-MV 8.8 - 2024-11-22
CVE-2024-52614 EPARK Kura Sushi Official App 安全漏洞 — Kura Sushi Official App Produced by EPARK 7.8AI High AI 2024-11-20
CVE-2024-11308 TRCore DVC 安全漏洞 — DVC 6.2 Medium 2024-11-18
CVE-2024-46889 Siemens SINEC INS 安全漏洞 — SINEC INS 5.3 Medium 2024-11-12
CVE-2024-10920 travels-java-api 安全漏洞 — travels-java-api 3.1 Low 2024-11-06
CVE-2024-38314 IBM Maximo Application Suite 安全漏洞 — Maximo Application Suite - Monitor Component 5.9 Medium 2024-10-24
CVE-2024-20280 Cisco UCS Central 安全漏洞 — Cisco Unified Computing System Central Software 6.3 Medium 2024-10-16
CVE-2024-20350 Cisco Catalyst Center 安全漏洞 — Cisco Digital Network Architecture Center (DNA Center) 7.5 High 2024-09-25
CVE-2023-27584 Dragonfly 安全漏洞 — Dragonfly2 9.8 Critical 2024-09-19
CVE-2024-42418 Avtec Outpost 安全漏洞 — Outpost 0810 7.5 High 2024-08-22
CVE-2024-6890 Journyx 安全漏洞 — Journyx (jtime) 8.1AI High AI 2024-08-07
CVE-2024-20323 Cisco Intelligent Node 安全漏洞 — Cisco Intelligent Node Manager 7.5 High 2024-07-17

CWE-321(使用硬编码的密码学密钥) 是常见的弱点类别,本平台收录该类弱点关联的 380 条 CVE 漏洞。