OWASP/phpsec

[SECURITY] phpsec/user.php - Timing attack on hash comparison

Opened this issue · 0 comments

Note: I have been asked to log all the security issues that I have found by an OWASP contributor to support the decision to abandon this project. My personal opinion is that all of the code in this repository is beyond repair and that it is not wise to attempt to fix it.

hash_equals should be used to compare hashes to prevent a timing attack.

if ($newHash === $oldHash)