Joomla! Amblog Component "catid" and "articleid" SQL Injection Vulnerabilities

SECUNIA ADVISORY ID:
SA40932

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

RELEASE DATE:
2010-08-10
DESCRIPTION:
Salvatore Fresta has discovered some vulnerabilities in the Amblog
component for Joomla!, which can be exploited by malicious people to
conduct SQL injection attacks.

1) Input passed via the "catid" parameter to index.php (when "option"
is set to "com_amblog" and "view" is set to "amblog") is not properly
sanitised before being used in SQL queries. This can be exploited to
manipulate SQL queries by injecting arbitrary SQL code.

2) Input passed via the "catid" parameter to index.php (when "option"
is set to "com_amblog" and "task" is set to "newform") is not properly
sanitised before being used in SQL queries. This can be exploited to
manipulate SQL queries by injecting arbitrary SQL code.

3) Input passed via the "articleid" parameter to index.php (when
"option" is set to "com_amblog" and "task" is set to "article",
"editform", "editcommentform", "savenewcomment", "saveeditcomment",
"editsave", or "delete") is not properly sanitised before being used
in SQL queries. This can be exploited to manipulate SQL queries by
injecting arbitrary SQL code.

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

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

PROVIDED AND/OR DISCOVERED BY:
Salvatore Fresta aka Drosophila

ORIGINAL ADVISORY:
http://adv.salvatorefresta.net/Amblog_1.0_Joomla_Component_Multiple_SQL_Injection_Vulnerabilities-10082010.txt