mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 16:44:17 +02:00
Disallow connecting to ports > 65535 (bug #730)
This commit is contained in:
@@ -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();
|
||||
|
@@ -2,6 +2,7 @@ Adminer 4.7.6-dev:
|
||||
Speed up alter table form (regression from 4.4.0)
|
||||
Fix clicking on non-input fields in alter table (regression from 4.6.2)
|
||||
Display time of procedure execution
|
||||
Disallow connecting to ports > 65535 (bug #730)
|
||||
MySQL: Always set foreign_key_checks in export
|
||||
Editor: Fix focusing foreign key search in select
|
||||
|
||||
|
Reference in New Issue
Block a user