All rules →
Rules / PHP
SHIELD-PHP-016

Type juggling in loose comparison of hashes

highPHPCWE-697CVSS 8.1

What it detects

A loose == comparison against a hash function result allows type juggling authentication bypass.

How to fix

Use strict === comparison or hash_equals() for constant-time hash comparison.

Scan your repo freeFull documentation
Back to all rules
SHIELD-PHP-016: Type juggling in loose comparison of hashes — Zennoxa Shield