---------------------------------------------------------------------- Want to join the Secunia Security Team? Secunia offers a position as a security specialist, where your daily work involves reverse engineering of software and exploit code, auditing of source code, and analysis of vulnerability reports. http://secunia.com/secunia_security_specialist/ ---------------------------------------------------------------------- TITLE: Open Searchable Image Catalogue SQL Injection Vulnerabilities SECUNIA ADVISORY ID: SA20341 VERIFY ADVISORY: http://secunia.com/advisories/20341/ CRITICAL: Less critical IMPACT: Cross Site Scripting, Manipulation of data WHERE: >From remote SOFTWARE: Open Searchable Image Catalogue 0.x http://secunia.com/product/10258/ DESCRIPTION: Nenad Jovanovic has discovered some vulnerabilities in Open Searchable Image Catalogue, which can be exploited by malicious users to conduct SQL injection attacks and by malicious people to conduct cross-site scripting attacks. 1) Input passed to the "username", "realname", "type", and "id" parameters in adminfunctions.php and to the "catalogue_id", "tempCategory", "txtDescription", "txtDateCreated", "txtSource", "txtNotes", and "filetype" parameters in editcatalogue.php is not properly sanitised before being used in SQL queries. This can be exploited to manipulate arbitrary SQL queries by injecting arbitrary SQL code. Successful exploitation requires access to the administration section and that "magic_quotes_gpc" is disabled. 2) Input passed to the "q", "catalogue_id", "dateStart", "dateEnd", "lstCategory", "qCategory", "txtItemID", "txtSource", "cfid", and "cfval" parameters in search.php 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 a user account if authentication is enabled and that "magic_quotes_gpc" is disabled. 3) Input to the function "do_mysql_query()" in core.php is not sanitised before being returned to the user when reporting an SQL error message. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site. The vulnerabilities have been confirmed in version 0.7. Other versions may also be affected. SOLUTION: Some vulnerabilities have been fixed in version 0.7.0.1. The "cfid" and "cfval" parameters in search.php are not fixed in version 0.7.0.1, but exploitation requires that "Custom fields" are used in a category. PROVIDED AND/OR DISCOVERED BY: Nenad Jovanovic ORIGINAL ADVISORY: http://www.seclab.tuwien.ac.at/advisories/TUVSA-0605-001.txt ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------