CWE-597Variant

Use of Wrong Operator in String Comparison

Draft in the CWE catalog ยท 3 CVEs mapped

3
CVEs mapped
5.0
Median CVSS
What it is

The product uses the wrong operator when comparing a string, such as using "==" when the .equals() method should be used instead.

Recent examples
5.0cvss
CVE-2021-4259

phpRedisAdmin login.inc.php authHttpDigest wrong operator in string comparison

A vulnerability was found in phpRedisAdmin up to 1.16.1. It has been classified as problematic. This affects the function authHttpDigest of the file includes/login.inc.php. The manipulation of the argument response leads to use of wrong operator in string comparison. Upgrading to version 1.16.2 is able to address this issue. The name of the patch is 31aa7661e6db6f4dffbf9a635817832a0a11c7d9. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-216267.

MEDIUMno explanation yet
1%
epss
5.9cvss
CVE-2022-36072

SilverwareGames.io used == for hashing instead of ===

SilverwareGames.io is a social network for users to play video games online. In version 1.1.8 and prior, due to an unobvious feature of PHP, hashes generated by built-in functions and starting with the `0e` symbols were being handled as zero multiplied with the `e` number. Therefore, the hash value was equal to 0. The maintainers fixed this in version 1.1.9 by using `===` instead of `==` in comparisons where it is possible (e.g. on sign in/sign up handlers).

MEDIUMno explanation yet
1%
epss
4.8cvss
CVE-2021-3797

Use of Wrong Operator in String Comparison in hestiacp/hestiacp

โš ๏ธ A sneaky string comparison in HestiaCP could lead to unexpected behavior! Just one wrong operator is all it takes to tip the scales. ๐Ÿ” Think of it like a restaurant that misreads orders due to a simple clerical error โ€” when the server thinks 'larger fries' means 'no fries,' the customer's meal is ruined! ๐Ÿ” An attacker could manipulate string comparisons, potentially leading to misconfigurations or unexpected access controls. This might allow unauthorized actions within the system, which could have ripple effects throughout your hosting environment.

MEDIUM
1%
epss
The record
Technical detail
CWE ID
CWE-597
Abstraction
Variant
Structure
Simple
Status
Draft