skin xss
I'm not missing anything
in index.php line 63, for additional security,
change
to
in index.php line 63, for additional security,
change
Code: Select all
if ( isset($_GET['skin']) )
$skin = $_GET['skin'];
elseif ( isset($_COOKIE['zmSkin']) )
$skin = $_COOKIE['zmSkin'];
else
$skin = "classic";
Code: Select all
if ( isset($_GET['skin']) && preg_match('#^[a-z]+$#', $_GET['skin']))
$skin = $_GET['skin'];
elseif ( isset($_COOKIE['zmSkin']) && preg_match('#^[a-z]+$#', $_COOKIE['zmSkin']) )
$skin = $_COOKIE['zmSkin'];
else
$skin = "classic";