Great Reviews!Need help setting up your website, installing Apache, PHP, MySQL, or PhpNuke?Need help customizing or designing scripts?Please contact me via the Contact Us option for further details and pricing.
DESCRIPTION: Foster & 1dt.w0lf have discovered a vulnerability in PHP-Nuke, which can be exploited by malicious people to conduct SQL injection attacks. The vulnerability is confirmed in version 8.0. Other versions may also be affected.
Input passed to the "sid" parameter through modules.php to modules/Search/index.php (when "type" is set to "comments") is not properly sanitised before being used in SQL queries. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code. Successful exploitation allows e.g. retrieving the administrator password hash, but requires that "magic_quotes_gpc" is disabled - not the value recommended by the installer - and having knowledge of the database table prefix.
SOLUTION: Edit the source code to ensure that input is properly sanitised. Set "magic_quotes_gpc" in php.ini to On. Use another product.
PROVIDED AND/OR DISCOVERED BY: Foster & 1dt.w0lf
ORIGINAL ADVISORY: http://milw0rm.com/exploits/4965
Posted on Wednesday, January 23, 2008 @ 22:35:47 EST by Raven