TITLE: Crafty Syntax Image Gallery Multiple Vulnerabilities SECUNIA ADVISORY ID: SA19478 VERIFY ADVISORY: http://secunia.com/advisories/19478/ CRITICAL: Highly critical IMPACT: Manipulation of data, System access WHERE: >From remote SOFTWARE: Crafty Syntax Image Gallery 3.x http://secunia.com/product/9171/ DESCRIPTION: r0t has discovered some vulnerabilities in Crafty Syntax Image Gallery, which can be exploited by malicious users to compromise a vulnerable system and by malicious people to conduct SQL injection attacks. 1) Input passed to the "limitquery_s" parameter in slides.php 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) Images are not properly verified during the upload process. This can be exploited to execute arbitrary PHP code by uploading PHP scripts using manipulated HTTP POST data. Successful exploitation requires privileges to upload images. The vulnerabilities have been confirmed in version 3.1g. Other versions may also be affected. SOLUTION: Edit the source code to ensure that input is properly sanitised. Allow only trusted users to upload images. PROVIDED AND/OR DISCOVERED BY: r0t ORIGINAL ADVISORY: http://milw0rm.com/exploits/1645 ---------------------------------------------------------------------- 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 ----------------------------------------------------------------------