Ravens PHP Scripts

phpBB Styles Demo Module SQL Injection and Cross-Site Scripting
Date: Wednesday, September 19, 2007 @ 20:16:10 PDT
Topic: Security


SECUNIA ADVISORY ID: SA26875

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

CRITICAL: Moderately critical

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

WHERE: >From remote

SOFTWARE: Styles Demo 1.x (module for phpBB) - http://secunia.com/product/15765/

DESCRIPTION: nexen has discovered two vulnerabilities in the Styles Demo module for phpBB, which can be exploited by malicious people to conduct cross-site scripting attacks and SQL injection attacks.



1) Input passed to the "s" parameter in index.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 of this vulnerability allows e.g. retrieving administrator password hashes.

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

The vulnerabilities are confirmed in version 1.0.9. Other versions may also be affected.

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

PROVIDED AND/OR DISCOVERED BY: nexen

ORIGINAL ADVISORY: http://milw0rm.com/exploits/4425






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=3072