Katalog CWE

CWE-187 · Słabość

Partial String Comparison

Abstrakcja
Wariant
Status
Niekompletny
Dodano
19 lipca 2006
Ostatnia zmiana
11 grudnia 2025

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

Opis

The product performs a comparison that only examines a portion of a factor before determining whether there is a match, such as a substring, leading to resultant weaknesses.

For example, an attacker might succeed in authentication by providing a small password that matches the associated portion of the larger, correct password.

Skutki

  • Integrity, Access Control

    Alter Execution Logic; Bypass Protection Mechanism

Zapobieganie

  • Testing

    Thoroughly test the comparison scheme before deploying code into production. Perform positive testing as well as negative testing.

Przykłady podatności

Słabość nadrzędna

Kiedy powstaje

Dotyczy

Not Language-Specific, Not Technology-Specific

Uwagi

This is conceptually similar to other weaknesses, such as insufficient verification and regular expression errors. It is primary to some weaknesses.

Wpis z katalogu CWE 4.20.