Joomla JFaq Component Multiple Vulnerabilities

SECUNIA ADVISORY ID:
SA40219

VERIFY ADVISORY:
Secunia.com
http://secunia.com/advisories/40219/
Customer Area (Credentials Required)
https://ca.secunia.com/?page=viewadvisory&vuln_id=40219

RELEASE DATE:
2010-06-27
DESCRIPTION:
Multiple vulnerabilities have been discovered in the JFaq component
for Joomla, which can be exploited by malicious users to conduct
script insertion and SQL injection attacks and by malicious people to
conduct SQL injection attacks.

1) Input passed via the "question" parameter to index.php (when
"option" is set to "com_jfaq", "task" is set to "add2", and "Itemid"
is set to a valid value) when creating a question is not properly
sanitised before being used. This can be exploited to insert
arbitrary HTML and script code, which will be executed in a user's
browser session in context of an affected site when the malicious
data is being viewed.

2) Input passed via the "titlu" parameter to index.php (when "option"
is set to "com_jfaq", "task" is set to "add2", and "Itemid" is set to
a valid value) is not properly sanitised before being used in a SQL
query. This can be exploited to manipulate SQL queries by injecting
arbitrary SQL code.

Successful exploitation of these vulnerabilities requires "Public
Front-end" permissions.

3) Input passed via the "id" parameter to index.php (when "option" is
set to "com_jfaq", "task" is set to "detail" or to "categ") is not
properly sanitised before being used in a SQL query. This can be
exploited to manipulate SQL queries by injecting arbitrary SQL code.

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

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

PROVIDED AND/OR DISCOVERED BY:
jdc