1. Archivio CVE
  2. 2022
  3. CVE-2022-36072

CVE-2022-36072

5.9 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N 5.9 – Media

Descrizione

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).

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
silverwaregames silverwaregames < 1.1.9 –

Tipo di vulnerabilità

CWE-597 Use of Wrong Operator in String Comparison

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

Impatto sui sistemi

AmbitoImpatto
Altro Dipende dal contesto

Come si previene

Sviluppo Within Java, use .equals() to compare string values. Within JavaScript, use == to compare string values. Within PHP, use == to compare a numeric value to a string value. (PHP converts the string to a number.)

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 3 CVE di tipo CWE-597, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org