CWE-1097: Persistent Storable Data Element without Associated Comparison Control Element

ID CWE-1097
Abstraction Base
Structure Simple
Status Incomplete
The product uses a storable data element that does not have all of the associated functions or methods that are necessary to support comparison.

For example, with Java, a class that is made persistent requires both hashCode() and equals() methods to be defined.

This issue can prevent the product from running reliably, due to incorrect or unexpected comparison results. If the relevant code is reachable by an attacker, then this reliability problem might introduce a vulnerability.

Relationships

View Weakness
# ID View Status # ID Name Abstraction Structure Status
CWE-1000 Research Concepts Draft CWE-1076 Insufficient Adherence to Expected Conventions Class Simple Incomplete
CWE-1305 CISQ Quality Measures (2020) Incomplete CWE-595 Comparison of Object References Instead of Object Contents Variant Simple Incomplete
Loading...
Loading...