Lucene search
K

EspoCRM 2.5.2 XSS / LFI / Access Control Vulnerabilities

🗓️ 30 Oct 2014 00:00:00Reported by High-Tech BridgeType 
zdt
 zdt
🔗 0day.today👁 51 Views

EspoCRM 2.5.2 PHP Inclusion, Access Control and XSS Vulnerabilitie

Related
Code
ReporterTitlePublishedViews
Family
CVE
CVE-2014-7985
31 Oct 201414:00
cve
CVE
CVE-2014-7986
31 Oct 201414:00
cve
CVE
CVE-2014-7987
31 Oct 201414:00
cve
Cvelist
CVE-2014-7985
31 Oct 201414:00
cvelist
Cvelist
CVE-2014-7986
31 Oct 201414:00
cvelist
Cvelist
CVE-2014-7987
31 Oct 201414:00
cvelist
EUVD
EUVD-2014-7834
7 Oct 202500:30
euvd
EUVD
EUVD-2014-7835
7 Oct 202500:30
euvd
EUVD
EUVD-2014-7836
7 Oct 202500:30
euvd
htbridge
Multiple vulnerabilities in EspoCRM
8 Oct 201400:00
htbridge
Rows per page
Product: EspoCRM
Vendor: http://www.espocrm.com
Vulnerable Version(s): 2.5.2 and probably prior
Tested Version: 2.5.2
Advisory Publication:  October 8, 2014  [without technical details]
Vendor Notification: October 8, 2014 
Vendor Patch: October 10, 2014 
Public Disclosure: October 29, 2014 
Vulnerability Type: PHP File Inclusion [CWE-98], Improper Access Control [CWE-284], Cross-Site Scripting [CWE-79]
CVE References: CVE-2014-7985, CVE-2014-7986, CVE-2014-7987
Risk Level: High 
CVSSv2 Base Scores: 7.6 (AV:N/AC:H/Au:N/C:C/I:C/A:C), 5 (AV:N/AC:L/Au:N/C:N/I:N/A:P), 4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
Solution Status: Fixed by Vendor
Discovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ ) 

-----------------------------------------------------------------------------------------------

Advisory Details:

High-Tech Bridge Security Research Lab discovered multiple high-risk vulnerabilities in EspoCRM, which can be exploited by remote attacker to execute arbitrary PHP code on a vulnerable system, reinstall the application from scratch, and compromise the entire system as the result. EspoCRM is also vulnerable to less critical Cross-Site Scripting attacks.


1. PHP File Inclusion in EspoCRM: CVE-2014-7985

The vulnerability exists due to absence of sanitization of input data passed via the "action" HTTP GET parameter to "/install/index.php" script before using them in PHP "include()" function. A remote unauthenticated attacker can include and execute arbitrary local PHP files on the system with privileges of the web server. 

Successful exploitation of the vulnerability may allow complete application and system compromise. 

Below is a simple PoC (Proof-of-Concept) code that uses path traversal technique to include "/tmp/file.php" file (you can include any other file, content of which you control):

http://[host]/install/index.php?installProcess=1&action=../../../../../../../../ tmp/file

The installation script is not deleted after installation, and is accesible without any authentication by default. 


2. Improper Access Control in EspoCRM: CVE-2014-7986

The vulnerability is caused by insufficient access control restriction to the installation script "/install/index.php". Additionally the application fails to properly check whether it was already installed on the system. A remote attacker can set the "installProcess” HTTP GET parameter to 1 and reinstall the application. 

The following HTP GET request starts a new installation process:

http://[host]/install/index.php?installProcess=1


3. Reflected Cross-Site Scripting (XSS) in EspoCRM: CVE-2014-7987

Input passed via the "desc" HTTP GET parameter to "/install/index.php" script is not properly sanitized before being returned to the user. A remote attacker can trick a user to open a specially crafted link and execute arbitrary HTML and script code in browser in context of the vulnerable website.

The exploitation example below uses the "alert()" JavaScript function to display "immuniweb" word:

http://[host]/install/index.php?installProcess=1&action=errors&desc=%3Cscript%3E alert%28%27immuniweb%27%29;%3C/script%3E

-----------------------------------------------------------------------------------------------

Solution:

Update to EspoCRM 2.6.0

More Information:
http://blog.espocrm.com/news/espocrm-2-6-0-released/

#  0day.today [2018-03-20]  #

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation