1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Disallow connecting to ports > 65535 (bug #730)

This commit is contained in:
Jakub Vrana
2020-01-30 17:12:23 +01:00
parent fe9ea18d2e
commit 0293613c21
2 changed files with 2 additions and 1 deletions

View File

@@ -162,7 +162,7 @@ stop_session(true);
if (isset($_GET["username"]) && is_string(get_password())) {
list($host, $port) = explode(":", SERVER, 2);
if (is_numeric($port) && $port < 1024) {
if (is_numeric($port) && ($port < 1024 || $port > 65535)) {
auth_error(lang('Connecting to privileged ports is not allowed.'));
}
check_invalid_login();