Katalog CWE

CWE-1025 · Słabość

Comparison Using Wrong Factors

Abstrakcja
Bazowa
Status
Niekompletny
Dodano
4 stycznia 2018
Ostatnia zmiana
30 kwietnia 2026

Podatności CVE z tą słabościąPełny wpis na cwe.mitre.org ↗

Opis

The code performs a comparison between two entities, but the comparison examines the wrong factors or characteristics of the entities, which can lead to incorrect results and resultant weaknesses.

Skutki

  • Other

    Varies by Context

    This can lead to incorrect results and resultant weaknesses. For example, the code might inadvertently compare references to objects, instead of the relevant contents of those objects, causing two "equal" objects to be considered unequal.

Słabość nadrzędna

Słabości podrzędne

Kiedy powstaje

Dotyczy

Not Language-Specific

Wpis z katalogu CWE 4.20.