GE SNMP/Web Interface Multiple Vulnerabilities

2016-03-01T00:00:00
ID OPENVAS:1361412562310807075
Type openvas
Reporter Copyright (C) 2016 Greenbone Networks GmbH
Modified 2017-04-03T00:00:00

Description

This host is installed with SNMP/Web Interface adapter and is prone to multiple vulnerabilities.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_ge_snmp_web_interface_mult_vuln.nasl 5836 2017-04-03 09:37:08Z teissa $
#
# GE SNMP/Web Interface Multiple Vulnerabilities
#
# Authors:
# Rinu Kuriakose <krinu@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:ge:ups_snmp_web_adapter_firmware";

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.807075");
  script_version("$Revision: 5836 $");
  script_cve_id("CVE-2016-0861", "CVE-2016-0862");
  script_bugtraq_id(82407);
  script_tag(name:"cvss_base", value:"9.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:C/I:C/A:C");
  script_tag(name:"last_modification", value:"$Date: 2017-04-03 11:37:08 +0200 (Mon, 03 Apr 2017) $");
  script_tag(name:"creation_date", value:"2016-03-01 14:45:29 +0530 (Tue, 01 Mar 2016)");
  script_tag(name:"qod_type", value:"remote_banner");
  script_name("GE SNMP/Web Interface Multiple Vulnerabilities");

  script_tag(name:"summary", value:"This host is installed with SNMP/Web Interface 
  adapter and is prone to multiple vulnerabilities.");

  script_tag(name:"vuldetect", value:"Get the installed version with the help of
  detect NVT and check the version is vulnerable or not.");

  script_tag(name:"insight", value:"Multiple flaws are due to,
  - Device does not perform strict input validation.
  - File contains sensitive account information stored in cleartext.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  authenticated users to execute arbitrary command on the system and to obtain 
  sensitive cleartext account information impacting the confidentiality,
  integrity, and availability of the system.

  Impact Level: Application");

  script_tag(name:"affected", value:"General Electric (GE) Industrial Solutions 
  UPS SNMP/Web Adapter devices with firmware version before 4.8");

  script_tag(name: "solution" , value:"Upgrade to GE SNMP/Web Interface adapter 
  version 4.8 or later.
  For updates refer to http://www.geindustrial.com");

  script_tag(name:"solution_type", value:"VendorFix");
  script_xref(name : "URL" , value : "https://www.exploit-db.com/exploits/39408");
  script_xref(name : "URL" , value : "https://ics-cert.us-cert.gov/advisories/ICSA-16-033-02");

  script_category(ACT_GATHER_INFO);
  script_copyright("Copyright (C) 2016 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_ge_snmp_web_interface_adapter_detect.nasl");
  script_mandatory_keys("SNMP/Web/Adapter/Installed");
  exit(0);
}


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

# Variable Initialization
dir = "";
url = "";
gePort = "";

# Get HTTP Port
if(!gePort = get_app_port(cpe:CPE)){
  exit(0);
}

## Get version
if(!geVer = get_app_version(cpe:CPE, port:gePort)){
  exit(0);
}

## Grep for vulnerable version
if(version_is_less(version:geVer, test_version:"4.8"))
{
  report = report_fixed_ver(installed_version:geVer, fixed_version:"4.8");
  security_message(port:gePort, data:report);
  exit(0);
}