Apache Traffic Server (ATS) Denial of Service Vulnerability

2017-11-29T00:00:00
ID OPENVAS:1361412562310812229
Type openvas
Reporter This script is Copyright (C) 2017 Greenbone Networks GmbH
Modified 2018-10-19T00:00:00

Description

This host is installed with Apache Traffic Server and is prone to denial of service vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_apache_traffic_server_dos_vuln.nasl 11983 2018-10-19 10:04:45Z mmartin $
#
# Apache Traffic Server (ATS) Denial of Service Vulnerability
#
# Authors:
# Kashinath T <tkashinath@secpod.com>
#
# Copyright:
# Copyright (c) 2017 Greenbone Networks GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version
#
# 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.
###############################################################################

CPE = 'cpe:/a:apache:traffic_server';

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.812229");
  script_version("$Revision: 11983 $");
  script_cve_id("CVE-2015-3249");
  script_tag(name:"last_modification", value:"$Date: 2018-10-19 12:04:45 +0200 (Fri, 19 Oct 2018) $");
  script_tag(name:"creation_date", value:"2017-11-29 16:59:37 +0530 (Wed, 29 Nov 2017)");
  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_name("Apache Traffic Server (ATS) Denial of Service Vulnerability");

  script_tag(name:"summary", value:"This host is installed with Apache Traffic
  Server and is prone to denial of service vulnerability.");

  script_tag(name:"vuldetect", value:"Checks if a vulnerable version is present on the target host.");

  script_tag(name:"insight", value:"The flaw exists due to an error in
  'frame_handlers array' and 'set_dynamic_table_size function'.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attackers to cause a denial of service (out-of-bounds access and daemon crash)
  or possibly execute arbitrary code.");

  script_tag(name:"affected", value:"Apache Traffic Server 5.3.x before 5.3.1");

  script_tag(name:"solution", value:"Upgrade to Apache Wicket version 5.3.1
  or later.");

  script_tag(name:"qod_type", value:"remote_banner");
  script_tag(name:"solution_type", value:"VendorFix");
  script_copyright("This script is Copyright (C) 2017 Greenbone Networks GmbH");
  script_category(ACT_GATHER_INFO);
  script_family("Web application abuses");
  script_dependencies("gb_apache_traffic_detect.nasl");
  script_mandatory_keys("apache_trafficserver/installed");
  script_xref(name:"URL", value:"https://yahoo-security.tumblr.com/post/122883273670/apache-traffic-server-http2-fuzzing");
  script_xref(name:"URL", value:"http://trafficserver.apache.org/");
  exit(0);
}

include("host_details.inc");
include("version_func.inc");

if (!port = get_app_port(cpe: CPE)){
  exit(0);
}

if(!infos = get_app_version_and_location(cpe:CPE, port:port, exit_no_version:TRUE)) exit(0);
atsVer = infos['version'];
atsPath = infos['location'];

if(atsVer =~ "^(5\.3)")
{
  if(version_is_less(version: atsVer, test_version: "5.3.1"))
  {
    report = report_fixed_ver(installed_version: atsVer, fixed_version: "5.3.1", install_path:atsPath);
    security_message(port: port, data: report);
    exit(0);
  }
}
exit(0);