CWE-1023: Incomplete Comparison with Missing Factors

ClassIncomplete

The product performs a comparison between entities that must consider multiple factors or characteristics of each entity, but the comparison does not include one or more of these factors.

View on MITRE
Back to CWE Lookup

Extended Description

An incomplete comparison can lead to resultant weaknesses, e.g., by operating on the wrong object or making a security decision without considering a required factor.

Technical Details

Structure
Simple

Applicable To

Languages
Not Language-Specific
Platforms

Frequently Asked Questions

What is CWE-1023: Incomplete Comparison with Missing Factors?+

CWE-1023: Incomplete Comparison with Missing Factors is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product performs a comparison between entities that must consider multiple factors or characteristics of each entity, but the comparison does not include one or more of these factors. An incomplete comparison can lead to resultant weaknesses, e.g., by operating on the wrong object or making a security decision without considering a required factor.

What are the security consequences of Incomplete Comparison with Missing Factors?+

If exploited, CWE-1023 (Incomplete Comparison with Missing Factors) it can compromise Integrity and Access Control, leading to outcomes such as Alter Execution Logic and Bypass Protection Mechanism.

How do you prevent or mitigate Incomplete Comparison with Missing Factors?+

Recommended mitigations for CWE-1023 include: Thoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.

Which programming languages are affected by Incomplete Comparison with Missing Factors?+

CWE-1023 commonly affects Not Language-Specific. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What are real-world examples of Incomplete Comparison with Missing Factors?+

MITRE documents real CVEs mapped to CWE-1023, including CVE-2005-2782 and CVE-2014-6394. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-1023 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More