Ravens PHP Scripts

PHP-Nuke vWar Module SQL Injection and Cross-Site Scripting
Date: Wednesday, April 18, 2007 @ 09:14:25 PDT
Topic: Security


SECUNIA ADVISORY ID: SA24887

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

CRITICAL: Moderately critical

IMPACT: Cross Site Scripting, Manipulation of data, Exposure of sensitive information

WHERE: >From remote

SOFTWARE: vWar 1.x (module for PHP-Nuke) - http://secunia.com/product/13959/

DESCRIPTION: Janek Vind has discovered some vulnerabilities in the vWar module for PHP-Nuke, which can be exploited by malicious people to conduct SQL injection attacks and cross-site scripting attacks.



1) Input passed to the "n" parameter in extra/online.php 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 administrator usernames, password hashes, and e-mail addresses, but requires knowledge of vWar's database table prefix.

2) Input passed to the "title" parameter in extra/today.php (when "whattoshow" is set to "3") is not properly sanitised before being returned to a user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

3) Input passed to the "memberlist" parameter in extra/login.php is not properly sanitized before being returned to a user. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

Successful exploitation of this vulnerability requires that the target user is not logged in. The vulnerabilities are confirmed in version 1.5 R15. Other versions may also be affected.

SOLUTION: Edit the source code to ensure that input is properly sanitized.

PROVIDED AND/OR DISCOVERED BY: Janek Vind a.k.a. waraxe

ORIGINAL ADVISORY: http://www.waraxe.us/advisory-48.html






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

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