CWE-426 不可信的搜索路径 类弱点 249 条 CVE 漏洞汇总,含 AI 中文分析。
CWE-426 属于不信任搜索路径漏洞,指程序使用外部提供的路径查找关键资源,导致可能访问不受控的文件。攻击者常通过操纵环境变量或配置,将恶意程序或数据注入搜索路径,从而执行任意代码或窃取敏感信息。开发者应避免使用动态搜索路径,改用硬编码的绝对路径,或严格验证路径来源及权限,确保仅加载受信任目录下的资源,以阻断攻击链。
#define DIR "/restricted/directory" char cmd[500]; sprintf(cmd, "ls -l %480s", DIR); /* Raise privileges to those needed for accessing DIR. */ RaisePrivileges(...); system(cmd); DropPrivileges(...); ...
The user sets the PATH to reference a directory under the attacker's control, such as "/my/dir/". The attacker creates a malicious program called "ls", and puts that program in /my/dir The user executes the program. When system() is executed, the shell consults the PATH to find the ls program The program finds the attacker's malicious program, "/my/dir/ls". It doesn't find "/bin/ls" because PATH does not contain "/bin/". The program executes the attacker's malicious program with the raised privileges.
... String home = System.getProperty("APPHOME"); String cmd = home + INITCMD; java.lang.Runtime.getRuntime().exec(cmd); ...
| CVE ID | 标题 | CVSS | 风险等级 | Published |
|---|---|---|---|---|
| CVE-2019-17100 | K7 Computing Bitdefender Total Security 代码问题漏洞 — bdserviceshost.exe | 5.2 | Medium | 2020-01-27 |
| CVE-2019-6826 | Schneider Electric SoMachine HVAC 代码问题漏洞 — SoMachine HVAC | 7.8 | - | 2019-09-17 |
| CVE-2019-10971 | Omron Network Configurator for DeviceNet Safety 代码问题漏洞 — Network Configurator for DeviceNet Safety | 7.8 | - | 2019-06-12 |
| CVE-2019-5429 | FileZilla 代码问题漏洞 — FileZilla | 8.4 | - | 2019-04-29 |
| CVE-2018-7365 | ZTE uSmartView ZXCLOUD iRAI 安全漏洞 — uSmartView | 8.8 | - | 2018-12-20 |
| CVE-2018-12449 | NAVER Whale Browser installer 安全漏洞 — Whale Browser Installer | 7.8 | - | 2018-10-11 |
| CVE-2018-10904 | glusterfs server 代码问题漏洞 — glusterfs | 8.8 | - | 2018-09-04 |
| CVE-2018-10875 | Ansible 安全漏洞 — ansible | 7.3 | - | 2018-07-13 |
| CVE-2018-10874 | Ansible 代码问题漏洞 — ansible | 7.8 | - | 2018-07-02 |
CWE-426(不可信的搜索路径) 是常见的弱点类别,本平台收录该类弱点关联的 249 条 CVE 漏洞。