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

目标: 1000 元 · 已筹: 1336

100%

CWE-88 参数注入或修改 类漏洞列表 238

CWE-88 参数注入或修改 类弱点 238 条 CVE 漏洞汇总,含 AI 中文分析。

CWE-88 属于参数注入漏洞,指程序在构建外部命令字符串时,未正确界定参数边界。攻击者通过注入特殊字符(如空格或引号),将恶意参数伪装成合法选项,从而执行非预期的系统命令。开发者应避免直接拼接用户输入,转而使用接受独立参数数组的 API 调用命令,或严格过滤输入中的特殊字符,以确保命令解析的准确性与安全性。

MITRE CWE 官方描述
CWE:CWE-88 命令中的参数分隔符处理不当('Argument Injection') 英文:产品为在另一个控制域中的独立组件执行的命令构建字符串,但未正确分隔该命令字符串内的预期参数、选项或开关。 在使用字符串插值创建命令时,开发人员可能假设仅会处理其指定的参数/选项。当程序员以某种方式对命令进行编码以防止恶意提供单独的命令时(例如,针对 shell 元字符的情况),这种假设可能会更加强烈。在构建命令时,开发人员可能会使用空格或其他分隔符,这些分隔符在命令执行时用于分隔参数。然而,如果攻击者能够提供包含参数分隔符的不可信输入,则生成的命令将包含比开发人员预期更多的参数。攻击者随后可能能够改变命令的行为。根据多余参数所支持的功能,这可能会产生与安全相关的后果。
常见影响 (1)
Confidentiality, Integrity, Availability, Other Execute Unauthorized Code or Commands, Alter Execution Logic, Read Application Data, Modify Application Data
An attacker could include arguments that allow unintended commands or code to be executed, allow sensitive data to be read or modified or could cause other unintended behavior.
缓解措施 (5)
Implementation Where possible, avoid building a single string that contains the command and its arguments. Some languages or frameworks have functions that support specifying independent arguments, e.g. as an array, which is used to automatically perform the appropriate quoting or escaping while building the command. For example, in PHP, escapeshellarg() can be used to escape a single argument to system(), or …
Effectiveness: High
Architecture and Design Understand all the potential areas where untrusted inputs can enter your product: parameters or arguments, cookies, anything read from the network, environment variables, request headers as well as content, URL components, e-mail, files, databases, and any external systems that provide data to the application. Perform input validation at well-defined interfaces.
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 Directly convert your input type into the expected data type, such as using a conversion function that translates a string into a number. After converting to the expected data type, ensure that the input's values fall within the expected range of allowable values and that multi-field consistencies are maintained.
Implementation Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180, CWE-181). Make sure that your application does not inadvertently decode the same input twice (CWE-174). Such errors could be used to bypass allowlist schemes by introducing dangerous inputs after they have been checked. Use libraries such as the OWASP ESAPI Canonicalizat…
代码示例 (2)
Consider the following program. It intends to perform an "ls -l" on an input filename. The validate_name() subroutine performs validation on the input to make sure that only alphanumeric and "-" characters are allowed, which avoids path traversal (CWE-22) and OS command injection (CWE-78) weaknesses. Only filenames like "abc" or "d-e-f" are intended to be allowed.
my $arg = GetArgument("filename"); do_listing($arg); sub do_listing { my($fname) = @_; if (! validate_name($fname)) { print "Error: name is not well-formed!\n"; return; } # build command my $cmd = "/bin/ls -l $fname"; system($cmd); } sub validate_name { my($name) = @_; if ($name =~ /^[\w\-]+$/) { return(1); } else { return(0); } }
Bad · Perl
if ($name =~ /^\w[\w\-]+$/) ...
Good · Perl
CVE-2016-10033 / [REF-1249] provides a useful real-world example of this weakness within PHPMailer.
CVE ID 标题 CVSS 风险等级 Published
CVE-2022-44731 Siemens部分产品 参数注入漏洞 — SIMATIC WinCC OA V3.15 5.4 Medium 2022-12-13
CVE-2022-23740 GitHub Enterprise Server 参数注入漏洞 — GitHub Enterprise Server 8.8 - 2022-11-23
CVE-2022-20930 Cisco SD-WAN 操作系统命令注入漏洞 — Cisco SD-WAN vManage 6.7 Medium 2022-09-30
CVE-2022-1399 Device42 参数注入漏洞 — CMDB 9.1 Critical 2022-08-16
CVE-2022-36322 JetBrains TeamCity 参数注入漏洞 — TeamCity 5.4 Medium 2022-07-20
CVE-2022-31084 LDAP Account Manager 参数注入漏洞 — lam 8.8 - 2022-06-27
CVE-2022-26532 Zyxel USG/ZyWALL 操作系统命令注入漏洞 — USG/ZyWALL series firmware 7.8 High 2022-05-24
CVE-2022-29215 RegionProtect 参数注入漏洞 — RegionProtect 7.5 High 2022-05-21
CVE-2021-43809 Bundler 参数注入漏洞 — rubygems 6.7 Medium 2021-12-08
CVE-2021-34718 Cisco IOS XR 参数注入漏洞 — Cisco IOS XR Software 8.1 High 2021-09-09
CVE-2021-3045 Palo Alto Networks PAN-OS 参数注入漏洞 — PAN-OS 4.9 Medium 2021-08-11
CVE-2021-3540 Mobileiron MobileIron Core参数注入漏洞 — MobileIron Core 6.5 Medium 2021-07-22
CVE-2021-1531 Cisco Modeling Labs 参数注入漏洞 — Cisco Modeling Labs 8.8 High 2021-05-22
CVE-2021-29472 composer 参数注入漏洞 — composer 8.8 High 2021-04-27
CVE-2020-7851 Innorix Web-Based File Transfer 参数注入漏洞 — INNORIX Agent.exe 7.8 High 2021-04-19
CVE-2021-1485 Cisco IOS XR 参数注入漏洞 — Cisco IOS XR Software 6.6 Medium 2021-04-08
CVE-2020-7850 NBBDownloader.ocx ActiveX 参数注入漏洞 — NBBDownloader.ocx 7.8 High 2021-03-29
CVE-2021-21386 Dw1 apkleaks 参数注入漏洞 — apkleaks 9.3 Critical 2021-03-24
CVE-2021-21384 shescape 参数注入漏洞 — shescape 6.3 Medium 2021-03-18
CVE-2021-24030 Facebook Gameroom 参数注入漏洞 — Facebook Gameroom 9.8 - 2021-03-10
CVE-2020-27129 Cisco SD-WAN vManage Software 参数注入漏洞 — Cisco SD-WAN vManage 6.7 Medium 2020-11-06
CVE-2020-3380 Cisco Data Center Network Manager 参数注入漏洞 — Cisco Data Center Network Manager 6.7 - 2020-07-16
CVE-2020-7496 Schneider Electric EcoStruxure Operator Terminal Expert 参数注入漏洞 — EcoStruxure Operator Terminal Expert 3.1 Service Pack 1 and prior (formerly known as Vijeo XD) 7.8 - 2020-06-16
CVE-2020-1738 Ansible 参数注入漏洞 — ansible 3.9 Low 2020-03-16
CVE-2019-5012 Wacom driver 参数注入漏洞 — Wacom 7.8 - 2019-10-24
CVE-2019-5013 Wacom driver 参数注入漏洞 — Wacom 7.8 - 2019-10-24
CVE-2019-3931 Crestron Electronics AM-100和Crestron Electronics AM-101 参数注入漏洞 — Crestron AirMedia 8.8 - 2019-04-30
CVE-2017-1001003 Math.js 安全漏洞 — math.js 9.8 - 2017-11-27

CWE-88(参数注入或修改) 是常见的弱点类别,本平台收录该类弱点关联的 238 条 CVE 漏洞。