Lucene search

K
openvasCopyright (c) 2012 Greenbone Networks GmbHOPENVAS:881445
HistoryJul 30, 2012 - 12:00 a.m.

CentOS Update for tomcat6 CESA-2011:1780 centos6

2012-07-3000:00:00
Copyright (c) 2012 Greenbone Networks GmbH
plugins.openvas.org
5

0.017 Low

EPSS

Percentile

86.4%

Check for the Version of tomcat6

###############################################################################
# OpenVAS Vulnerability Test
#
# CentOS Update for tomcat6 CESA-2011:1780 centos6 
#
# Authors:
# System Generated Check
#
# Copyright:
# Copyright (c) 2012 Greenbone Networks GmbH, http://www.greenbone.net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2
# (or any later version), as published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
###############################################################################

include("revisions-lib.inc");
tag_insight = "Apache Tomcat is a servlet container for the Java Servlet and JavaServer
  Pages (JSP) technologies.

  APR (Apache Portable Runtime) as mentioned in the CVE-2011-3190 and
  CVE-2011-2526 descriptions does not refer to APR provided by the apr
  packages. It refers to the implementation of APR provided by the Tomcat
  Native library, which provides support for using APR with Tomcat. This
  library is not shipped with Red Hat Enterprise Linux 6. This update
  includes fixes for users who have elected to use APR with Tomcat by taking
  the Tomcat Native library from a different product. Such a configuration is
  not supported by Red Hat, however.
  
  Multiple flaws were found in the way Tomcat handled HTTP DIGEST
  authentication. These flaws weakened the Tomcat HTTP DIGEST authentication
  implementation, subjecting it to some of the weaknesses of HTTP BASIC
  authentication, for example, allowing remote attackers to perform session
  replay attacks. (CVE-2011-1184)
  
  A flaw was found in the way the Coyote (org.apache.coyote.ajp.AjpProcessor)
  and APR (org.apache.coyote.ajp.AjpAprProcessor) Tomcat AJP (Apache JServ
  Protocol) connectors processed certain POST requests. An attacker could
  send a specially-crafted request that would cause the connector to treat
  the message body as a new request. This allows arbitrary AJP messages to be
  injected, possibly allowing an attacker to bypass a web application's
  authentication checks and gain access to information they would otherwise
  be unable to access. The JK (org.apache.jk.server.JkCoyoteHandler)
  connector is used by default when the APR libraries are not present. The JK
  connector is not affected by this flaw. (CVE-2011-3190)
  
  A flaw was found in the Tomcat MemoryUserDatabase. If a runtime exception
  occurred when creating a new user with a JMX client, that user's password
  was logged to Tomcat log files. Note: By default, only administrators have
  access to such log files. (CVE-2011-2204)
  
  A flaw was found in the way Tomcat handled sendfile request attributes when
  using the HTTP APR or NIO (Non-Blocking I/O) connector. A malicious web
  application running on a Tomcat instance could use this flaw to bypass
  security manager restrictions and gain access to files it would otherwise
  be unable to access, or possibly terminate the Java Virtual Machine (JVM).
  The HTTP blocking IO (BIO) connector, which is not vulnerable to this
  issue, is used by default in Red Hat Enterprise Linux 6. (CVE-2011-2526)
  
  Red Hat would like to thank the Apache Tomcat project for reporting the
  CVE-2011-2526 issue.
  
  This update al ... 

  Description truncated, for more information please check the Reference URL";

tag_affected = "tomcat6 on CentOS 6";
tag_solution = "Please Install the Updated Packages.";



if(description)
{
  script_xref(name : "URL" , value : "http://lists.centos.org/pipermail/centos-announce/2011-December/018356.html");
  script_id(881445);
  script_version("$Revision: 8257 $");
  script_tag(name:"last_modification", value:"$Date: 2017-12-29 07:29:46 +0100 (Fri, 29 Dec 2017) $");
  script_tag(name:"creation_date", value:"2012-07-30 17:52:50 +0530 (Mon, 30 Jul 2012)");
  script_cve_id("CVE-2011-1184", "CVE-2011-2204", "CVE-2011-2526", "CVE-2011-3190");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_xref(name: "CESA", value: "2011:1780");
  script_name("CentOS Update for tomcat6 CESA-2011:1780 centos6 ");

  script_tag(name: "summary" , value: "Check for the Version of tomcat6");
  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (c) 2012 Greenbone Networks GmbH");
  script_family("CentOS Local Security Checks");
  script_dependencies("gather-package-list.nasl");
  script_mandatory_keys("ssh/login/centos", "ssh/login/rpms");
  script_tag(name : "affected" , value : tag_affected);
  script_tag(name : "solution" , value : tag_solution);
  script_tag(name : "insight" , value : tag_insight);
  script_tag(name:"qod_type", value:"package");
  script_tag(name:"solution_type", value:"VendorFix");
  exit(0);
}


include("pkg-lib-rpm.inc");

release = get_kb_item("ssh/login/release");

res = "";
if(release == NULL){
  exit(0);
}

if(release == "CentOS6")
{

  if ((res = isrpmvuln(pkg:"tomcat6", rpm:"tomcat6~6.0.24~35.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"tomcat6-admin-webapps", rpm:"tomcat6-admin-webapps~6.0.24~35.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"tomcat6-docs-webapp", rpm:"tomcat6-docs-webapp~6.0.24~35.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"tomcat6-el-2.1-api", rpm:"tomcat6-el-2.1-api~6.0.24~35.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"tomcat6-javadoc", rpm:"tomcat6-javadoc~6.0.24~35.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"tomcat6-jsp-2.1-api", rpm:"tomcat6-jsp-2.1-api~6.0.24~35.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"tomcat6-lib", rpm:"tomcat6-lib~6.0.24~35.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"tomcat6-servlet-2.5-api", rpm:"tomcat6-servlet-2.5-api~6.0.24~35.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if ((res = isrpmvuln(pkg:"tomcat6-webapps", rpm:"tomcat6-webapps~6.0.24~35.el6", rls:"CentOS6")) != NULL)
  {
    security_message(data:res);
    exit(0);
  }

  if (__pkg_match) exit(99); # Not vulnerable.
  exit(0);
}