CWE-184: Incomplete List of Disallowed Inputs

Description

The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete, leading to resultant weaknesses.

Submission Date :

July 19, 2006, midnight

Modification Date :

2023-06-29 00:00:00+00:00

Organization :

MITRE
Extended Description

Developers often try to protect their products against malicious input by performing tests against inputs that are known to be bad, such as special characters that can invoke new commands. However, such lists often only account for the most well-known bad inputs. Attackers may be able to find other malicious inputs that were not expected by the developer, allowing them to bypass the intended protection mechanism.

Example Vulnerable Codes

Example - 1

The following code attempts to stop XSS attacks by removing all occurences of "script" in an input string.

return input.replaceAll("script", mask);public String removeScriptTags(String input, String mask) {}

Because the code only checks for the lower-case "script" string, it can be easily defeated with upper-case script tags.

Visit http://cwe.mitre.org/ for more details.

© cvefeed.io
Latest DB Update: Nov. 19, 2024 12:25