Vulnerabilities > CVE-2008-5619 - Code Injection vulnerability in Roundcube Webmail 0.2.1/0.2.3
Attack vector
NETWORK Attack complexity
LOW Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
html2text.php in Chuggnutt HTML to Text Converter, as used in PHPMailer before 5.2.10, RoundCube Webmail (roundcubemail) 0.2-1.alpha and 0.2-3.beta, Mahara, and AtMail Open 1.03, allows remote attackers to execute arbitrary code via crafted input that is processed by the preg_replace function with the eval switch.
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 2 |
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.
D2sec
name | Roundcube 0.2beta RCE |
url | http://www.d2sec.com/exploits/roundcube_0.2beta_rce.html |
Exploit-Db
description RoundCube Webmail <= 0.2-3 beta Code Execution Vulnerability. CVE-2008-5619. Webapps exploit for php platform file exploits/php/webapps/7549.txt id EDB-ID:7549 last seen 2016-02-01 modified 2008-12-22 platform php port published 2008-12-22 reporter Jacobo Gimeno source https://www.exploit-db.com/download/7549/ title RoundCube Webmail <= 0.2-3 beta Code Execution Vulnerability type webapps description RoundCube Webmail. CVE-2008-5619. Webapps exploit for php platform file exploits/php/webapps/7553.sh id EDB-ID:7553 last seen 2016-02-01 modified 2008-12-22 platform php port published 2008-12-22 reporter Hunger source https://www.exploit-db.com/download/7553/ title RoundCube Webmail <= 0.2b Remote Code Execution Exploit type webapps
Nessus
NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_8F483746D45D11DD84EC001FC66E7203.NASL description Entry for CVE-2008-5619 says : html2text.php in RoundCube Webmail (roundcubemail) 0.2-1.alpha and 0.2-3.beta allows remote attackers to execute arbitrary code via crafted input that is processed by the preg_replace function with the eval switch. last seen 2020-06-01 modified 2020-06-02 plugin id 35285 published 2009-01-02 reporter This script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/35285 title FreeBSD : roundcube -- remote execution of arbitrary code (8f483746-d45d-11dd-84ec-001fc66e7203) NASL family Fedora Local Security Checks NASL id FEDORA_2008-11234.NASL description Fix for code injection vulnerability. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 35098 published 2008-12-15 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/35098 title Fedora 9 : roundcubemail-0.2-4.beta.fc9 (2008-11234) NASL family Ubuntu Local Security Checks NASL id UBUNTU_USN-791-1.NASL description Thor Larholm discovered that PHPMailer, as used by Moodle, did not correctly escape email addresses. A local attacker with direct access to the Moodle database could exploit this to execute arbitrary commands as the web server user. (CVE-2007-3215) Nigel McNie discovered that fetching https URLs did not correctly escape shell meta-characters. An authenticated remote attacker could execute arbitrary commands as the web server user, if curl was installed and configured. (CVE-2008-4796, MSA-09-0003) It was discovered that Smarty (also included in Moodle), did not correctly filter certain inputs. An authenticated remote attacker could exploit this to execute arbitrary PHP commands as the web server user. (CVE-2008-4810, CVE-2008-4811, CVE-2009-1669) It was discovered that the unused SpellChecker extension in Moodle did not correctly handle temporary files. If the tool had been locally modified, it could be made to overwrite arbitrary local files via symlinks. (CVE-2008-5153) Mike Churchward discovered that Moodle did not correctly filter Wiki page titles in certain areas. An authenticated remote attacker could exploit this to cause cross-site scripting (XSS), which could be used to modify or steal confidential data of other users within the same web domain. (CVE-2008-5432, MSA-08-0022) It was discovered that the HTML sanitizer, last seen 2020-06-01 modified 2020-06-02 plugin id 39516 published 2009-06-25 reporter Ubuntu Security Notice (C) 2009-2019 Canonical, Inc. / NASL script (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/39516 title Ubuntu 8.04 LTS / 8.10 : moodle vulnerabilities (USN-791-1) NASL family CGI abuses NASL id ROUNDCUBE_HTML2TEXT_CMD_EXEC.NASL description The remote host is running RoundCube Webmail, a web-based IMAP client written in PHP. The version of RoundCube Webmail installed on the remote host allows execution of arbitrary commands via the embedded html2text conversion library from chuggnutt.com. Using a specially crafted POST request, an unauthenticated, remote attacker can leverage this issue to execute arbitrary PHP code on the affected host subject to the privileges under which the web server operates. last seen 2020-06-01 modified 2020-06-02 plugin id 35273 published 2008-12-26 reporter This script is Copyright (C) 2008-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/35273 title RoundCube Webmail bin/html2text.php Post Request Remote PHP Code Execution NASL family Fedora Local Security Checks NASL id FEDORA_2008-11220.NASL description Fix for code injection vulnerability. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 35095 published 2008-12-15 reporter This script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/35095 title Fedora 8 : roundcubemail-0.2-4.beta.fc8 (2008-11220)
Packetstorm
data source https://packetstormsecurity.com/files/download/73360/roundcube-exec.txt id PACKETSTORM:73360 last seen 2016-12-05 published 2008-12-30 reporter Jacobo Avariento Gimeno source https://packetstormsecurity.com/files/73360/RoundCube-Webmail-0.2-3-Beta-Code-Execution.html title RoundCube Webmail 0.2-3 Beta Code Execution data source https://packetstormsecurity.com/files/download/73361/roundcube02b-exec.txt id PACKETSTORM:73361 last seen 2016-12-05 published 2008-12-30 reporter Hunger source https://packetstormsecurity.com/files/73361/RoundCube-Webmail-0.2b-Remote-Code-Execution.html title RoundCube Webmail 0.2b Remote Code Execution
Seebug
bulletinFamily exploit description No description provided by source. id SSV:66090 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-66090 title RoundCube Webmail <= 0.2-3 beta Code Execution Vulnerability bulletinFamily exploit description No description provided by source. id SSV:10306 last seen 2017-11-19 modified 2008-12-23 published 2008-12-23 reporter Root source https://www.seebug.org/vuldb/ssvid-10306 title RoundCube Webmail <= 0.2-3 beta Code Execution Vulnerability bulletinFamily exploit description No description provided by source. id SSV:10309 last seen 2017-11-19 modified 2008-12-23 published 2008-12-23 reporter Root source https://www.seebug.org/vuldb/ssvid-10309 title RoundCube Webmail <= 0.2b Remote Code Execution Exploit bulletinFamily exploit description No description provided by source. id SSV:66092 last seen 2017-11-19 modified 2014-07-01 published 2014-07-01 reporter Root source https://www.seebug.org/vuldb/ssvid-66092 title RoundCube Webmail <= 0.2b Remote Code Execution Exploit
References
- http://mahara.org/interaction/forum/topic.php?id=533
- http://osvdb.org/53893
- http://secunia.com/advisories/33145
- http://secunia.com/advisories/33170
- http://secunia.com/advisories/34789
- http://sourceforge.net/forum/forum.php?forum_id=898542
- http://trac.roundcube.net/changeset/2148
- http://trac.roundcube.net/ticket/1485618
- http://www.openwall.com/lists/oss-security/2008/12/12/1
- http://www.securityfocus.com/archive/1/499489/100/0/threaded
- http://www.vupen.com/english/advisories/2008/3418
- http://www.vupen.com/english/advisories/2008/3419
- https://github.com/PHPMailer/PHPMailer/commit/8beacc646acb67c995aea10ac5585970efc7355a
- https://www.exploit-db.com/exploits/7549
- https://www.exploit-db.com/exploits/7553
- https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00783.html
- https://www.redhat.com/archives/fedora-package-announce/2008-December/msg00802.html