ID CVE-2015-8770
Summary Directory traversal vulnerability in the set_skin function in program/include/rcmail_output_html.php in Roundcube before 1.0.8 and 1.1.x before 1.1.4 allows remote authenticated users with certain permissions to read arbitrary files or possibly execute arbitrary code via a .. (dot dot) in the _skin parameter to index.php.
References
Vulnerable Configurations
  • cpe:2.3:a:roundcube:roundcube_webmail:1.0.7
    cpe:2.3:a:roundcube:roundcube_webmail:1.0.7
  • cpe:2.3:a:roundcube:roundcube_webmail:1.1.0
    cpe:2.3:a:roundcube:roundcube_webmail:1.1.0
  • cpe:2.3:a:roundcube:roundcube_webmail:1.1.1
    cpe:2.3:a:roundcube:roundcube_webmail:1.1.1
  • cpe:2.3:a:roundcube:roundcube_webmail:1.1.2
    cpe:2.3:a:roundcube:roundcube_webmail:1.1.2
  • cpe:2.3:a:roundcube:roundcube_webmail:1.1.3
    cpe:2.3:a:roundcube:roundcube_webmail:1.1.3
CVSS
Base: 6.0 (as of 19-02-2016 - 14:24)
Impact:
Exploitability:
CWE CWE-22
CAPEC
  • Relative Path Traversal
    An attacker exploits a weakness in input validation on the target by supplying a specially constructed path utilizing dot and slash characters for the purpose of obtaining access to arbitrary files or resources. An attacker modifies a known path on the target in order to reach material that is not available through intended channels. These attacks normally involve adding additional path separators (/ or \) and/or dots (.), or encodings thereof, in various combinations in order to reach parent directories or entirely separate trees of the target's directory structure.
  • Directory Traversal
    An attacker with access to file system resources, either directly or via application logic, will use various file path specification or navigation mechanisms such as ".." in path strings and absolute paths to extend their range of access to inappropriate areas of the file system. The attacker attempts to either explore the file system for recon purposes or access directories and files that are intended to be restricted from their access. Exploring the file system can be achieved through constructing paths presented to directory listing programs, such as "ls" and 'dir', or through specially crafted programs that attempt to explore the file system. The attacker engaging in this type of activity is searching for information that can be used later in a more exploitive attack. Access to restricted directories or files can be achieved through modification of path references utilized by system applications.
  • File System Function Injection, Content Based
    An attack of this type exploits the host's trust in executing remote content including binary files. The files are poisoned with a malicious payload (targeting the file systems accessible by the target software) by the attacker and may be passed through standard channels such as via email, and standard web content like PDF and multimedia files. The attacker exploits known vulnerabilities or handling routines in the target processes. Vulnerabilities of this type have been found in a wide variety of commercial applications from Microsoft Office to Adobe Acrobat and Apple Safari web browser. When the attacker knows the standard handling routines and can identify vulnerabilities and entry points they can be exploited by otherwise seemingly normal content. Once the attack is executed, the attackers' program can access relative directories such as C:\Program Files or other standard system directories to launch further attacks. In a worst case scenario, these programs are combined with other propagation logic and work as a virus.
  • Using Slashes and URL Encoding Combined to Bypass Validation Logic
    This attack targets the encoding of the URL combined with the encoding of the slash characters. An attacker can take advantage of the multiple way of encoding an URL and abuse the interpretation of the URL. An URL may contain special character that need special syntax handling in order to be interpreted. Special characters are represented using a percentage character followed by two digits representing the octet code of the original character (%HEX-CODE). For instance US-ASCII space character would be represented with %20. This is often referred as escaped ending or percent-encoding. Since the server decodes the URL from the requests, it may restrict the access to some URL paths by validating and filtering out the URL requests it received. An attacker will try to craft an URL with a sequence of special characters which once interpreted by the server will be equivalent to a forbidden URL. It can be difficult to protect against this attack since the URL can contain other format of encoding such as UTF-8 encoding, Unicode-encoding, etc.
  • Manipulating Input to File System Calls
    An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.
  • Using Escaped Slashes in Alternate Encoding
    This attack targets the use of the backslash in alternate encoding. An attacker can provide a backslash as a leading character and causes a parser to believe that the next character is special. This is called an escape. By using that trick, the attacker tries to exploit alternate ways to encode the same character which leads to filter problems and opens avenues to attack.
  • Using Slashes in Alternate Encoding
    This attack targets the encoding of the Slash characters. An attacker would try to exploit common filtering problems related to the use of the slashes characters to gain access to resources on the target host. Directory-driven systems, such as file systems and databases, typically use the slash character to indicate traversal between directories or other container components. For murky historical reasons, PCs (and, as a result, Microsoft OSs) choose to use a backslash, whereas the UNIX world typically makes use of the forward slash. The schizophrenic result is that many MS-based systems are required to understand both forms of the slash. This gives the attacker many opportunities to discover and abuse a number of common filtering problems. The goal of this pattern is to discover server software that only applies filters to one version, but not the other.
