Skip to content

Commit 7c526bc

Browse files
authored
Merge pull request from GHSA-crf2-xm6x-46p6
1 parent 4c02c10 commit 7c526bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/core/Mage/Adminhtml/Controller/Action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ protected function _validateSecretKey()
389389
}
390390

391391
if (!($secretKey = $this->getRequest()->getParam(Mage_Adminhtml_Model_Url::SECRET_KEY_PARAM_NAME, null))
392-
|| $secretKey != Mage::getSingleton('adminhtml/url')->getSecretKey()) {
392+
|| !hash_equals(Mage::getSingleton('adminhtml/url')->getSecretKey(), $secretKey)) {
393393
return false;
394394
}
395395
return true;

0 commit comments

Comments
 (0)