Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-74 (输出中的特殊元素转义处理不恰当(注入)) — Vulnerability Class 375

375 vulnerabilities classified as CWE-74 (输出中的特殊元素转义处理不恰当(注入)). AI Chinese analysis included.

CWE-74 represents a critical input validation weakness where software constructs commands, data structures, or records using externally influenced input without properly neutralizing special elements. This flaw allows attackers to inject malicious syntax that alters the intended interpretation of the downstream component, leading to severe consequences such as unauthorized command execution, data manipulation, or system compromise. Exploitation typically occurs when user-supplied data is directly concatenated into queries or system calls without sanitization. To prevent this, developers must implement rigorous input validation, ensuring all external data is strictly checked against expected formats. Furthermore, utilizing parameterized queries, safe APIs, and context-specific encoding techniques ensures that special characters are treated as literal data rather than executable instructions, effectively neutralizing potential injection vectors before they reach the downstream processor.

MITRE CWE Description
The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.
Common Consequences (5)
ConfidentialityRead Application Data
Many injection attacks involve the disclosure of important information -- in terms of both data sensitivity and usefulness in further exploitation.
Access ControlBypass Protection Mechanism
In some cases, injectable code controls authentication; this may lead to a remote vulnerability.
OtherAlter Execution Logic
Injection attacks are characterized by the ability to significantly change the flow of a given process, and in some cases, to the execution of arbitrary code.
Integrity, OtherOther
Data injection attacks lead to loss of data integrity in nearly all cases as the control-plane data injected is always incidental to data recall or writing.
Non-RepudiationHide Activities
Often the actions performed by injected control code are unlogged.
Mitigations (2)
RequirementsProgramming languages and supporting technologies might be chosen which are not subject to these issues.
ImplementationUtilize an appropriate mix of allowlist and denylist parsing to filter control-plane syntax from all input.
Examples (2)
This example code intends to take the name of a user and list the contents of that user's home directory. It is subject to the first variant of OS command injection.
$userName = $_POST["user"]; $command = 'ls -l /home/' . $userName; system($command);
Bad · PHP
;rm -rf /
Attack
The following code segment reads the name of the author of a weblog entry, author, from an HTTP request and sets it in a cookie header of an HTTP response.
String author = request.getParameter(AUTHOR_PARAM); ... Cookie cookie = new Cookie("author", author); cookie.setMaxAge(cookieExpiration); response.addCookie(cookie);
Bad · Java
HTTP/1.1 200 OK ... Set-Cookie: author=Jane Smith ...
Result
CVE IDTitleCVSSSeverityPublished
CVE-2020-15146 Remote Code Execution in SyliusResourceBundle — SyliusResourceBundle 9.6 Critical2020-08-19
CVE-2020-15111 CRLF vulnerability in Fiber — fiber 4.2 Medium2020-07-20
CVE-2020-11060 Remote Code Execution in GLPI — GLPI 7.4 High2020-05-12
CVE-2020-7489 Schneider Electric EcoStruxure Machine Expert–Basic或SoMachine Basic 注入漏洞 — SoMachine Basic (all versions)EcoStruxure Machine Expert – Basic (all versions)Modicon M100 Logic Controller (all versions)Modicon M200 Logic Controller (all versions)Modicon M221 Logic Controller (all versions) 9.8 -2020-04-22
CVE-2020-11002 Remote Code Execution (RCE) vulnerability in dropwizard-validation — dropwizard 8.0 High2020-04-10
CVE-2020-7475 多款Schneider Electric产品注入漏洞 — EcoStruxure Control Expert (all versions prior to 14.1 Hot Fix), Unity Pro (all versions), Modicon M340 (all versions prior to V3.20), Modicon M580 (all versions prior to V3.10) 9.8 -2020-03-23
CVE-2020-5245 Remote Code Execution (RCE) vulnerability in dropwizard-validation — dropwizard-validation 7.9 High2020-02-24
CVE-2020-5219 Remote Code Execution in Angular Expressions — angular-expressions 8.7 High2020-01-24
CVE-2019-11275 CSV Injection in usage report downloaded from Pivotal Application Manager — Apps Manager 3.5 -2019-10-01
CVE-2019-1939 Cisco Webex Teams Logging Feature Command Execution Vulnerability — Cisco Webex Teams 8.8 -2019-09-05
CVE-2019-3562 Oculus Browser 跨站脚本漏洞 — Oculus Browser 6.1 -2019-04-29
CVE-2019-1680 Cisco Webex Business Suite Content Injection Vulnerability — Cisco Webex Business Suite 4.3 -2019-02-07
CVE-2018-18992 LCDS LAquis SCADA 注入漏洞 — LCDS Laquis SCADA 9.8 -2019-02-05
CVE-2018-18996 LCDS LAquis SCADA 安全漏洞 — LCDS Laquis SCADA 9.8 -2019-02-05
CVE-2017-16719 Moxa NPort 5110、5130和5150 安全漏洞 — Moxa NPort 5110, 5130, and 5150 7.5 -2017-11-16

Vulnerabilities classified as CWE-74 (输出中的特殊元素转义处理不恰当(注入)) represent 375 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.