Access
VectorComplexityAuthentication
NETWORK MEDIUM SINGLE_INSTANCE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
exploit-db via4
description Roundcube 1.1.3 - Path Traversal Vulnerability. CVE-2015-8770. Webapps exploit for php platform
file exploits/php/webapps/39245.txt
id EDB-ID:39245
last seen 2016-02-04
modified 2016-01-15
platform php
port 80
published 2016-01-15
reporter High-Tech Bridge SA
source https://www.exploit-db.com/download/39245/
title Roundcube 1.1.3 - Path Traversal Vulnerability
type webapps
nessus via4
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-81.NASL
    description This update to roundcubemail 1.0.8 fixes the following issues : - CVE-2015-8770: Path traversal vulnerability allowed code execution to remote authenticated users if they were also upload files to the same server through some other method (boo#962067) This update also contains all upstream fixes in 1.0.8. The package was updated to use generic PHP requirements for use with other prefixes than 'php5-'
    last seen 2019-02-21
    modified 2016-10-13
    plugin id 88164
    published 2016-01-26
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=88164
    title openSUSE Security Update : roundcubemail (openSUSE-2016-81)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DSA-3541.NASL
    description High-Tech Bridge Security Research Lab discovered that Roundcube, a webmail client, contained a path traversal vulnerability. This flaw could be exploited by an attacker to access sensitive files on the server, or even execute arbitrary code.
    last seen 2019-02-21
    modified 2018-11-10
    plugin id 90369
    published 2016-04-07
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=90369
    title Debian DSA-3541-1 : roundcube - security update
  • NASL family Gentoo Local Security Checks
    NASL id GENTOO_GLSA-201603-03.NASL
    description The remote host is affected by the vulnerability described in GLSA-201603-03 (Roundcube: Multiple Vulnerabilities) Remote authenticated users with certain permissions can read arbitrary files or possibly execute arbitrary code via .. in the _skin parameter to index.php. Additionally, a cross-site scripting (XSS) vulnerability in program/js/app.js allows remote authenticated users to inject arbitrary web script or HTML via the file name in a drag-n-drop file upload. Impact : A remote authenticated user could possibly execute arbitrary code with the privileges of the process, inject arbitrary web scripts or HTML, read arbitrary files, or perform XSS. Workaround : There is no known workaround at this time.
    last seen 2019-02-21
    modified 2016-10-10
    plugin id 89809
    published 2016-03-10
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=89809
    title GLSA-201603-03 : Roundcube: Multiple Vulnerabilities
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-84.NASL
    description Update to 1.0.8 - Add workaround for https://bugs.php.net/bug.php?id=70757 (#1490582) - Fix HTML sanitizer to skip in output (#1490583) - Fix charset encoding of message/rfc822 part bodies (#1490606) - Fix handling of message/rfc822 attachments on replies and forwards (#1490607) - Fix PDF support detection in Firefox > 19 (#1490610) - Fix path traversal vulnerability (CWE-22) in setting a skin (#1490620) [CVE-2015-8770] [bnc#962067] - Fix so drag-n-drop of text (e.g. recipient addresses) on compose page actually works (#1490619) - Fix .htaccess rewrite rules to not block .well-known URIs (#1490615) - Updated apache2 config
    last seen 2019-02-21
    modified 2016-10-13
    plugin id 88397
    published 2016-01-27
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=88397
    title openSUSE Security Update : roundcubemail (openSUSE-2016-84)
  • NASL family Debian Local Security Checks
    NASL id DEBIAN_DLA-392.NASL
    description High-Tech Bridge Security Research Lab discovered a path traversal vulnerability in a popular webmail client Roundcube. Vulnerability can be exploited to gain access to sensitive information and under certain circumstances to execute arbitrary code and totally compromise the vulnerable server. The vulnerability exists due to insufficient sanitization of '_skin' HTTP POST parameter in '/index.php' script when changing between different skins of the web application. A remote authenticated attacker can use path traversal sequences (e.g. '../../') to load a new skin from arbitrary location on the system, readable by the webserver. (sorry for first uploading a package with a wrong version 0.3.1-6+dab6u1) NOTE: Tenable Network Security has extracted the preceding description block directly from the DLA security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues.
    last seen 2019-02-21
    modified 2018-07-09
    plugin id 87976
    published 2016-01-19
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=87976
    title Debian DLA-392-1 : roundcube security update
  • NASL family SuSE Local Security Checks
    NASL id OPENSUSE-2016-80.NASL
    description This update to roundcubemail 1.1.4 fixes the following issues : - CVE-2015-8770: Path traversal vulnerability allowed code execution to remote authenticated users if they were also upload files to the same server through some other method (boo#962067) This update also contains all upstream fixes in 1.1.4. The package was updated to use generic PHP requirements for use with other prefixes than 'php5-'
    last seen 2019-02-21
    modified 2016-10-13
    plugin id 88163
    published 2016-01-26
    reporter Tenable
    source https://www.tenable.com/plugins/index.php?view=single&id=88163
    title openSUSE Security Update : roundcubemail (openSUSE-2016-80)
packetstorm via4
data source https://packetstormsecurity.com/files/download/135274/roundcube113-traversal.txt
id PACKETSTORM:135274
last seen 2016-12-05
published 2016-01-15
reporter High-Tech Bridge SA
source https://packetstormsecurity.com/files/135274/Roundcube-1.1.3-Path-Traversal.html
title Roundcube 1.1.3 Path Traversal
refmap via4
bugtraq 20160113 Remote Code Execution in Roundcube
confirm
debian DSA-3541
gentoo GLSA-201603-03
misc
suse
  • openSUSE-SU-2016:0210
  • openSUSE-SU-2016:0213
  • openSUSE-SU-2016:0214
Last major update 05-12-2016 - 22:04
Published 29-01-2016 - 14:59
Last modified 09-10-2018 - 15:58
Back to Top