From bd3735ba584e7a49aee78813845245354b061f61 Mon Sep 17 00:00:00 2001 From: Dieter Adriaenssens Date: Sat, 10 Dec 2011 17:10:41 +0100 Subject: [PATCH 1/2] [security] Self-XSS on export options (export server/database/table), see PMASA-2011-20 --- ChangeLog | 1 + libraries/display_export.lib.php | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b2cdf5d51..75ab45384 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ phpMyAdmin - ChangeLog - bug #3452506 [edit] Unable to move tables with triggers - bug #3449659 [navi] Fast filter broken with table tree - bug #3448485 [GUI] Firefox favicon frameset regression +- [security] Self-XSS on export options (export server/database/table), see PMASA-2011-20 3.4.8.0 (2011-12-01) - bug #3425230 [interface] enum data split at space char (more space to edit) diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php index a58a44179..e740c2e6b 100644 --- a/libraries/display_export.lib.php +++ b/libraries/display_export.lib.php @@ -150,10 +150,10 @@ if(isset($_GET['sql_query'])) { echo ''; ?> @@ -242,7 +242,7 @@ if(isset($_GET['sql_query'])) { getUserValue( From 0e707906e69ce90c4852a0fce2a0fac7db86a3cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 13 Dec 2011 12:42:39 -0500 Subject: [PATCH 2/2] [security] Self-XSS in setup (host parameter), see PMASA-2011-19 --- ChangeLog | 1 + libraries/config/ConfigFile.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 75ab45384..961b33a65 100644 --- a/ChangeLog +++ b/ChangeLog @@ -12,6 +12,7 @@ phpMyAdmin - ChangeLog - bug #3449659 [navi] Fast filter broken with table tree - bug #3448485 [GUI] Firefox favicon frameset regression - [security] Self-XSS on export options (export server/database/table), see PMASA-2011-20 +- [security] Self-XSS in setup (host parameter), see PMASA-2011-19 3.4.8.0 (2011-12-01) - bug #3425230 [interface] enum data split at space char (more space to edit) diff --git a/libraries/config/ConfigFile.class.php b/libraries/config/ConfigFile.class.php index 9e1690c07..178a18477 100644 --- a/libraries/config/ConfigFile.class.php +++ b/libraries/config/ConfigFile.class.php @@ -425,7 +425,7 @@ class ConfigFile return htmlspecialchars($verbose); } $host = $this->get("Servers/$id/host"); - return empty($host) ? 'localhost' : $host; + return empty($host) ? 'localhost' : htmlspecialchars($host); } /**