{================================================================================} { [waraxe-2004-SA#035] } {================================================================================} { } { [ Multiple security holes in PhpNuke - part 2] } { } {================================================================================} Author: Janek Vind "waraxe" Date: 17. July 2004 Location: Estonia, Tartu Web: http://www.waraxe.us/index.php?modname=sa&id=35 Affected software description: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Php-Nuke is a popular freeware content management system, written in php by Francisco Burzi. This CMS (Content Management System) is used on many thousands websites, because it's freeware, easy to install and has broad set of features. Homepage: http://phpnuke.org Vulnerabilities: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This time we will look @ security holes - 1 XSS and 1 sql inject case - in "Search" module. A - Cross-site scripting aka XSS ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A1 - xss in "/modules/Search/index.php": Open search page in phpnuke: http://localhost/nuke73/modules.php?name=Search and enter to input field something like this: 1">
sql_query("select title from ".$prefix."_stories where sid='$sid'"); list($st_title) = $db->sql_fetchrow($res); $instory = "AND sid='$sid'"; echo "