hash_equals() in /reset/mail/

Thanks to @divinity76
This commit is contained in:
myvesta 2022-07-12 18:10:31 +02:00 committed by GitHub
commit e65af22a54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -149,7 +149,7 @@ if ((!empty($_POST['email'])) && (!empty($_POST['password'])) && (!empty($_POST[
$n_hash = '{MD5}'.$n_hash;
// Change password
if ( $v_hash == $n_hash ) {
if ( hash_equals($v_hash, $n_hash ) ) {
$v_new_password = tempnam("/tmp","vst");
$fp = fopen($v_new_password, "w");
fwrite($fp, $_POST['new']."\n");