Joomla BSQ Sitestats Script Insertion and SQL Injection

SECUNIA ADVISORY ID:
SA22142

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

CRITICAL:
Moderately critical

IMPACT:
Cross Site Scripting, Manipulation of data

WHERE:
>From remote

SOFTWARE:
BSQ Sitestats 2.x (component for Joomla)
http://secunia.com/product/12257/
BSQ Sitestats 1.x (component for Joomla)
http://secunia.com/product/11854/

DESCRIPTION:
Secunia Research has discovered some vulnerabilities in the BSQ
Sitestats component for Joomla, which can be exploited by malicious
people to conduct script insertion or SQL injection attacks.

1) Input passed via the "HTTP Referer" Header is not properly
sanitised before being used. This can be exploited to insert
arbitrary HTML and script code, which is executed in an
administrative user's browser session in context of an affected site
when the site statistics are viewed.

2) Input passed via the URI string 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 requires that "magic_quotes_gpc" is
disabled.

The vulnerabilities are confirmed in version 1.8.0 and 2.2.1. Other
versions may also be affected.

SOLUTION:
The vulnerabilities have been fixed in version 2.2.2.

PROVIDED AND/OR DISCOVERED BY:
Sven Krewitt, Secunia Research.

ORIGINAL ADVISORY:
Secunia Research:
http://secunia.com/secunia_research/2006-65/

RECENT ARTICLE

RECENT POST