Secunia Research: X2CRM Profile Picture Arbitrary File Upload Vulnerability

======================================================================
 
                    Secunia Research 28/03/2014

      X2CRM Profile Picture 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

* X2CRM 3.7.5

NOTE: Other versions may also be affected.

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

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

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

"X2Engine is a next-generation, open source social sales application
for small and medium sized businesses. X2Engine was designed to
streamline contact and sales actions into one compact blog-style
user interface. Add to this contact and colleague social feeds and
sales representatives become smarter and more effective resulting
in increased sales and higher customer satisfaction."

Product Link:
http://www.x2engine.com/
 
======================================================================
4) Description of Vulnerability

Secunia Research has discovered a vulnerability in X2CRM, which can
be exploited by malicious users to compromise a vulnerable system.

The vulnerability is caused due to the
"ProfileController::actionUploadPhoto()" method defined in the
/protected/controllers/ProfileController.php script allowing the
upload of files with arbitrary extensions to a folder inside the
webroot. This can be exploited to execute arbitrary PHP code by
uploading a malicious PHP script.

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

Apply the vendor patch or upgrade to version 4.0.
http://x2community.com/index.php?app=core&module=attach&attach_id=344

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

20/03/2014  Vendor notified.
20/03/2014  Vendor releases updates.
28/03/2014  Public disclosure.

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

Discovered by Egidio Romano, Secunia Research.

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

The Common Vulnerabilities and Exposures (CVE) project has assigned
the CVE-2014-2664 identifier for the vulnerability.
 
======================================================================
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/2014-4/

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

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