CWE-697 — Incorrect Comparison
CWE-697: Incorrect Comparison
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Pillar |
| Status | Incomplete |
| Likelihood of exploit | — |
Description
The product compares two entities in a security-relevant context, but the comparison is incorrect.
This Pillar covers several possibilities: the comparison checks one factor incorrectly; the comparison should consider multiple factors, but it does not check at least one of those factors at all; the comparison checks the wrong factor.
Common consequences
- Other: Varies by Context
Mitigations
(none listed)
References
- CWE page: https://cwe.mitre.org/data/definitions/697.html
- CWE list: https://cwe.mitre.org/data/index.html