SECUNIA ADVISORY ID:
SA40503
VERIFY ADVISORY:
Secunia.com
http://secunia.com/advisories/40503/
Customer Area (Credentials Required)
https://ca.secunia.com/?page=viewadvisory&vuln_id=40503
RELEASE DATE:
2010-07-07
DESCRIPTION:
Salvatore Fresta has discovered multiple vulnerabilities in the
Canteen component for Joomla, which can be exploited by malicious
users to conduct SQL injection attacks and by malicious people to
disclose potentially sensitive information.
1) Input passed via the "mealid" parameter to index.php (when
"option" is set to "com_canteen", "view" is set to "menu",
"controller" is set to "menu", and "task" is set to "saveOrder",
"removeOrder", or "saveFromBursa") is not properly sanitised before
being used in a SQL query. This can be exploited to manipulate SQL
queries by injecting arbitrary SQL code.
2) Input passed to the "controller" parameter in index.php (when
"option" is set to "com_canteen") is not properly verified before
being used to include files. This can be exploited to include
arbitrary files from local resources via directory traversal attacks
and URL-encoded NULL bytes.
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 and
verified.
PROVIDED AND/OR DISCOVERED BY:
Salvatore Fresta