CWE-1471
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.