Vulnerabilities > CVE-2020-8518 - Code Injection vulnerability in multiple products
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 | 1 | |
OS | 2 | |
OS | 1 |
Common Weakness Enumeration (CWE)
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
id | EDB-ID:48215 |
last seen | 2020-03-14 |
modified | 2020-03-10 |
published | 2020-03-10 |
reporter | Exploit-DB |
source | https://www.exploit-db.com/download/48215 |
title | Horde Groupware Webmail Edition 5.2.22 - Remote Code Execution |
Metasploit
description | The 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. |
id | MSF:EXPLOIT/MULTI/HTTP/HORDE_CSV_RCE |
last seen | 2020-06-14 |
modified | 2020-03-23 |
published | 2020-03-14 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/multi/http/horde_csv_rce.rb |
title | Horde CSV import arbitrary PHP code execution |
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_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 seen 2020-03-26 modified 2020-02-14 plugin id 133701 published 2020-02-14 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/133701 title Fedora 30 : php-horde-Horde-Data (2020-0248ad925e) NASL family Fedora Local Security Checks NASL id FEDORA_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 seen 2020-03-26 modified 2020-02-14 plugin id 133702 published 2020-02-14 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/133702 title Fedora 31 : php-horde-Horde-Data (2020-1e7cc91d55) NASL family Debian Local Security Checks NASL id DEBIAN_DLA-2174.NASL description A 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 seen 2020-04-30 modified 2020-04-15 plugin id 135497 published 2020-04-15 reporter This script is Copyright (C) 2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/135497 title Debian DLA-2174-1 : php-horde-data security update
Packetstorm
data source | https://packetstormsecurity.com/files/download/156872/horde_csv_rce.rb.txt |
id | PACKETSTORM:156872 |
last seen | 2020-03-25 |
published | 2020-03-23 |
reporter | Andrea Cardaci |
source | https://packetstormsecurity.com/files/156872/Horde-5.2.22-CSV-Import-Code-Execution.html |
title | Horde 5.2.22 CSV Import Code Execution |
References
- https://lists.horde.org/archives/announce/2020/001285.html
- http://packetstormsecurity.com/files/156872/Horde-5.2.22-CSV-Import-Code-Execution.html
- https://lists.debian.org/debian-lts-announce/2020/04/msg00008.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2PRPIFQDGYPQ3F2TF2ETPIL7IYNSVVZQ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKTNYDBDVJNMVC7QPXQI7CMPLX3USZ2T/