ManageEngine Desktop Central MSP Arbitrary Code Execution Vulnerability

2015-07-08T00:00:00
ID OPENVAS:1361412562310805716
Type openvas
Reporter Copyright (C) 2015 Greenbone Networks GmbH
Modified 2017-05-15T00:00:00

Description

This host is installed with ManageEngine Desktop Central MSP and is prone to an arbitrary code execution vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_manage_engine_desktop_central_code_exec_vuln.nasl 6125 2017-05-15 09:03:42Z teissa $
#
# ManageEngine Desktop Central MSP Arbitrary Code Execution Vulnerability
#
# Authors:
# Deependra Bapna <bdeepednra@secpod.com>
#
# Copyright:
# Copyright (c) 2015 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
# 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:zohocorp:manageengine_desktop_central";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.805716");
  script_version("$Revision: 6125 $");
  script_tag(name:"cvss_base", value:"10.0");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_tag(name:"last_modification", value:"$Date: 2017-05-15 11:03:42 +0200 (Mon, 15 May 2017) $");
  script_tag(name:"creation_date", value:"2015-07-08 18:54:23 +0530 (Wed, 08 Jul 2015)");
  script_name("ManageEngine Desktop Central MSP Arbitrary Code Execution Vulnerability");

  script_tag(name: "summary" , value:"This host is installed with ManageEngine
  Desktop Central MSP and is prone to an  arbitrary code execution vulnerability.");

  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:"The flaw exists as 'NativeAppServlet' servlet
  does not sanitize user input.");

  script_tag(name:"impact", value:"Successful exploitation will allow remote
  attacker to execute arbitrary code.

  Impact Level: System/Application");

  script_tag(name: "affected" , value:"ManageEngine Desktop Central MSP
  before 90075.");

  script_tag(name: "solution" , value:"Upgrade to ManageEngine Desktop Central
  MSP 90075 or later. 
  For updates refer to https://www.manageengine.com/desktop-management-msp");

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

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

  script_xref(name:"URL", value:"http://www.zerodayinitiative.com/advisories/ZDI-14-420/");

  script_copyright("Copyright (C) 2015 Greenbone Networks GmbH");
  script_category(ACT_GATHER_INFO);
  script_family("Web application abuses");
  script_dependencies("gb_manage_engine_desktop_central_detect.nasl");
  script_mandatory_keys("ManageEngine/Desktop_Central/installed");
  script_require_ports("Services/www", 8383);
  exit(0);
}


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

## Variable Initialization
meVer = "";
mePort = "";

## get the port
if(!mePort = get_app_port(cpe:CPE)){
  exit(0);
}

## Get the version
if(!meVer = get_app_version(cpe:CPE, port:mePort)){
  exit(0);
}

if(version_is_less(version:meVer, test_version:"90075"))
{
  report = 'Installed Version: ' + meVer + '\n' +
           'Fixed Version:     90075 \n';
  security_message(data:report, port:mePort);
  exit(0);
}