mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-21 05:44:07 -07:00
Revert "[SECURITY] Fix OS command injection."
This commit is contained in:
parent
9620bfbf35
commit
39e9b6397b
115 changed files with 1980 additions and 1340 deletions
|
@ -16,7 +16,8 @@ switch ($action) {
|
|||
}
|
||||
|
||||
foreach ($backup as $value) {
|
||||
v_exec($cmd, [$user, $value], false);
|
||||
$value = escapeshellarg($value);
|
||||
exec (VESTA_CMD.$cmd." ".$user." ".$value, $output, $return_var);
|
||||
}
|
||||
|
||||
header("Location: /list/backup/exclusions");
|
||||
|
|
|
@ -12,7 +12,7 @@ $action = $_POST['action'];
|
|||
// Check token
|
||||
if ((!isset($_POST['token'])) || ($_SESSION['token'] != $_POST['token'])) {
|
||||
header('location: /login/');
|
||||
exit;
|
||||
exit();
|
||||
}
|
||||
|
||||
switch ($action) {
|
||||
|
@ -22,7 +22,8 @@ switch ($action) {
|
|||
}
|
||||
|
||||
foreach ($backup as $value) {
|
||||
v_exec($cmd, [$user, $value], false);
|
||||
$value = escapeshellarg($value);
|
||||
exec (VESTA_CMD.$cmd." ".$user." ".$value, $output, $return_var);
|
||||
}
|
||||
|
||||
header("Location: /list/backup/");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue