SolarWinds Storage Resource Monitor < 6.2 ProcessFileUpload.jsp File Upload RCE - Nessus

Critical   Plugin ID: 86421

This page contains detailed information about the SolarWinds Storage Resource Monitor < 6.2 ProcessFileUpload.jsp File Upload RCE Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 86421
Name: SolarWinds Storage Resource Monitor < 6.2 ProcessFileUpload.jsp File Upload RCE
Filename: solarwinds_storage_resource_mon_6_2_0.nasl
Vulnerability Published: 2015-09-01
This Plugin Published: 2015-10-16
Last Modification Time: 2021-06-03
Plugin Version: 1.9
Plugin Type: local
Plugin Family: Windows
Dependencies: solarwinds_storage_manager_installed.nbin

Vulnerability Information


Severity: Critical
Vulnerability Published: 2015-09-01
Patch Published: 2015-09-01
CVE [?]: CVE-2015-7838
CPE [?]: cpe:/a:solarwinds:storage_manager, x-cpe:/a:solarwinds:storage_resource_monitor

Synopsis

The remote host is running a web application affected by a remote code execution vulnerability.

Description

The remote host is running a version of SolarWinds Storage Resource Monitor (formerly SolarWinds Storage Manager) prior to 6.2. It is, therefore, affected by a remote code execution vulnerability due to improper sanitization of user-uploaded files by the ProcessFileUpload.jsp script. An unauthenticated, remote attacker can exploit this vulnerability to upload malicious PHP scripts, resulting in the execution of arbitrary code with the privileges of the web server.

Solution

Upgrade to SolarWinds Storage Manager version 6.2 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): installed_sw/SolarWinds Storage Manager, installed_sw/SolarWinds Storage Resource Monitor
Exploit Available: True (Exploit-DB, D2 Elliot)
Exploit Ease: Exploits are available

Here's the list of publicly known exploits and PoCs for verifying the SolarWinds Storage Resource Monitor < 6.2 ProcessFileUpload.jsp File Upload RCE vulnerability:

  1. Exploit-DB: exploits/java/remote/34671.rb
    [EDB-34671: SolarWinds Storage Manager - Authentication Bypass (Metasploit)]
  2. D2 Elliot: solarwinds_storage_manager_processfileupload.jsp_file_upload.html
    [Solarwinds Storage Manager ProcessFileUpload.jsp File Upload]

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:C
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)
STIG Severity [?]: I
STIG Risk Rating: High

Go back to menu.

Plugin Source


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

#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(86421);
  script_version("1.9");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/06/03");

  script_cve_id("CVE-2015-7838");
  script_xref(name:"EDB-ID", value:"34671");
  script_xref(name:"IAVA", value:"2015-A-0238-S");

  script_name(english:"SolarWinds Storage Resource Monitor < 6.2 ProcessFileUpload.jsp File Upload RCE");
  script_summary(english:"Checks the version of Storage Resource Monitor.");

  script_set_attribute(attribute:"synopsis", value:
"The remote host is running a web application affected by a remote code
execution vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote host is running a version of SolarWinds Storage Resource
Monitor (formerly SolarWinds Storage Manager) prior to 6.2. It is,
therefore, affected by a remote code execution vulnerability due to
improper sanitization of user-uploaded files by the
ProcessFileUpload.jsp script. An unauthenticated, remote attacker can
exploit this vulnerability to upload malicious PHP scripts, resulting
in the execution of arbitrary code with the privileges of the web
server.");
  # http://www.solarwinds.com/documentation/srm/docs/releasenotes/releasenotes.htm
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?048bbe17");
  script_set_attribute(attribute:"see_also", value:"https://www.zerodayinitiative.com/advisories/ZDI-15-460/");
  script_set_attribute(attribute:"solution", value:
"Upgrade to SolarWinds Storage Manager version 6.2 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:C");

  script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"d2_elliot_name", value:"Solarwinds Storage Manager ProcessFileUpload.jsp File Upload");
  script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2015/09/01");
  script_set_attribute(attribute:"patch_publication_date", value:"2015/09/01");
  script_set_attribute(attribute:"plugin_publication_date", value:"2015/10/16");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:solarwinds:storage_manager");
  script_set_attribute(attribute:"cpe", value:"x-cpe:/a:solarwinds:storage_resource_monitor");
  script_set_attribute(attribute:"stig_severity", value:"I");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows");

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

  script_dependencies("solarwinds_storage_manager_installed.nbin");
  script_require_ports("installed_sw/SolarWinds Storage Manager", "installed_sw/SolarWinds Storage Resource Monitor");

  exit(0);
}

include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("install_func.inc");

storage_res_mon = "SolarWinds Storage Resource Monitor";
storage_mgr     = "SolarWinds Storage Manager";

apps = make_list();
unaffected = make_list();

if (get_install_count(app_name:storage_res_mon) > 0) apps = make_list(apps, storage_res_mon);
if (get_install_count(app_name:storage_mgr) > 0)     apps = make_list(apps, storage_mgr);
if (empty(apps)) audit(AUDIT_NOT_INST, storage_res_mon + "/" + storage_mgr);

foreach app_name (apps)
{
  install = get_single_install(app_name:app_name, exit_if_unknown_ver:FALSE);
  path = install['path'];
  version = install['version'];
  fix = "6.2.0.749";

  if (ver_compare(ver:version, fix:fix, strict:FALSE) == -1)
  {
    port = get_kb_item("SMB/transport");
    if (isnull(port)) port = 445;

    if (report_verbosity > 0)
    {
      report =
        '\n  Path              : ' + path +
        '\n  Installed version : ' + version +
        '\n  Fixed version     : ' + fix +
        '\n';
      security_hole(extra:report, port:port);
    }
    else security_hole(port);
  }
  else
    unaffected = make_list(unaffected,
      "The " + app_name + " version " + version + " install under " + path  +
      " is not affected."
    );
}

if (!empty(unaffected)) exit(0, join(unaffected, sep:'\n'));

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

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

Go back to menu.

How to Run


Here is how to run the SolarWinds Storage Resource Monitor < 6.2 ProcessFileUpload.jsp File Upload RCE 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 Windows plugin family.
  6. On the right side table select SolarWinds Storage Resource Monitor < 6.2 ProcessFileUpload.jsp File Upload RCE plugin ID 86421.
  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 solarwinds_storage_resource_mon_6_2_0.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

/opt/nessus/bin/nasl -T - solarwinds_storage_resource_mon_6_2_0.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 solarwinds_storage_resource_mon_6_2_0.nasl -t <IP/HOST>

Go back to menu.

References


IAVA | Information Assurance Vulnerability Alert:
  • 2015-A-0238-S
See also: Similar and related Nessus plugins:
  • 124062 - SolarWinds DameWare Mini Remote Client Agent < 12.0.3 Stack Buffer Overflow
  • 130458 - SolarWinds Dameware Mini Remote Control Unauthenticated RCE
  • 86995 - SolarWinds DameWare Mini Remote Control < 12.0 Hotfix 2 SSLv3 Padding Oracle On Downgraded Legacy Encryption (POODLE)
  • 91123 - SolarWinds Storage Resource Monitor Profiler < 6.2.3 Multiple Vulnerabilities (Logjam) (POODLE)
  • 47137 - SolarWinds TFTP Server < 10.4.0.13 DoS
  • 47138 - SolarWinds TFTP Server < 10.4.0.14 DoS
  • 146309 - SolarWinds Orion Platform < 2019.4.2 Remote Code Execution
  • 146310 - SolarWinds Orion Platform < 2020.2.4 Multiple Vulnerabilities
  • 144449 - SolarWinds Orion Platform < 2020.2.1 HF2 Multiple Vulnerabilities
  • 83817 - SolarWinds Orion Multiple SQLi Vulnerabilities
  • 62118 - SolarWinds Orion NPM < 10.3.1 Multiple Vulnerabilities
  • 155442 - SolarWinds Orion Platform 2020.2.0 < 2020.2.6 Multiple Vulnerabilities
  • 144622 - SolarWinds Orion Platform < 2019.4 HF6 / 2020.2 < 2020.2.1 HF2 Authentication Bypass (SUPERNOVA)
  • 87600 - SolarWinds Storage Manager AuthenticationFilter Script Upload RCE
  • 59116 - SolarWinds Storage Manager Server LoginServlet loginName Parameter SQL Injection
  • 154954 - SolarWinds Virtualization Manager <= 6.3.1 Privilege Escalation
  • 92040 - SolarWinds Virtualization Manager Java Object Deserialization RCE
  • 65722 - Novell ZENworks Control Center File Upload Remote Code Execution

Version


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

Go back to menu.