Skip to content

Commit 3514a94

Browse files
committed
MAGETWO-42038: RCE/DOS via cron.php
- Fixed the broken tool.
1 parent 861e99e commit 3514a94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ public function execute(\Magento\Framework\Event\Observer $observer)
148148
$jobGroupsRoot = $this->_config->getJobs();
149149

150150
foreach ($jobGroupsRoot as $groupId => $jobsRoot) {
151-
if ($this->_request->getParam('group') !== null && $this->_request->getParam('group') != $groupId) {
151+
if ($this->_request->getParam('group') !== null
152+
&& $this->_request->getParam('group') !== escapeshellarg($groupId)
153+
&& $this->_request->getParam('group') !== $groupId) {
152154
continue;
153155
}
154156
if (($this->_request->getParam(self::STANDALONE_PROCESS_STARTED) !== '1') && (

0 commit comments

Comments
 (0)