Apache Tomcat 5.5.x < 5.5.30

Medium Nessus Plugin ID 47749

Synopsis

The remote Apache Tomcat server is affected by multiple vulnerabilities.

Description

According to its self-reported version number, the Apache Tomcat server listening on the remote host is 5.5.x prior to 5.5.30. It is, therefore, 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.

Solution

Upgrade to Tomcat version 5.5.30 or later.

See Also

http://tomcat.apache.org/security-5.html#Fixed_in_Apache_Tomcat_5.5.30

http://seclists.org/bugtraq/2010/Apr/200

http://www.nessus.org/u?809a4670

https://seclists.org/fulldisclosure/2011/Feb/74

Plugin Details

Severity: Medium

ID: 47749

File Name: tomcat_transfer_encoding.nasl

Version: 1.33

Type: remote

Family: Web Servers

Published: 2010/07/16

Updated: 2018/11/15

Dependencies: 39446

Risk Information

Risk Factor: Medium

CVSS Score Source: CVE-2010-2227

CVSS v2.0

Base Score: 6.4

Temporal Score: 5

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

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

CVSS v3.0

Base Score: 6.5

Temporal Score: 5.9

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:apache:tomcat

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2010/07/09

Vulnerability Publication Date: 2010/07/09

Reference Information

CVE: CVE-2010-3718, CVE-2010-2227, CVE-2010-1157

BID: 39635, 41544, 46177

Secunia: 39574, 43198