[Forgot Password]
Login  Register Subscribe

30479

 
 

423868

 
 

249982

 
 

909

 
 

195748

 
 

282

Paid content will be excluded from the download.


Download | Alert*
CWE
view XML

Incorrect Semantic Object Comparison

ID: 596Date: (C)2012-05-14   (M)2022-10-10
Type: weaknessStatus: INCOMPLETE
Abstraction Type: Base





Description

The software does not correctly compare two objects based on their conceptual content.

Applicable Platforms
None

Time Of Introduction

  • Implementation

Common Consequences

ScopeTechnical ImpactNotes
Other
 
Other
 
 

Detection Methods

NameDescriptionEffectivenessNotes
Manual Static Analysis
 
Requires domain-specific knowledge to determine if the comparison is incorrect.
 
  

Potential Mitigations
None

Relationships

Related CWETypeViewChain
CWE-596 ChildOf CWE-907 Category CWE-888  

Demonstrative Examples   (Details)

  1. For example, let's say you have two truck objects that you want to compare for equality. Truck objects are defined to be the same if they have the same make, the same model, and were manufactured in the same year. A Semantic Incorrect Object Comparison would occur if only two of the three factors were checked for equality. So if only make and model are compared and the year is ignored, then you have an incorrect object comparison.

White Box Definitions
None

Black Box Definitions
None

Taxynomy Mappings
None

References:
None

© SecPod Technologies