mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -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
|
@ -3,14 +3,14 @@
|
|||
error_reporting(NULL);
|
||||
ob_start();
|
||||
session_start();
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
||||
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
if (!empty($_GET['hostname'])) {
|
||||
v_exec('v-restart-system', ['yes'], false);
|
||||
exec (VESTA_CMD."v-restart-system yes", $output, $return_var);
|
||||
$_SESSION['error_msg'] = 'The system is going down for reboot NOW!';
|
||||
}
|
||||
unset($output);
|
||||
}
|
||||
|
||||
header("Location: /list/server/");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue