mirror of
https://github.com/vrana/adminer.git
synced 2025-08-09 16:17:48 +02:00
Disallow connecting to privileged ports (thanks to hyp3rlinx)
This commit is contained in:
@@ -165,6 +165,10 @@ if (isset($_GET["username"])) {
|
||||
page_footer("auth");
|
||||
exit;
|
||||
}
|
||||
list($host, $port) = explode(":", SERVER, 2);
|
||||
if (is_numeric($port) && $port < 1024) {
|
||||
auth_error('Connecting to privileged ports is not allowed.');
|
||||
}
|
||||
check_invalid_login();
|
||||
$connection = connect();
|
||||
}
|
||||
|
Reference in New Issue
Block a user