We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a35788d commit 5cc28a0Copy full SHA for 5cc28a0
app/Http/Middleware/HMACAuthorization.php
@@ -170,7 +170,7 @@ protected function validateIPAccess()
170
*/
171
protected function validateContents()
172
{
173
- if (base64_decode($this->hash()) !== $this->generateSignature()) {
+ if (! hash_equals(base64_decode($this->hash()), $this->generateSignature())) {
174
throw new BadRequestHttpException('The HMAC for the request was invalid.');
175
}
176
0 commit comments