IBM WebSphere Portal Open Redirect Vulnerability

2016-08-25T00:00:00
ID OPENVAS:1361412562310106208
Type openvas
Reporter This script is Copyright (C) 2016 Greenbone Networks GmbH
Modified 2018-09-25T00:00:00

Description

IBM WebSphere Portal is prone to an open redirect vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ibm_websphere_portal_CVE-2015-7428.nasl 11596 2018-09-25 09:49:46Z asteins $
#
# IBM WebSphere Portal Open Redirect Vulnerability
#
# Authors:
# Christian Kuersteiner <christian.kuersteiner@greenbone.net>
#
# Copyright:
# Copyright (c) 2016 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:ibm:websphere_portal';

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.106208");
  script_version("$Revision: 11596 $");
  script_tag(name:"last_modification", value:"$Date: 2018-09-25 11:49:46 +0200 (Tue, 25 Sep 2018) $");
  script_tag(name:"creation_date", value:"2016-08-25 14:33:21 +0700 (Thu, 25 Aug 2016)");
  script_tag(name:"cvss_base", value:"5.8");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:N");

  script_cve_id("CVE-2015-7428");

  script_tag(name:"qod_type", value:"remote_banner");

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

  script_name("IBM WebSphere Portal Open Redirect Vulnerability");

  script_category(ACT_GATHER_INFO);

  script_copyright("This script is Copyright (C) 2016 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_ibm_websphere_portal_detect.nasl");
  script_mandatory_keys("ibm_websphere_portal/installed");

  script_tag(name:"summary", value:"IBM WebSphere Portal is prone to an open redirect vulnerability.");

  script_tag(name:"insight", value:"IBM WebSphere Portal could allow a remote attacker to conduct phishing
attacks, caused by an open redirect vulnerability.");

  script_tag(name:"impact", value:"An attacker could exploit this vulnerability using a specially-crafted
URL to redirect a victim to arbitrary Web sites.");

  script_tag(name:"affected", value:"WebSphere Portal 8.5 and 8.0");

  script_tag(name:"solution", value:"Check the vendor's advisory for sulutions.");

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

  script_tag(name:"vuldetect", value:"Checks the version.");

  exit(0);
}

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

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

if (!version = get_app_version(cpe: CPE, port: port))
  exit(0);

if (version =~ "^8\.5\.0") {
  if (version_is_less(version: version, test_version: "8.5.0.0.9")) {
    report = report_fixed_ver(installed_version: version, fixed_version: "8.5.0.0 CF09");
    security_message(port: port, data: report);
    exit(0);
  }
}

if (version =~ "^8\.0\.0") {
  if (version_is_less(version: version, test_version: "8.0.0.1.20")) {
    report = report_fixed_ver(installed_version: version, fixed_version: "8.0.0.1 CF20");
    security_message(port: port, data: report);
    exit(0);
  }
}

exit(0);