CWE-1471

Class Abstraction Level
Pillar — Highest-level weakness category
Class — Abstract, language-independent
Base — Specific enough to detect
Variant — Tied to specific technology
Compound — Requires multiple weaknesses
Incomplete MITRE CWE Status
Stable — Fully reviewed and complete
Draft — Under development, may change
Incomplete — Partially defined by MITRE
Deprecated — No longer recommended
Obsolete — Replaced by another CWE
Insufficiently Controlled Parser Differential

Description

The product uses a common specification or format that is shared between multiple components or entities, but the components have different parsers that can interpret the same input in different, security-relevant ways.

Consequences

Integrity, Authorization, Access Control — Gain Privileges or Assume Identity, Bypass Protection Mechanism, Hide Activities, Alter Execution Logic, Unexpected State, Varies by Context

Mitigations

Phase: Architecture and Design, Implementation

If possible, ensure that the same parser is used by each component.

Detection

Automated Dynamic Analysis

The different product components or entities could be tested using inputs with a variety of manipulations, such as differences in capitalization, whitespace, "boundary" tags, etc. The behavior of each component could be evaluated to see if the inputs are handled consistently.