This host is installed with IBM Websphere
Application Server and is prone to cross-site request forgery vulnerability.
###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ibm_websphere_app_server_csrf_vuln.nasl 13803 2019-02-21 08:24:24Z cfischer $
#
# IBM Websphere Application Server CSRF Vulnerability
#
# Authors:
# Shakeel <[email protected]>
#
# Copyright:
# Copyright (C) 2017 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.811019");
script_version("$Revision: 13803 $");
script_cve_id("CVE-2017-1194");
script_bugtraq_id(98142);
script_tag(name:"cvss_base", value:"6.8");
script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");
script_tag(name:"last_modification", value:"$Date: 2019-02-21 09:24:24 +0100 (Thu, 21 Feb 2019) $");
script_tag(name:"creation_date", value:"2017-05-05 11:13:19 +0530 (Fri, 05 May 2017)");
script_tag(name:"qod_type", value:"remote_banner_unreliable"); # we are not able to get the interim fix version...
script_name("IBM Websphere Application Server CSRF Vulnerability");
script_tag(name:"summary", value:"This host is installed with IBM Websphere
Application Server and is prone to cross-site request forgery 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 as the application fails to
properly validate HTTP requests.");
script_tag(name:"impact", value:"Successful exploitation of this issue may
allow a remote attacker to perform certain unauthorized actions and gain access
to the affected application. Other attacks are also possible.");
script_tag(name:"affected", value:"IBM WebSphere Application Server versions
9.0.0.0 through 9.0.0.3, 8.5.0.0 through 8.5.5.11, 8.0.0.0 through 8.0.0.13,
7.0.0.0 through 7.0.0.43, WebSphere Application Server Liberty prior to
17.0.0.2");
script_tag(name:"solution", value:"Upgrade to IBM WebSphere Application
Server (WAS) 9.0.0.4, or 8.5.5.12, or 8.0.0.14, or 7.0.0.45 or later, or
WebSphere Application Server Liberty 17.0.0.2 or later.");
script_tag(name:"solution_type", value:"VendorFix");
script_xref(name:"URL", value:"http://www-01.ibm.com/support/docview.wss?uid=swg22001226");
script_category(ACT_GATHER_INFO);
script_copyright("Copyright (C) 2017 Greenbone Networks GmbH");
script_family("Web Servers");
script_dependencies("gb_ibm_websphere_detect.nasl");
script_mandatory_keys("ibm_websphere_application_server/installed");
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(!appVer = get_app_version(cpe:CPE, nofork:TRUE))
exit(0);
liberty = get_kb_item("ibm_websphere_application_server/liberty/profile/installed");
if (liberty)
{
if(version_is_less(version:appVer, test_version:"17.0.0.2")){
fix = "17.0.0.2";
}
}
else
{
if( (appVer =~ "^9\.0") && (version_is_less(version:appVer, test_version:'9.0.0.4'))){
fix = "9.0.0.4";
}
else if( (appVer =~ "^8\.5") && (version_is_less(version:appVer, test_version:'8.5.5.12'))){
fix = "8.5.5.12";
}
else if( (appVer =~ "^8\.0") && (version_is_less(version:appVer, test_version:'8.0.0.14'))){
fix = "8.0.0.14";
}
else if( (appVer =~ "^7\.0") && (version_is_less(version:appVer, test_version:'7.0.0.45'))){
fix = "7.0.0.45";
}
}
if(fix)
{
report = report_fixed_ver(installed_version:appVer, fixed_version:fix);
security_message(port:0, data:report);
exit(0);
}
exit(99);