Secunia Research: Joomla CKForms Component Arbitrary File Upload Vulnerability

====================================================================== 

                     Secunia Research 30/06/2010

   - Joomla CKForms Component Arbitrary File Upload Vulnerability -

====================================================================== 
Table of Contents

Affected Software....................................................1
Severity.............................................................2
Vendor's Description of Software.....................................3
Description of Vulnerability.........................................4
Solution.............................................................5
Time Table...........................................................6
Credits..............................................................7
References...........................................................8
About Secunia........................................................9
Verification........................................................10

====================================================================== 
1) Affected Software 

* CKForms 1.3.4

NOTE: Other versions may also be affected.

====================================================================== 
2) Severity 

Rating: Highly critical
Impact: System access
Where:  From remote

====================================================================== 
3) Vendor's Description of Software 

"CKForms is a Joomla 1.5 native component to generate Forms with
fields without any development knowledge.".

Product Link:
http://ckforms.cookex.eu/index.php

====================================================================== 
4) Description of Vulnerability

Secunia Research has discovered a vulnerability in the CKForms
component for Joomla, which can be exploited by malicious people to
compromise a vulnerable system.

The vulnerability is caused by the
"CkformsModelCkforms::saveData()" method in models/ckforms.php 
allowing the upload of files with arbitrary extensions to a folder 
inside the web root (e.g. "tmp/"). 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 and can be guessed in a reasonable
amount of attempts.

====================================================================== 
5) Solution 

No fix is currently available.

====================================================================== 
6) Time Table 

11/06/2010 - Vendor notified.
24/06/2010 - Second notification.
30/06/2010 - Public disclosure.

====================================================================== 
7) Credits 

Discovered by Secunia Research.

====================================================================== 
8) References

The Common Vulnerabilities and Exposures (CVE) project has not yet
assigned a CVE identifier for the vulnerabilities.

====================================================================== 
9) About Secunia

Secunia offers vulnerability management solutions to corporate
customers with verified and reliable vulnerability intelligence
relevant to their specific system configuration:

http://secunia.com/advisories/business_solutions/

Secunia also provides a publicly accessible and comprehensive advisory
database as a service to the security community and private 
individuals, who are interested in or concerned about IT-security.

http://secunia.com/advisories/

Secunia believes that it is important to support the community and to
do active vulnerability research in order to aid improving the 
security and reliability of software in general:

http://secunia.com/secunia_research/

Secunia regularly hires new skilled team members. Check the URL below
to see currently vacant positions:

http://secunia.com/corporate/jobs/

Secunia offers a FREE mailing list called Secunia Security Advisories:

http://secunia.com/advisories/mailing_lists/

====================================================================== 
10) Verification 

Please verify this advisory by visiting the Secunia website:
http://secunia.com/secunia_research/2010-82/

Complete list of vulnerability reports published by Secunia Research:
http://secunia.com/secunia_research/

======================================================================