Vulnerabilities > CVE-2020-8518 - Code Injection vulnerability in multiple products

047910
CVSS 9.8 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
HIGH
Integrity impact
HIGH
Availability impact
HIGH
network
low complexity
horde
fedoraproject
debian
CWE-94
critical
nessus
exploit available
metasploit

Summary

Horde Groupware Webmail Edition 5.2.22 allows injection of arbitrary PHP code via CSV data, leading to remote code execution.

Vulnerable Configurations

Part Description Count
Application
Horde
1
OS
Fedoraproject
2
OS
Debian
1

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files, when the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high. The attack can be directed at a client system, such as causing buffer overrun through loading seemingly benign image files, as in Microsoft Security Bulletin MS04-028 where specially crafted JPEG files could cause a buffer overrun once loaded into the browser. Another example targets clients reading pdf files. In this case the attacker simply appends javascript to the end of a legitimate url for a pdf (http://www.gnucitizen.org/blog/danger-danger-danger/) http://path/to/pdf/file.pdf#whatever_name_you_want=javascript:your_code_here The client assumes that they are reading a pdf, but the attacker has modified the resource and loaded executable javascript into the client's browser process. The attack can also target server processes. The attacker edits the resource or configuration file, for example a web.xml file used to configure security permissions for a J2EE app server, adding role name "public" grants all users with the public role the ability to use the administration functionality. The server trusts its configuration file to be correct, but when they are manipulated, the attacker gains full control.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.

Exploit-Db

idEDB-ID:48215
last seen2020-03-14
modified2020-03-10
published2020-03-10
reporterExploit-DB
sourcehttps://www.exploit-db.com/download/48215
titleHorde Groupware Webmail Edition 5.2.22 - Remote Code Execution

Metasploit

descriptionThe Horde_Data module version 2.1.4 (and before) present in Horde Groupware version 5.2.22 allows authenticated users to inject arbitrary PHP code thus achieving RCE on the server hosting the web application.
idMSF:EXPLOIT/MULTI/HTTP/HORDE_CSV_RCE
last seen2020-06-14
modified2020-03-23
published2020-03-14
references
reporterRapid7
sourcehttps://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/http/horde_csv_rce.rb
titleHorde CSV import arbitrary PHP code execution

Nessus

  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2020-0248AD925E.NASL
    description**Horde_Data 2.1.5** - [jan] Fix Remote Code Execution vulnerability (CVE-2020-8518, Reported by: Andrea Cardaci/SSD). Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-26
    modified2020-02-14
    plugin id133701
    published2020-02-14
    reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/133701
    titleFedora 30 : php-horde-Horde-Data (2020-0248ad925e)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2020-1E7CC91D55.NASL
    description**Horde_Data 2.1.5** - [jan] Fix Remote Code Execution vulnerability (CVE-2020-8518, Reported by: Andrea Cardaci/SSD). Note that Tenable Network Security has extracted the preceding description block directly from the Fedora update system website. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen2020-03-26
    modified2020-02-14
    plugin id133702
    published2020-02-14
    reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/133702
    titleFedora 31 : php-horde-Horde-Data (2020-1e7cc91d55)
  • NASL familyDebian Local Security Checks
    NASL idDEBIAN_DLA-2174.NASL
    descriptionA remote code execution vulnerability was discovered in the Horde Application Framework. An authenticated remote attacker could use this flaw to cause execution of uploaded CSV data. For Debian 8
    last seen2020-04-30
    modified2020-04-15
    plugin id135497
    published2020-04-15
    reporterThis script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/135497
    titleDebian DLA-2174-1 : php-horde-data security update

Packetstorm

data sourcehttps://packetstormsecurity.com/files/download/156872/horde_csv_rce.rb.txt
idPACKETSTORM:156872
last seen2020-03-25
published2020-03-23
reporterAndrea Cardaci
sourcehttps://packetstormsecurity.com/files/156872/Horde-5.2.22-CSV-Import-Code-Execution.html
titleHorde 5.2.22 CSV Import Code Execution