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

目标: 1000 元 · 已筹: 1310

100%

CWE-914 动态识别变量的控制不恰当 类漏洞列表 5

CWE-914 动态识别变量的控制不恰当 类弱点 5 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-914属于动态变量控制不当漏洞,指程序未严格限制对由输入字符串动态标识变量的读写操作。攻击者常利用此缺陷,通过构造恶意输入修改非预期的程序变量,从而引发逻辑错误或远程代码执行。开发者应避免直接使用用户输入作为变量名或键名,若必须使用,需实施严格的白名单验证,确保仅允许预定义的合法标识符,从而阻断非法访问路径。

MITRE CWE 官方描述
CWE:CWE-914 对动态标识变量的控制不当 英文:产品未能正确限制对动态标识变量的读取或写入操作。 许多语言提供了强大的功能,允许程序员通过输入字符串访问任意指定的变量。虽然这些功能可以提供显著的灵活性并减少开发时间,但如果攻击者能够修改具有安全影响的非预期变量,则可能带来极大的危险。
常见影响 (3)
IntegrityModify Application Data
An attacker could modify sensitive data or program variables.
IntegrityExecute Unauthorized Code or Commands
Other, IntegrityVaries by Context, Alter Execution Logic
缓解措施 (2)
ImplementationFor any externally-influenced input, check the input against an allowlist of internal program variables that are allowed to be modified.
Implementation, Architecture and DesignRefactor the code so that internal program variables do not need to be dynamically identified.
代码示例 (1)
This code uses the credentials sent in a POST request to login a user.
//Log user in, and set $isAdmin to true if user is an administrator function login($user,$pass){ $query = buildQuery($user,$pass); mysql_query($query); if(getUserRole($user) == "Admin"){ $isAdmin = true; } } $isAdmin = false; extract($_POST); login(mysql_real_escape_string($user),mysql_real_escape_string($pass));
Bad · PHP
CVE ID标题CVSS风险等级Published
CVE-2025-14085 youlai-mall 安全漏洞 — youlai-mall 6.3 Medium2025-12-05
CVE-2025-14051 youlai-mall 安全漏洞 — youlai-mall 6.3 Medium2025-12-04
CVE-2024-54198 SAP NetWeaver Application Server 安全漏洞 — SAP NetWeaver Application Server ABAP 8.5 High2024-12-10
CVE-2024-24914 Check Point Gaia Portal 安全漏洞 — ClusterXL, Multi-Domain Security Management, Quantum Appliances, Quantum Maestro, Quantum Scalable Chassis, Quantum Security Gateways, Quantum Security Management 8.0 High2024-11-07
CVE-2023-33175 ToUI 安全漏洞 — ToUI 9.1 Critical2023-05-30

CWE-914(动态识别变量的控制不恰当) 是常见的弱点类别,本平台收录该类弱点关联的 5 条 CVE 漏洞。