mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Auth bypass vulnerability fix
This commit is contained in:
parent
4406e814f2
commit
c0d5b3765a
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ if (isset($_POST['user']) || isset($_POST['hash'])) {
|
|||
exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'", $output, $auth_code);
|
||||
} else {
|
||||
$key = '/usr/local/vesta/data/keys/' . basename($_POST['hash']);
|
||||
if (file_exists($key)) {
|
||||
if (file_exists($key) && is_file($key)) {
|
||||
$auth_code = '0';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue