CWE
Home > CWE List > CWE-92 Individual Dictionary Definition (Draft 9)   View the CWE List

CWE-92 Individual Dictionary Definition (Draft 9)

Custom Special Character Injection
Weakness ID
Status: Incomplete

92 (Weakness Base)

Description

Summary

The software does not properly filter or quote special characters or reserved words that are used in a custom or proprietary language or representation that is used by the product, allowing attackers to modify the syntax, content, or commands before they are processed by an end system.

Weakness Ordinality

Primary (Weakness exists independent of other weaknesses)

Causal Nature

Explicit (This is an explicit weakness resulting from behavior of the developer)

Potential Mitigations

Assume all input is malicious. Use an appropriate combination of black lists and white lists to appropriately filter or quote custom special characters or reserved words in user-controlled input.

Observed Examples
ReferenceDescription
CVE-2001-0677Read arbitrary files from mail client by providing a special MIME header that is internally used to store pathnames for attachments.
CVE-2000-0703Setuid program does not cleanse special escape sequence before sending data to a mail program, causing the mail program to process those sequences
CVE-2003-0020Multi-channel issue. Terminal escape sequences not filtered from log files.
CVE-2003-0083Multi-channel issue. Terminal escape sequences not filtered from log files.
Context Notes

Factors: can be primary to interaction errors.

Research Gaps

Under-studied. It is likely that these issues are fairly common in applications that use their own custom format for configuration files, logs, meta-data, messaging, etc. They would only be found by accident or with a focused effort based on an understanding of the format.

Relationships
NatureTypeIDName
ChildOfWeakness ClassWeakness ClassWeakness Class74Failure to Sanitize Data into a Different Plane (aka 'Injection')
Source Taxonomies

PLOVER - Custom Special Character Injection

Applicable Platforms

All

Related Attack Patterns
CAPEC-IDAttack Pattern Name
81Web Logs Tampering
93Log Injection-Tampering-Forging
Page Last Updated: April 22, 2008