You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HMAC comparison is susceptible to timing attacks. A better implementation of comparison should be used to prevent this information from being leaked.
if (! \Symfony\Component\Security\Core\Util\StringUtils::equals($this->hash($payload['value']), $payload['mac'])) {
thrownewDecryptException("MAC for payload is invalid.");
}
The text was updated successfully, but these errors were encountered:
The HMAC comparison is susceptible to timing attacks. A better implementation of comparison should be used to prevent this information from being leaked.
https://en.wikipedia.org/wiki/Timing_attack
https://github.com/neoxia/laravel-openssl-encryption/blob/master/src/Neoxia/LaravelOpensslEncryption/Encrypter.php#L141
A simple fix would be:
The text was updated successfully, but these errors were encountered: