diff --git a/ChangeLog b/ChangeLog index 4698f2387..e685b4166 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - ChangeLog $Id$ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyAdmin/ChangeLog $ +2.11.9.2 (2008-09-22) +- [security] XSS in MSIE using NUL byte, thanks to JPCERT. + 2.11.9.1 (2008-09-15) - [security] Code execution vulnerability, thanks to Norman Hippert diff --git a/libraries/js_escape.lib.php b/libraries/js_escape.lib.php index 9d128aa31..d4dfb5604 100644 --- a/libraries/js_escape.lib.php +++ b/libraries/js_escape.lib.php @@ -46,6 +46,10 @@ function PMA_jsFormat($a_string = '', $add_backquotes = true) * enclosed by * this requires only to escape ' with \' and end of script block * + * We also remove NUL byte as some browsers (namely MSIE) ignore it and + * it and inserting it anywhere inside '', '\\' => '\\\\', '\'' => '\\\'', "\n" => '\n',