We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi dev, I would like to point out a security issue in the Bcrypt class:
public function verify($input, $existingHash) { $hash = crypt($input, $existingHash); return $hash === $existingHash; }
A simple strict equals sign === is used for hash comparison, which is vulnerable to timing attack. The hash_equals() function should be used (http://php.net/manual/en/function.hash-equals.php) for comparing hashes. see also: https://www.php.net/manual/en/function.crypt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi dev,
I would like to point out a security issue in the Bcrypt class:
A simple strict equals sign === is used for hash comparison, which is vulnerable to timing attack.
The hash_equals() function should be used (http://php.net/manual/en/function.hash-equals.php) for comparing hashes.
see also: https://www.php.net/manual/en/function.crypt
The text was updated successfully, but these errors were encountered: