389
Mapped Taxonomy Name Node ID Fit Mapped Node Name
Software Fault Patterns SFP24 Tainted input to command
Related Attack Patterns
CAPEC-ID Attack Pattern Name
6 Argument Injection
15 Command Delimiters
References
[REF-62]Mark Dowd, John McDonald and Justin Schuh. "The Art of Software Security
Assessment". 1st Edition. 2006. Addison Wesley.
CWE-147: Improper Neutralization of Input Terminators
Weakness ID : 147
Structure : Simple
Abstraction : Variant
Description
The product receives input from an upstream component, but it does not neutralize or incorrectly
neutralizes special elements that could be interpreted as input terminators when they are sent to a
downstream component.
Extended Description
For example, a "." in SMTP signifies the end of mail message data, whereas a null character can
be used for the end of a string.
Relationships
The table(s) below shows the weaknesses and high level categories that are related to this
weakness. These relationships are defined as ChildOf, ParentOf, MemberOr and give insight to
similar items that may exist at higher and lower levels of abstraction. In addition, relationships such
as PeerOf and CanAlsoBe are defined to show similar weaknesses that may want to be explored.
Relevant to the view "Research Concepts" (CWE-1000)
Nature Type ID Name Page
ChildOf 138 Improper Neutralization of Special Elements 373
ParentOf 626 Null Byte Interaction Error (Poison Null Byte) 1394
Applicable Platforms
Language : Not Language-Specific (Prevalence = Undetermined)
Common Consequences
Scope Impact Likelihood
Integrity Unexpected State
Potential Mitigations
Developers should anticipate that terminators will be injected/removed/manipulated in the input
vectors of their product. Use an appropriate combination of denylists and allowlists to ensure only
valid, expected and appropriate input is processed by the system.
Phase: Implementation
Strategy = Input Validation
Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use
a list of acceptable inputs that strictly conform to specifications. Reject any input that does not
CWE Version 4.14
CWE-147: Improper Neutralization of Input Terminators
CWE-147: Improper Neutralization of Input Terminators