Vulnerabilities > CVE-2008-5619 - Code Injection vulnerability in Roundcube Webmail 0.2.1/0.2.3

047910
CVSS 10.0 - CRITICAL
Attack vector
NETWORK
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
low complexity
roundcube
CWE-94
critical
nessus
exploit available

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
Roundcube
2

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

  • descriptionRoundCube Webmail <= 0.2-3 beta Code Execution Vulnerability. CVE-2008-5619. Webapps exploit for php platform
    fileexploits/php/webapps/7549.txt
    idEDB-ID:7549
    last seen2016-02-01
    modified2008-12-22
    platformphp
    port
    published2008-12-22
    reporterJacobo Gimeno
    sourcehttps://www.exploit-db.com/download/7549/
    titleRoundCube Webmail <= 0.2-3 beta Code Execution Vulnerability
    typewebapps
  • descriptionRoundCube Webmail. CVE-2008-5619. Webapps exploit for php platform
    fileexploits/php/webapps/7553.sh
    idEDB-ID:7553
    last seen2016-02-01
    modified2008-12-22
    platformphp
    port
    published2008-12-22
    reporterHunger
    sourcehttps://www.exploit-db.com/download/7553/
    titleRoundCube Webmail <= 0.2b Remote Code Execution Exploit
    typewebapps

Nessus

  • NASL familyFreeBSD Local Security Checks
    NASL idFREEBSD_PKG_8F483746D45D11DD84EC001FC66E7203.NASL
    descriptionEntry 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 seen2020-06-01
    modified2020-06-02
    plugin id35285
    published2009-01-02
    reporterThis script is Copyright (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/35285
    titleFreeBSD : roundcube -- remote execution of arbitrary code (8f483746-d45d-11dd-84ec-001fc66e7203)
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2008-11234.NASL
    descriptionFix 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 seen2020-06-01
    modified2020-06-02
    plugin id35098
    published2008-12-15
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/35098
    titleFedora 9 : roundcubemail-0.2-4.beta.fc9 (2008-11234)
  • NASL familyUbuntu Local Security Checks
    NASL idUBUNTU_USN-791-1.NASL
    descriptionThor 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 seen2020-06-01
    modified2020-06-02
    plugin id39516
    published2009-06-25
    reporterUbuntu Security Notice (C) 2009-2019 Canonical, Inc. / NASL script (C) 2009-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/39516
    titleUbuntu 8.04 LTS / 8.10 : moodle vulnerabilities (USN-791-1)
  • NASL familyCGI abuses
    NASL idROUNDCUBE_HTML2TEXT_CMD_EXEC.NASL
    descriptionThe 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 seen2020-06-01
    modified2020-06-02
    plugin id35273
    published2008-12-26
    reporterThis script is Copyright (C) 2008-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/35273
    titleRoundCube Webmail bin/html2text.php Post Request Remote PHP Code Execution
  • NASL familyFedora Local Security Checks
    NASL idFEDORA_2008-11220.NASL
    descriptionFix 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 seen2020-06-01
    modified2020-06-02
    plugin id35095
    published2008-12-15
    reporterThis script is Copyright (C) 2008-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/35095
    titleFedora 8 : roundcubemail-0.2-4.beta.fc8 (2008-11220)

Packetstorm

Seebug

  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:66090
    last seen2017-11-19
    modified2014-07-01
    published2014-07-01
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-66090
    titleRoundCube Webmail <= 0.2-3 beta Code Execution Vulnerability
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:10306
    last seen2017-11-19
    modified2008-12-23
    published2008-12-23
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-10306
    titleRoundCube Webmail &lt;= 0.2-3 beta Code Execution Vulnerability
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:10309
    last seen2017-11-19
    modified2008-12-23
    published2008-12-23
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-10309
    titleRoundCube Webmail &lt;= 0.2b Remote Code Execution Exploit
  • bulletinFamilyexploit
    descriptionNo description provided by source.
    idSSV:66092
    last seen2017-11-19
    modified2014-07-01
    published2014-07-01
    reporterRoot
    sourcehttps://www.seebug.org/vuldb/ssvid-66092
    titleRoundCube Webmail <= 0.2b Remote Code Execution Exploit