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).
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
| Ambito | Impatto |
| 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.)
Tutte le 3 CVE di tipo CWE-597, con andamento e prevenzione