Skip to content

Commit b2bc4d0

Browse files
committed
MAGETWO-42038: RCE/DOS via cron.php
- Fixed security issue related to possible execution of shell commands or ShellShock.
1 parent 54b85e9 commit b2bc4d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pub/cron.php

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
if (empty($opt['group'])) {
2424
$opt['group'] = 'default';
2525
}
26+
foreach ($opt as $key => $value) {
27+
$opt[$key] = escapeshellarg($value);
28+
}
2629
$opt['standaloneProcessStarted'] = '0';
2730
$params = $_SERVER;
2831
$params[StoreManager::PARAM_RUN_CODE] = 'admin';

0 commit comments

Comments
 (0)