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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CWE-791 (特殊元素过滤不完全) — Vulnerability Class 14

14 vulnerabilities classified as CWE-791 (特殊元素过滤不完全). AI Chinese analysis included.

CWE-791 represents an input validation weakness where software fails to adequately sanitize special characters or structural elements within data received from external sources. This oversight typically enables attackers to inject malicious payloads, such as cross-site scripting scripts or command injection sequences, by bypassing incomplete filtering mechanisms. When these unfiltered elements reach downstream components like interpreters or parsers, they can alter execution logic, leading to severe security breaches including data theft or system compromise. Developers prevent this vulnerability by implementing robust, context-aware input validation strategies that strictly whitelist acceptable characters rather than relying on blacklist approaches. Utilizing parameterized queries, encoding special symbols, and applying comprehensive sanitization libraries ensures that all incoming data is thoroughly processed, thereby neutralizing potential injection vectors before they interact with critical system functions.

MITRE CWE Description
The product receives data from an upstream component, but does not completely filter special elements before sending it to a downstream component.
Common Consequences (1)
Integrity Unexpected State
Examples (1)
The following code takes untrusted input and uses a regular expression to filter "../" from the input. It then appends this result to the /home/user/ directory and attempts to read the file in the final resulting path.
my $Username = GetUntrustedInput(); $Username =~ s/\.\.\///; my $filename = "/home/user/" . $Username; ReadAndSendFile($filename);
Bad · Perl
../../../etc/passwd
Attack

Vulnerabilities classified as CWE-791 (特殊元素过滤不完全) represent 14 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.