mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
🔒 Fix OS command injection vulnerability.
This commit is contained in:
parent
8503efa6fe
commit
6e13036780
6 changed files with 9 additions and 8 deletions
|
@ -28,8 +28,8 @@ $lang = 'ru_RU.utf8';
|
|||
//setlocale(LC_ALL, $lang);
|
||||
|
||||
// Data
|
||||
$q = escapeshellarg($q);
|
||||
if ($_SESSION['user'] == 'admin') {
|
||||
$q = escapeshellarg($q);
|
||||
exec (VESTA_CMD."v-search-object ".$q." json", $output, $return_var);
|
||||
$data = json_decode(implode('', $output), true);
|
||||
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_search.html');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue