Ravens PHP Scripts

PHP-Nuke *modules/Search/index.php* SQL Injection
Date: Wednesday, January 23, 2008 @ 22:35:47 UTC
Topic: Security


SECUNIA ADVISORY ID: SA28624

VERIFY ADVISORY: http://secunia.com/advisories/28624/

CRITICAL: Moderately critical

IMPACT: Manipulation of data, Exposure of sensitive information

SOFTWARE: PHP-Nuke 8.x - http://secunia.com/product/13524/

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






This article comes from Ravens PHP Scripts
https://www.ravenphpscripts.com

The URL for this story is:
https://www.ravenphpscripts.com/modules.php?name=News&file=article&sid=3206