IBM Websphere Application Server CRLF Injection Vulnerability Feb16

2016-03-01T00:00:00
ID OPENVAS:1361412562310806883
Type openvas
Reporter Copyright (C) 2016 Greenbone Networks GmbH
Modified 2018-11-21T00:00:00

Description

This host is installed with IBM Websphere application server and is prone to CRLF injection vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ibm_websphere_crlf_vuln01_feb16.nasl 12456 2018-11-21 09:45:52Z cfischer $
#
# IBM Websphere Application Server CRLF Injection Vulnerability Feb16
#
# Authors:
# Kashinath T <tkashinath@secpod.com>
#
# Copyright:
# Copyright (C) 2016 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.
###############################################################################

CPE = "cpe:/a:ibm:websphere_application_server";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.806883");
  script_version("$Revision: 12456 $");
  script_cve_id("CVE-2015-2017");
  script_bugtraq_id(78457);
  script_tag(name:"cvss_base", value:"4.3");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:N/I:P/A:N");
  script_tag(name:"last_modification", value:"$Date: 2018-11-21 10:45:52 +0100 (Wed, 21 Nov 2018) $");
  script_tag(name:"creation_date", value:"2016-03-01 14:45:31 +0530 (Tue, 01 Mar 2016)");
  script_tag(name:"qod_type", value:"remote_banner");
  script_name("IBM Websphere Application Server CRLF Injection Vulnerability Feb16");

  script_tag(name:"summary", value:"This host is installed with IBM Websphere
  application server and is prone to CRLF injection vulnerability.");

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

  script_tag(name:"insight", value:"The flaw is due to an
  HTTP response splitting attack vulnerability.");

  script_tag(name:"impact", value:"Successful exploitation will allow a remote
  attacker to use specially-crafted URL to cause the server to return a split
  response, once the URL is clicked. This would allow the attacker to perform
  further attacks, such as Web cache poisoning, cross-site scripting, and
  possibly obtain sensitive information.");

  script_tag(name:"affected", value:"IBM WebSphere Application Server (WAS)
  6.1 through 6.1.0.47, 7.0 before 7.0.0.39, 8.0 before 8.0.0.12,
  and 8.5 before 8.5.5.8.");

  script_tag(name:"solution", value:"Upgrade to IBM WebSphere Application
  Server (WAS) 6.1.0.48, or 7.0.0.39, or 8.0.0.12, or 8.5.5.8");

  script_tag(name:"solution_type", value:"VendorFix");

  script_xref(name:"URL", value:"http://www-01.ibm.com/support/docview.wss?uid=swg21966837");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2016 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_ibm_websphere_detect.nasl");
  script_mandatory_keys("ibm_websphere_application_server/installed");
  script_require_ports("Services/www", 80);
  script_xref(name:"URL", value:"http://www-03.ibm.com/software/products/en/appserv-was");
  exit(0);
}

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

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

if(!wasVer = get_app_version(cpe:CPE, port:wasPort)){
  exit(0);
}

if(version_in_range(version:wasVer, test_version:"6.1", test_version2:"6.1.0.47"))
{
   fix = "6.1.0.48";
   VULN = TRUE;
}

else if(version_in_range(version:wasVer, test_version:"7.0", test_version2:"7.0.0.38"))
{
   fix = "7.0.0.39";
   VULN = TRUE;
}

else if(version_in_range(version:wasVer, test_version:"8.0", test_version2:"8.0.0.11"))
{
   fix = "8.0.0.12";
   VULN = TRUE;
}

else if(version_in_range(version:wasVer, test_version:"8.5", test_version2:"8.5.5.7"))
{
   fix = "8.5.5.8";
   VULN = TRUE;
}

if(VULN)
{
  report = report_fixed_ver(installed_version:wasVer, fixed_version:fix);
  security_message(data:report, port:wasPort);
  exit(0);
}