Joomla! Gary's Cookbook Component "id" SQL Injection

SECUNIA ADVISORY ID:
SA29090

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

CRITICAL:
Moderately critical

IMPACT:
Manipulation of data

WHERE:
>From remote

SOFTWARE:
Gary's Cookbook 2.x (component for Joomla)
http://secunia.com/product/17763/

DESCRIPTION:
S@BUN has discovered a vulnerability in the Gary's Cookbook component
for Joomla!, which can be exploited by malicious people to conduct SQL
injection attacks.

Input passed to the "id" parameter in the Joomla! installation's
index.php script (when "option" is set to "com_garyscookbook" and
"func" to "detail") is not properly sanitised before being used in
SQL queries. This can be exploited to manipulate SQL queries by
injecting arbitrary SQL code.

The vulnerability is confirmed in version 2.4.0. Other versions may
also be affected.

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

PROVIDED AND/OR DISCOVERED BY:
S@BUN

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