Skip to content

Commit 9b7f584

Browse files
author
Stanislav Idolov
committed
MAGETWO-45757: CSRF Vulnerability on Cart Checkout
1 parent 1844c43 commit 9b7f584

File tree

1 file changed

+4
-0
lines changed
  • app/code/Magento/Checkout/Controller/Cart

1 file changed

+4
-0
lines changed

app/code/Magento/Checkout/Controller/Cart/Delete.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ class Delete extends \Magento\Checkout\Controller\Cart
1515
*/
1616
public function execute()
1717
{
18+
if (!$this->_formKeyValidator->validate($this->getRequest())) {
19+
return $this->resultRedirectFactory->create()->setPath('*/*/');
20+
}
21+
1822
$id = (int)$this->getRequest()->getParam('id');
1923
if ($id) {
2024
try {

0 commit comments

Comments
 (0)