---------------------------------------------------------------------- Passionate about writing secure code? http://secunia.com/company/jobs/open_positions/talented_programmer Read this if your favourite tool is a disassembler http://secunia.com/company/jobs/open_positions/reverse_engineer ---------------------------------------------------------------------- TITLE: Joomla CKForms Component Multiple Vulnerabilities SECUNIA ADVISORY ID: SA40127 VERIFY ADVISORY: Secunia.com http://secunia.com/advisories/40127/ Customer Area (Credentials Required) https://ca.secunia.com/?page=viewadvisory&vuln_id=40127 RELEASE DATE: 2010-06-30 DISCUSS ADVISORY: http://secunia.com/advisories/40127/#comments AVAILABLE ON SITE AND IN CUSTOMER AREA: * Last Update * Popularity * Comments * Criticality Level * Impact * Where * Solution Status * Operating System / Software * CVE Reference(s) http://secunia.com/advisories/40127/ ONLY AVAILABLE IN CUSTOMER AREA: * Authentication Level * Report Reliability * Secunia PoC * Secunia Analysis * Systems Affected * Approve Distribution * Remediation Status * Secunia CVSS Score * CVSS https://ca.secunia.com/?page=viewadvisory&vuln_id=40127 ONLY AVAILABLE WITH SECUNIA CSI AND SECUNIA PSI: * AUTOMATED SCANNING http://secunia.com/vulnerability_scanning/personal/ http://secunia.com/vulnerability_scanning/corporate/wsus_sccm_3rd_third_party_patching/ DESCRIPTION: Secunia Research has discovered some vulnerabilities in the CKForms component for Joomla, which can be exploited by malicious people to conduct SQL injection attacks and compromise a vulnerable system. 1) Input passed via the "articleid" parameter to index.php (when "option" is set to "com_ckforms", "view" is set to "ckforms", "task" is set to "send", and "id" is set to a valid form id) is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code. Successful exploitation requires that the "Save result" is enabled in the form's configuration (disabled by default). 2) Input passed via the "sortd" parameter to index.php (when "option" is set to "com_ckforms", "view" is set to "ckformsdata", "layout" is set to "data", and "id" is set to "f") is not properly sanitised before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code. 3) The "CkformsModelCkforms::saveData()" method in models/ckforms.php allows uploading of files with arbitrary extensions to a folder inside the web root. This can be exploited to execute arbitrary PHP code by uploading a PHP file. Successful exploitation requires the "fileupload" field to be configured. NOTE: The stored file name is based on the original file name and a time stamp, which is predictable. The vulnerabilities are confirmed in version 1.3.4. Other versions may also be affected. SOLUTION: Edit the source code to ensure that input is properly sanitised. Change the "Uploaded files path" setting to a directory outside of the web root. PROVIDED AND/OR DISCOVERED BY: Secunia Research ORIGINAL ADVISORY: Secunia Research: http://secunia.com/secunia_research/2010-81/ http://secunia.com/secunia_research/2010-82/ OTHER REFERENCES: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ DEEP LINKS: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ EXTENDED DESCRIPTION: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ EXTENDED SOLUTION: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ EXPLOIT: Further details available in Customer Area: http://secunia.com/products/corporate/EVM/ ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help private users keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/advisories/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/advisories/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 ----------------------------------------------------------------------