Vulnerabilities > CVE-2014-1691 - Code Injection vulnerability in Horde Application Framework
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
The framework/Util/lib/Horde/Variables.php script in the Util library in Horde before 5.1.1 allows remote attackers to conduct object injection attacks and execute arbitrary PHP code via a crafted serialized object in the _formvars form.
Vulnerable Configurations
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
description | Horde Framework Unserialize PHP Code Execution. CVE-2014-1691. Remote exploit for php platform |
id | EDB-ID:32439 |
last seen | 2016-02-03 |
modified | 2014-03-22 |
published | 2014-03-22 |
reporter | metasploit |
source | https://www.exploit-db.com/download/32439/ |
title | Horde Framework Unserialize PHP Code Execution |
Metasploit
description | This module exploits a php unserialize() vulnerability in Horde <= 5.1.1 which could be abused to allow unauthenticated users to execute arbitrary code with the permissions of the web server. The dangerous unserialize() exists in the 'lib/Horde/Variables.php' file. The exploit abuses the __destruct() method from the Horde_Kolab_Server_Decorator_Clean class to reach a dangerous call_user_func() call in the Horde_Prefs class. |
id | MSF:EXPLOIT/UNIX/WEBAPP/HORDE_UNSERIALIZE_EXEC |
last seen | 2020-06-08 |
modified | 2017-07-24 |
published | 2014-03-18 |
references | |
reporter | Rapid7 |
source | https://github.com/rapid7/metasploit-framework/blob/master//modules/exploits/unix/webapp/horde_unserialize_exec.rb |
title | Horde Framework Unserialize PHP Code Execution |
Nessus
NASL family | Debian Local Security Checks |
NASL id | DEBIAN_DSA-2853.NASL |
description | Pedro Ribeiro from Agile Information Security found a possible remote code execution on Horde3, a web application framework. Unsanitized variables are passed to the unserialize() PHP function. A remote attacker could specially-craft one of those variables allowing her to load and execute code. |
last seen | 2020-03-17 |
modified | 2014-02-06 |
plugin id | 72353 |
published | 2014-02-06 |
reporter | This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. |
source | https://www.tenable.com/plugins/nessus/72353 |
title | Debian DSA-2853-1 : horde3 - remote code execution |
code |
|
Packetstorm
data source https://packetstormsecurity.com/files/download/125812/horde_unserialize_exec.rb.txt id PACKETSTORM:125812 last seen 2016-12-05 published 2014-03-20 reporter EgiX source https://packetstormsecurity.com/files/125812/Horde-Framework-Unserialize-PHP-Code-Execution.html title Horde Framework Unserialize PHP Code Execution data source https://packetstormsecurity.com/files/download/127296/horde-exec.txt id PACKETSTORM:127296 last seen 2016-12-05 published 2014-06-29 reporter Akra Macha source https://packetstormsecurity.com/files/127296/Horde-Framework-Unserialize-PHP-Code-Execution.html title Horde Framework Unserialize PHP Code Execution
Seebug
bulletinFamily | exploit |
description | No description provided by source. |
id | SSV:85724 |
last seen | 2017-11-19 |
modified | 2014-07-01 |
published | 2014-07-01 |
reporter | Root |
source | https://www.seebug.org/vuldb/ssvid-85724 |
title | Horde Framework Unserialize PHP Code Execution |
References
- http://seclists.org/oss-sec/2014/q1/153
- http://seclists.org/oss-sec/2014/q1/156
- http://seclists.org/oss-sec/2014/q1/169
- http://www.debian.org/security/2014/dsa-2853
- https://github.com/horde/horde/blob/82c400788537cfc0106b68447789ff53793ac086/bundles/groupware/docs/CHANGES#L215
- https://github.com/horde/horde/commit/da6afc7e9f4e290f782eca9dbca794f772caccb3