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

目标: 1000 元 · 已筹: 1359 元

100%

CWE-428 未经引用的搜索路径或元素 类漏洞列表 333

CWE-428 未经引用的搜索路径或元素 类弱点 333 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-428 是未加引号搜索路径或元素漏洞,属于路径处理缺陷。当路径元素含空格且未加引号时,系统可能解析错误,导致访问父目录资源。攻击者可通过在父目录放置恶意文件(如 Program.exe)诱导特权程序执行,从而提升权限。开发者应避免使用含空格的路径,或对路径元素严格加引号,确保解析准确,防止路径遍历和权限提升风险。

MITRE CWE 官方描述
CWE:CWE-428 未加引号的路径或元素 (Unquoted Search Path or Element) 英文:产品使用的搜索路径中包含一个未加引号的元素,该元素包含空格或其他分隔符。这可能导致产品访问父路径中的资源。 如果恶意用户能够访问文件系统,则可以通过插入类似 "C:\Program.exe" 的文件,由使用 WinExec 的特权程序执行,从而实现权限提升。
常见影响 (1)
Confidentiality, Integrity, Availability Execute Unauthorized Code or Commands
缓解措施 (3)
Implementation Properly quote the full search path before executing a program on the system.
Implementation Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range…
Implementation Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
代码示例 (1)
The following example demonstrates the weakness.
UINT errCode = WinExec( "C:\\Program Files\\Foo\\Bar", SW_SHOW );
Bad · C
CVE ID 标题 CVSS 风险等级 Published
CVE-2017-13993 i-SENS SmartLog Diabetes Management Software 安全漏洞 — i-SENS, Inc. SmartLog Diabetes Management Software 7.8 - 2017-10-04
CVE-2017-9644 ALC WebCTRL、i-Vu和SiteScan Web 安全漏洞 — Automated Logic Corporation WebCTRL, i-VU, SiteScan 6.4 - 2017-08-25
CVE-2014-0759 Schneider Electric Floating License Manager 非引用Windows搜索路径漏洞 — Floating License Manager 7.8 - 2014-02-28

CWE-428(未经引用的搜索路径或元素) 是常见的弱点类别,本平台收录该类弱点关联的 333 条 CVE 漏洞。