GLSA-200408-15 : Tomcat: Insecure installation

high Nessus Plugin ID 14571

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-200408-15 (Tomcat: Insecure installation)

The Gentoo ebuild for Tomcat sets the ownership of the Tomcat init scripts as tomcat:tomcat, but those scripts are executed with root privileges when the system is started. This may allow a member of the tomcat group to run arbitrary code with root privileges when the Tomcat init scripts are run.
Impact :

This could lead to a local privilege escalation or root compromise by authenticated users.
Workaround :

Users may change the ownership of /etc/init.d/tomcat* and /etc/conf.d/tomcat* to be root:root:
# chown -R root:root /etc/init.d/tomcat* # chown -R root:root /etc/conf.d/tomcat*

Solution

All Tomcat users can upgrade to the latest stable version, or simply apply the workaround:
# emerge sync # emerge -pv '>=www-servers/tomcat-5.0.27-r3' # emerge '>=www-servers/tomcat-5.0.27-r3'

See Also

https://security.gentoo.org/glsa/200408-15

Plugin Details

Severity: High

ID: 14571

File Name: gentoo_GLSA-200408-15.nasl

Version: 1.16

Type: local

Published: 8/30/2004

Updated: 1/6/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.2

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:tomcat, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Patch Publication Date: 8/15/2004

Vulnerability Publication Date: 8/2/2004

Reference Information

CVE: CVE-2004-1452

GLSA: 200408-15