Apache Tomcat 5.5.x < 5.5.30

This script is Copyright (C) 2010-2014 Tenable Network Security, Inc.


Synopsis :

The remote Apache Tomcat service is affected by multiple
vulnerabilities.

Description :

According to its self-reported version number, the Apache Tomcat
listening on the remote host is earlier than Tomcat 5.5.30 and, as
such, may be affected by multiple vulnerabilities.

- An error in the access restriction on a 'ServletContext'
attribute which holds the location of the work
directory in Tomcat's SecurityManager. A remote attacker
may be able to modify the location of the working
directory which then allows improper read and write
access to arbitrary files and directories in the context
of Tomcat.(CVE-2010-3718)

- An error exists in the handling of the
'Transfer-Encoding' header of a client request. This
error affects buffer recycling and may lead to the
disclosure of sensitive information or allow a denial
of service attack to be successful. (CVE-2010-2227)

- An error exists in the handling of the '<realm-name>'
element in a web application's web.xml file. If the
element is missing from the web.xml file and the
application is using BASIC or DIGEST authentication,
Tomcat will include the server's hostname or IP address
in the 'WWW-Authenticate' header of the response.
(CVE-2010-1157)

Note that Nessus did not actually test for the flaws but instead has
relied on the version in Tomcat's banner or error page so this may be
a false positive.

See also :

http://tomcat.apache.org/security-5.html#Fixed_in_Apache_Tomcat_5.5.30
http://archives.neohapsis.com/archives/bugtraq/2010-04/0202.html
http://www.nessus.org/u?809a4670
http://archives.neohapsis.com/archives/fulldisclosure/2011-02/0074.html

Solution :

Upgrade to Tomcat version 5.5.30 or later.

Risk factor :

Medium / CVSS Base Score : 6.5
(CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P)
CVSS Temporal Score : 5.7
(CVSS2#E:ND/RL:OF/RC:C)
Public Exploit Available : true

Family: Web Servers

Nessus Plugin ID: 47749 ()

Bugtraq ID: 39635
41544
46177

CVE ID: CVE-2010-3718
CVE-2010-2227
CVE-2010-1157