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

目标: 1000 元 · 已筹: 1359 元

100%

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

CWE-88 参数注入或修改 类弱点 286 条 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-2023-44452 Xreader 安全漏洞 — Xreader 7.8 - 2024-05-03
CVE-2024-3684 GitHub Enterprise Server 安全漏洞 — Enterprise Server 8.0 High 2024-04-19
CVE-2024-32462 Flatpak 安全漏洞 — flatpak 8.4 High 2024-04-18
CVE-2024-3817 HashiCorp go-getter 安全漏洞 — Shared library 9.8 Critical 2024-04-17
CVE-2024-3367 Checkmk 安全漏洞 — Checkmk 6.5 Medium 2024-04-16
CVE-2024-3775 aEnrich a+HRD 参数注入漏洞 — a+HRD 5.3 Medium 2024-04-15
CVE-2024-22182 Commend WS203VICM 参数注入漏洞 — WS203VICM 8.6 High 2024-03-01
CVE-2024-20287 Cisco Business Wireless Access Points 安全漏洞 — Cisco Business Wireless Access Point Software 6.5 Medium 2024-01-17
CVE-2023-6634 WordPress Plugin LearnPress 安全漏洞 — LearnPress – WordPress LMS Plugin for Create and Sell Online Courses 8.1 High 2024-01-11
CVE-2023-6792 Palo Alto Networks PAN-OS 安全漏洞 — PAN-OS 5.5 Medium 2023-12-13
CVE-2023-49096 Jellyfin 参数注入漏洞 — jellyfin 7.7 High 2023-12-06
CVE-2023-6269 Atos Unify OpenScape SBC 安全漏洞 — OpenScape Session Border Controller (SBC) 10.0 Critical 2023-12-05
CVE-2023-0633 Docker Desktop 参数注入漏洞 — Docker Desktop 7.2 High 2023-09-25
CVE-2023-26143 Blamer 参数注入漏洞 — blamer 6.5 Medium 2023-09-19
CVE-2023-26310 OPPO Find X3 命令注入漏洞 — OPPO Find X3 7.4 High 2023-08-09
CVE-2023-34395 Apache Airflow 参数注入漏洞 — Apache Airflow ODBC Provider 9.8 - 2023-06-27
CVE-2022-40677 Fortinet FortiNAC 参数注入漏洞 — FortiNAC 7.2 High 2023-02-16
CVE-2022-4864 Froxlor 注入漏洞 — froxlor/froxlor 7.6 - 2022-12-30
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

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