From 132cd6d041f8ef5811e4eca8bdb516c893ebb52e Mon Sep 17 00:00:00 2001 From: Damien Regad Date: Sat, 27 Dec 2014 18:47:58 +0100 Subject: [PATCH] Fix XSS in install.php This vulnerability (CVE-2014-9571) was reported by High-Tech Bridge Security Research Lab (https://www.htbridge.com/) in issue #17937 (advisory ID HTB23243). The parameters are now properly sanitized before being displayed. Fixes #17938 --- admin/install.php | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/admin/install.php b/admin/install.php index 5a70f2c095..ecbbf417a8 100644 --- a/admin/install.php +++ b/admin/install.php @@ -458,7 +458,7 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes Checking Database Server Version Running ' . $f_db_type . ' version ' . nl2br( $t_version_info['description'] ); + echo '
Running ' . string_attribute( $f_db_type ) . ' version ' . nl2br( $t_version_info['description'] ); ?> - + @@ -591,7 +591,7 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes Username (for Database) - + @@ -614,7 +614,7 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes Database name (for Database) - + if required) - + @@ -639,7 +639,7 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes @@ -1024,13 +1024,13 @@ function print_test( $p_test_description, $p_result, $p_hard_fail = true, $p_mes # @todo to be written # must post data gathered to preserve it ?> - - - - - - - + + + + + + +
- - - - + + + +