Skip to content

Commit c0d5b37

Browse files
committed
Auth bypass vulnerability fix
1 parent 4406e81 commit c0d5b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/api/index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
exec(VESTA_CMD ."v-check-user-password ".$v_user." ".$v_password." '".$_SERVER["REMOTE_ADDR"]."'", $output, $auth_code);
1818
} else {
1919
$key = '/usr/local/vesta/data/keys/' . basename($_POST['hash']);
20-
if (file_exists($key)) {
20+
if (file_exists($key) && is_file($key)) {
2121
$auth_code = '0';
2222
}
2323
}

0 commit comments

Comments
 (0)