mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Vesta CP 0.9.8–20 rXSS to RCE / solves #1558
This commit is contained in:
parent
2cb01e0c73
commit
dd2a57e408
2 changed files with 6 additions and 31 deletions
|
@ -16,7 +16,7 @@ if (!empty($_REQUEST['path'])) {
|
|||
$path = $_REQUEST['path'];
|
||||
if (!empty($_REQUEST['raw'])) {
|
||||
header('content-type: image/jpeg');
|
||||
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg($_REQUEST['path']));
|
||||
passthru (VESTA_CMD . "v-open-fs-file " . $user . " " . escapeshellarg(htmlspecialchars($_REQUEST['path'], ENT_QUOTES, 'UTF-8')));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue