ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload - Nessus

Critical   Plugin ID: 71218

This page contains detailed information about the ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 71218
Name: ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload
Filename: manageengine_desktop_central_build_80292_file_upload.nasl
Vulnerability Published: 2013-11-18
This Plugin Published: 2013-12-04
Last Modification Time: 2021-01-19
Plugin Version: 1.12
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: manageengine_desktop_central_detect.nbin
Required KB Items [?]: installed_sw/ManageEngine Desktop Central

Vulnerability Information


Severity: Critical
Vulnerability Published: 2013-11-18
Patch Published: 2013-10-30
CVE [?]: CVE-2013-7390
CPE [?]: cpe:/a:zohocorp:manageengine_desktop_central

Synopsis

The remote web server contains a Java web application that allows for arbitrary file uploads.

Description

The version of ManageEngine Desktop Central installed on the remote host is affected by an arbitrary file upload vulnerability due to the 'AgentLogUploadServlet' script not properly sanitizing user-supplied input to the 'filename' parameter. A remote, unauthenticated attacker can exploit this issue to upload files containing arbitrary code and then execute them on the remote host with NT-AUTHORITY\SYSTEM privileges.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to ManageEngine Desktop Central 8.0.0 build 80293 or later.

Public Exploits


Target Network Port(s): 8020, 8383
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload vulnerability:

  1. Metasploit: exploit/windows/http/desktopcentral_file_upload
    [ManageEngine Desktop Central AgentLogUpload Arbitrary File Upload]
  2. Exploit-DB: exploits/windows/remote/29812.rb
    [EDB-29812: DesktopCentral AgentLogUpload - Arbitrary File Upload (Metasploit)]
  3. Exploit-DB: exploits/jsp/webapps/29674.txt
    [EDB-29674: ManageEngine Desktop Central 8.0.0 build < 80293 - Arbitrary File Upload]
  4. Exploit-DB: exploits/jsp/webapps/34518.txt
    [EDB-34518: ManageEngine Desktop Central - Arbitrary File Upload / Remote Code Execution]

Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.

WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.

Risk Information


CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:ND
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:8.3 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.3 (High)

Go back to menu.

Plugin Source


This is the manageengine_desktop_central_build_80292_file_upload.nasl nessus plugin source code. This script is Copyright (C) 2013-2021 and is owned by Tenable, Inc. or an Affiliate thereof.

#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#

include('deprecated_nasl_level.inc');
include('compat.inc');

if (description)
{
  script_id(71218);
  script_version("1.12");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id("CVE-2013-7390");
  script_bugtraq_id(63784);
  script_xref(name:"EDB-ID", value:"29674");
  script_xref(name:"EDB-ID", value:"29812");

  script_name(english:"ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload");
  script_summary(english:"Checks the build number of Desktop Central.");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server contains a Java web application that allows for
arbitrary file uploads.");
  script_set_attribute(attribute:"description", value:
"The version of ManageEngine Desktop Central installed on the remote
host is affected by an arbitrary file upload vulnerability due to the
'AgentLogUploadServlet' script not properly sanitizing user-supplied
input to the 'filename' parameter. A remote, unauthenticated attacker
can exploit this issue to upload files containing arbitrary code and
then execute them on the remote host with NT-AUTHORITY\SYSTEM
privileges.

Note that Nessus has not tested for this issue but has instead relied
only on the application's self-reported version number.");
  # http://security-assessment.com/files/documents/advisory/DesktopCentral%20Arbitrary%20File%20Upload.pdf
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f57da24d");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2013/Nov/130");
  script_set_attribute(attribute:"see_also", value:"https://seclists.org/fulldisclosure/2013/Nov/152");
  script_set_attribute(attribute:"solution", value:
"Upgrade to ManageEngine Desktop Central 8.0.0 build 80293 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:ND");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'ManageEngine Desktop Central AgentLogUpload Arbitrary File Upload');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2013/11/18");
  script_set_attribute(attribute:"patch_publication_date", value:"2013/10/30");
  script_set_attribute(attribute:"plugin_publication_date", value:"2013/12/04");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:zohocorp:manageengine_desktop_central");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"CGI abuses");

  script_copyright(english:"This script is Copyright (C) 2013-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("manageengine_desktop_central_detect.nbin");
  script_require_keys("installed_sw/ManageEngine Desktop Central");
  script_require_ports("Services/www", 8020, 8383);

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");

appname = "ManageEngine Desktop Central";
get_install_count(app_name:appname, exit_if_zero:TRUE);

port = get_http_port(default:8020);

install = get_single_install(
  app_name            : appname,
  port                : port,
  exit_if_unknown_ver : TRUE
);

dir = install["path"];
version = install["version"];
build   = install["build"];
ismsp   = install["MSP"];
rep_version = version;
if(build !=  UNKNOWN_VER)
  rep_version += " Build "+build;
install_url =  build_url(port:port, qs:dir);

if(ismsp)
  exit(0, "The Managed Service Providers edition of Desktop Central is not known to be affected.");

if (version =~ "^8(\.|$)" && build == UNKNOWN_VER)  exit(0, "The build number of "+appname+" version " +rep_version+ " listening at " +install_url+ " could not be determined.");

if (version =~ "^8(\.|$)" && int(build) < 80293)
{
  if (report_verbosity > 0)
  {
    report =
      '\n  URL               : ' + install_url +
      '\n  Installed version : ' + rep_version +
      '\n  Fixed version     : 8 Build 80293' +
      '\n';
    security_hole(port:port, extra:report);
  }
  else security_hole(port);
  exit(0);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, install_url, rep_version);

The latest version of this script can be found in these locations depending on your platform:

  • Linux / Unix:
    /opt/nessus/lib/nessus/plugins/manageengine_desktop_central_build_80292_file_upload.nasl
  • Windows:
    C:\ProgramData\Tenable\Nessus\nessus\plugins\manageengine_desktop_central_build_80292_file_upload.nasl
  • Mac OS X:
    /Library/Nessus/run/lib/nessus/plugins/manageengine_desktop_central_build_80292_file_upload.nasl

Go back to menu.

How to Run


Here is how to run the ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload as a standalone plugin via the Nessus web user interface (https://localhost:8834/):

  1. Click to start a New Scan.
  2. Select Advanced Scan.
  3. Navigate to the Plugins tab.
  4. On the top right corner click to Disable All plugins.
  5. On the left side table select CGI abuses plugin family.
  6. On the right side table select ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload plugin ID 71218.
  7. Specify the target on the Settings tab and click to Save the scan.
  8. Run the scan.

Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.

Basic usage:

/opt/nessus/bin/nasl manageengine_desktop_central_build_80292_file_upload.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

/opt/nessus/bin/nasl -a manageengine_desktop_central_build_80292_file_upload.nasl -t <IP/HOST>

Run the plugin with trace script execution written to the console (useful for debugging):

/opt/nessus/bin/nasl -T - manageengine_desktop_central_build_80292_file_upload.nasl -t <IP/HOST>

Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):

/opt/nessus/bin/nasl -K /tmp/state manageengine_desktop_central_build_80292_file_upload.nasl -t <IP/HOST>

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 71217 - ManageEngine Desktop Central AgentLogUploadServlet Arbitrary File Upload RCE (intrusive check)
  • 153157 - ManageEngine ADManager Plus < 7111 RCE
  • 152680 - ManageEngine ADSelfService Plus < Build 6102 RCE
  • 153147 - ManageEngine ADSelfService Plus < build 6114 REST API Authentication Bypass
  • 154964 - ManageEngine ADSelfServicePlus Authentication Bypass (CVE-2021-40539)
  • 84017 - ManageEngine Applications Manager FailOverHelperServlet 'fileName' Parameter Arbitrary File Disclosure
  • 144793 - ManageEngine Applications Manager REST API SQLi
  • 117639 - ManageEngine Desktop Central 10 < Build 100282 Remote Privilege Escalation
  • 134677 - ManageEngine Desktop Central 10 < Build 100479 Remote Code Execution
  • 139377 - ManageEngine Desktop Central < 10 Build 10.0.533 Integer Overflow
  • 82078 - ManageEngine Desktop Central statusUpdate Arbitrary File Upload RCE (intrusive check)
  • 82079 - ManageEngine Desktop Central Arbitrary File Upload and RCE (Safe Check)
  • 82080 - ManageEngine Desktop Central Remote Security Bypass (Intrusive Check)
  • 82081 - ManageEngine Desktop Central Remote Security Bypass
  • 82082 - ManageEngine Desktop Central < 9 build 90103 XSRF
  • 135293 - ManageEngine Desktop Central 10 < Build 100479 Remote Code Execution (direct check)
  • 77530 - ManageEngine DeviceExpert Unauthorized Information Disclosure
  • 58428 - ManageEngine DeviceExpert ScheduleResultViewer Remote Directory Traversal
  • 81402 - ManageEngine EventLog Analyzer 'agentHandler' Information Disclosure
  • 153848 - ManageEngine EventLog Analyzer < Build 12201 REST API Restriction Bypass RCE
  • 153636 - ManageEngine Log360 < Build 5229 REST API Restriction Bypass RCE
  • 157290 - ManageEngine NCM < 12.5.465 SQLi
  • 81821 - ManageEngine NetFlow Analyzer Multiple Path Traversal and File Access
  • 81378 - ManageEngine OpManager Multiple Directory Traversal Vulnerabilities
  • 148307 - ManageEngine OpManager Smart Update Manager RCE
  • 81380 - ManageEngine OpManager Default Credentials
  • 80960 - ManageEngine Password Manager Pro 6.5 < 7.1 Build 7105 Blind SQL Injection
  • 80962 - ManageEngine Password Manager Pro < 7.0 Build 7003 SQL Injection
  • 63206 - ManageEngine Security Manager Plus 'f' Directory Traversal Arbitrary File Access
  • 143600 - ManageEngine ServiceDesk Plus < 10.0 Build 10012 Arbitrary File Upload
  • 155864 - ManageEngine ServiceDesk Plus < 11.3 Build 11306 / ManageEngine ServiceDesk Plus MSP < 10.5 Build 10530 RCE
  • 151286 - ManageEngine ServiceDesk Plus < 11.2 Build 11205 RCE
  • 55446 - ManageEngine ServiceDesk Plus FileDownload.jsp FILENAME Parameter Traversal Arbitrary File Access
  • 58976 - ManageEngine SupportCenter Plus < 7.9 Build 7905 Multiple Vulnerabilities
  • 72257 - ManageEngine SupportCenter Plus < 7.9 Build 7917 attach Parameter Directory Traversal

Version


This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file manageengine_desktop_central_build_80292_file_upload.nasl version 1.12. For more plugins, visit the Nessus Plugin Library.

Go back to menu.