Wednesday 02 December 2026 19:45:22 GMT+01:00

Netcrook

HomeManifesto
News
Techcrook
Geocrook
WikicrookTeamAppContact
EnglishItaliano

WIKICROOK

Partial string comparison

A flawed check that matches only part of an identifier instead of requiring exact equality.

Partial string comparison checks whether one string matches only part of another, rather than requiring the complete values to be equal. This can be useful for searching or filtering, but it is unsafe when an identifier must select one exact record.

In cyber security, a partial match can cause software to authorize the wrong object or apply a destructive action to unintended data. For example, a quota-eviction routine that compares only the textual prefixes of DICOM Study Instance UIDs may delete a different study whose identifier begins with the same characters. Use exact equality for security-sensitive decisions such as authorization, deletion, replacement, and retention; validate identifiers consistently and test for values that share prefixes.

← WIKICROOK index