CWE-184: Incomplete List of Disallowed Inputs

Export to Word

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.

Extended Description

N/A


ThreatScore

Threat Mapped score: 0.0

Industry: Finiancial

Threat priority: Unclassified


Observed Examples (CVEs)

Related Attack Patterns (CAPEC)


Attack TTPs

N/A

Modes of Introduction

Phase Note
Implementation Developers often try to protect their products against malicious input by checking against lists of known bad inputs, such as special characters that can invoke new commands. However, such lists often only address the most well-known bad inputs. As a quick fix, developers might rely on these lists instead of addressing the root cause of the issue. See [REF-141].
Architecture and Design The design might rely solely on detection of malicious inputs as a protection mechanism.

Common Consequences

Potential Mitigations

Applicable Platforms


Demonstrative Examples

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

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

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

Notes

← Back to CWE list