Apache Tomcat 6.0.x < 6.0.45 / 7.0.x < 7.0.65 / 8.0.x < 8.0.27 Directory Traversal

Medium Nessus Network Monitor Plugin ID 9317

Synopsis

The remote web server is missing an Apache Tomcat patch update.

Description

Apache Tomcat 6.0.x before 6.0.45, 7.0.x before 7.0.65 or 8.0.x before 8.0.27 is affected by a flaw that allows traversing outside of a restricted path. The issue is due to the 'getResource()', 'getResourceAsStream()', and 'getResourcePaths()' ServletContext methods not properly sanitizing user input, specifically path traversal style attacks (e.g. '../'). With a specially crafted request, a remote attacker can gain access to a directory listing.

Solution

Update to Apache Tomcat version 8.0.27 or later. If version 8.0.x cannot be obtained, versions 7.0.65 and 6.0.45 are also patched for these vulnerabilities.

See Also

http://svn.apache.org/viewvc?view=rev&rev=1700900

http://svn.apache.org/viewvc?view=rev&rev=1696284

http://svn.apache.org/viewvc?view=rev&rev=1700898

http://svn.apache.org/viewvc?view=rev&rev=1696281

http://svn.apache.org/viewvc?view=rev&rev=1700897

http://tomcat.apache.org/security-6.html

http://tomcat.apache.org/security-7.html

http://tomcat.apache.org/security-8.html

Plugin Details

Severity: Medium

ID: 9317

File Name: 9317.prm

Family: Web Servers

Published: 2016/05/24

Modified: 2016/09/12

Dependencies: 8928, 8931

Nessus ID: 88935

Risk Information

Risk Factor: Medium

CVSSv2

Base Score: 5

Temporal Score: 4.1

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

Temporal Vector: CVSS2#E:F/RL:OF/RC:C

CVSSv3

Base Score: 5.3

Temporal Score: 4.9

Vector: CVSS3#AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Temporal Vector: CVSS3#E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:apache:tomcat

Patch Publication Date: 2016/02/11

Vulnerability Publication Date: 2016/02/22

Reference Information

CVE: CVE-2015-5174

BID: 83329

OSVDB: 134826