EPESI < 1.8.2.1 Multiple XSS Vulnerabilities

2018-06-29T00:00:00
ID OPENVAS:1361412562310112319
Type openvas
Reporter Copyright (C) 2018 Greenbone Networks GmbH
Modified 2018-06-29T00:00:00

Description

EPESI is prone to multiple cross-site scripting (XSS) vulnerabilities in various parameters.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_epesi_mult_xss_vuln_02.nasl 10367 2018-06-29 09:29:59Z asteins $
#
# EPESI < 1.8.2.1 Multiple XSS Vulnerabilities
#
# Authors:
# Adrian Steins <adrian.steins@greenbone.net>
#
# Copyright:
# Copyright (C) 2018 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 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.
###############################################################################

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.112319");
  script_version("$Revision: 10367 $");
  script_cve_id("CVE-2017-8763", "CVE-2017-9331", "CVE-2017-9366", "CVE-2017-9621", "CVE-2017-9622", "CVE-2017-9623", "CVE-2017-9624");
  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-06-29 11:29:59 +0200 (Fri, 29 Jun 2018) $");
  script_tag(name:"creation_date", value:"2018-06-29 11:16:00 +0200 (Fri, 29 Jun 2018)");
  script_name("EPESI < 1.8.2.1 Multiple XSS Vulnerabilities");
  script_category(ACT_GATHER_INFO);
  script_family("Web application abuses");
  script_copyright("Copyright (C) 2018 Greenbone Networks GmbH");
  script_dependencies("gb_epesi_detect.nasl");
  script_mandatory_keys("epesi/installed");

  script_xref(name:"URL", value:"https://github.com/Telaxus/EPESI/issues/185");
  script_xref(name:"URL", value:"https://github.com/Telaxus/EPESI/issues/186");
  script_xref(name:"URL", value:"https://github.com/Telaxus/EPESI/issues/182");
  script_xref(name:"URL", value:"https://github.com/Telaxus/EPESI/issues/193");
  script_xref(name:"URL", value:"https://github.com/Telaxus/EPESI/issues/196");

  script_tag(name:"summary", value:"EPESI is prone to multiple cross-site scripting (XSS) vulnerabilities in various parameters.");

  script_tag(name:"affected", value:"EPESI up to and including version 1.8.2.");

  script_tag(name:"solution", value:"Update to EPESI version 1.8.2.1 (rev20170701) or later.");

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

  exit(0);
}

CPE = "cpe:/a:telaxus:epesi";

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

if(!port = get_app_port(cpe:CPE)) exit(0);
if(!vers = get_app_version(cpe:CPE, port:port)) exit(0);
if(!rev = get_kb_item("epesi/revision")) exit(0);

vers = vers + "-" + rev;

if(version_is_less_equal(version:vers, test_version:"1.8.2-20170701")) {
  report = report_fixed_ver(installed_version:vers, fixed_version:"1.8.2.1 (rev 20170701)");
  security_message(port:port, data:report);
  exit(0);
}

exit(99);