Use \hash_equals in CryptoUtil::validateSignedString()
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 14 Oct 2020 09:24:23 +0000 (11:24 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 15 Oct 2020 14:00:39 +0000 (16:00 +0200)
wcfsetup/install/files/lib/util/CryptoUtil.class.php

index 0856d7510d6e8d2e59f2c079c886bdab8fce5cea..9009f91d2b47461d648fbe2d0f503075e2291542 100644 (file)
@@ -50,7 +50,7 @@ final class CryptoUtil {
                list($signature, $value) = $parts;
                $value = base64_decode($value);
                
-               return self::secureCompare($signature, self::getSignature($value));
+               return \hash_equals($signature, self::getSignature($value));
        }
 
        /**