diff --git a/ChangeLog b/ChangeLog index 4f9a0f2599..525b80ce90 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,10 @@ phpMyAdmin - ChangeLog - bug Escape database and table names for partition maintenance - bug Invalid value for CURLOPT_SSL_VERIFYPEER +4.4.6.1 (2015-05-13) +- bug #4899 [security] CSRF vulnerability in setup +- bug #4900 [security] Vulnerability allowing man-in-the-middle attack + 4.4.6.0 (2015-05-07) - bug #4890 webkitStorageInfo and webkitIndexedDB is deprecated - bug #4892 Undefined variable: unique_conditions diff --git a/libraries/Config.class.php b/libraries/Config.class.php index 1609cea772..dc0316237b 100644 --- a/libraries/Config.class.php +++ b/libraries/Config.class.php @@ -756,8 +756,6 @@ class PMA_Config curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); - curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); - curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_TIMEOUT, 5); if (! defined('TESTSUITE')) { diff --git a/libraries/url_generating.lib.php b/libraries/url_generating.lib.php index bc078ad9f1..799489b225 100644 --- a/libraries/url_generating.lib.php +++ b/libraries/url_generating.lib.php @@ -179,6 +179,7 @@ function PMA_URL_getCommon($params = array(), $encode = 'html', $divider = '?') if (isset($GLOBALS['server']) && $GLOBALS['server'] != $GLOBALS['cfg']['ServerDefault'] && ! isset($params['server']) + && ! defined('PMA_SETUP') ) { $params['server'] = $GLOBALS['server']; } diff --git a/setup/frames/form.inc.php b/setup/frames/form.inc.php index 2fb2cda0f4..4e25bfe1d2 100644 --- a/setup/frames/form.inc.php +++ b/setup/frames/form.inc.php @@ -19,8 +19,8 @@ require_once './setup/lib/form_processing.lib.php'; require './libraries/config/setup.forms.php'; -$formset_id = filter_input(INPUT_GET, 'formset'); -$mode = filter_input(INPUT_GET, 'mode'); +$formset_id = isset($_GET['formset']) ? $_GET['formset'] : null; +$mode = isset($_GET['mode']) ? $_GET['mode'] : null; if (! isset($forms[$formset_id])) { PMA_fatalError(__('Incorrect formset, check $formsets array in setup/frames/form.inc.php!')); } diff --git a/setup/frames/index.inc.php b/setup/frames/index.inc.php index c291c3c327..2c341ec2c9 100644 --- a/setup/frames/index.inc.php +++ b/setup/frames/index.inc.php @@ -174,12 +174,12 @@ if ($cf->getServerCount() > 0) { echo '' . htmlspecialchars($cf->getServerDSN($id)) . ''; echo ''; echo ''; - echo '' + echo '' . __('Edit') . ''; echo ' | '; - echo '' + echo '' . __('Delete') . ''; echo ''; echo ''; @@ -308,7 +308,6 @@ echo ''; diff --git a/setup/frames/menu.inc.php b/setup/frames/menu.inc.php index d82dce07f2..a78c84d689 100644 --- a/setup/frames/menu.inc.php +++ b/setup/frames/menu.inc.php @@ -10,11 +10,11 @@ if (!defined('PHPMYADMIN')) { exit; } -$formset_id = filter_input(INPUT_GET, 'formset'); +$formset_id = isset($_GET['formset']) ? $_GET['formset'] : null; $separator = PMA_URL_getArgSeparator('html'); echo '