VariantIncomplete
CWE-768Incorrect Short Circuit Evaluation
Category: other
Description
The product contains a conditional statement with multiple logical expressions in which one of the non-leading expressions may produce side effects. This may lead to an unexpected state in the program after the execution of the conditional, because short-circuiting logic may prevent the side effects from occurring.
Common consequences· 1
- Confidentiality / Integrity / Availability — Varies by ContextWidely varied consequences are possible if an attacker is aware of an unexpected state in the product after a conditional. It may lead to information exposure, a system crash, or even complete attacker control of the system.
Potential mitigations· 1
- [Implementation]Minimizing the number of statements in a conditional that produce side effects will help to prevent the likelihood of short circuit evaluation to alter control flow in an unexpected way.
References
Related by meaning· 6
Nearest entities by semantic similarity across the cs-graph corpus.