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

CWE-144 Individual Dictionary Definition (Draft 9)

Failure to Sanitize Line Delimiters
Weakness ID
Status: Draft

144 (Weakness Variant)

Description

Summary

Line delimiters injected into an application can be used to compromise a system. As data is parsed, an injected/absent/malformed delimiter may cause the process to take unexpected actions.

Potential Mitigations

Developers should anticipate that line delimiters will be injected/removed/manipulated in the input vectors of their software system. Use an appropriate combination of black lists and white lists to ensure only valid, expected and appropriate input is processed by the system.

Observed Examples
ReferenceDescription
CVE-2002-0267Linebreak in field of PHP script allows admin privileges when written to data file.
Context Notes

Depending on the language and syntax being used, this could be the same as the record delimiter.

Relationships
NatureTypeIDName
ChildOfWeakness BaseWeakness BaseWeakness Base140Failure to Sanitize Delimiters
CanAlsoBeWeakness BaseWeakness BaseWeakness Base93Failure to Sanitize CRLF Sequences (aka 'CRLF Injection')
Source Taxonomies

PLOVER - Line Delimiter

Applicable Platforms

All

Page Last Updated: April 21, 2008