SolarWinds Orion Platform < 2019.4.2 Remote Code Execution - Nessus

Critical   Plugin ID: 146309

This page contains detailed information about the SolarWinds Orion Platform < 2019.4.2 Remote Code Execution Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 146309
Name: SolarWinds Orion Platform < 2019.4.2 Remote Code Execution
Filename: solarwinds_orion_2019_4_2.nasl
Vulnerability Published: 2021-02-03
This Plugin Published: 2021-02-09
Last Modification Time: 2021-03-01
Plugin Version: 1.3
Plugin Type: combined
Plugin Family: CGI abuses
Dependencies: solarwinds_orion_installed.nbin, solarwinds_orion_npm_detect.nasl
Required KB Items [?]: installed_sw/SolarWinds Orion Core

Vulnerability Information


Severity: Critical
Vulnerability Published: 2021-02-03
Patch Published: 2021-02-01
CVE [?]: CVE-2021-25274
CPE [?]: cpe:/a:solarwinds:orion_platform

Synopsis

An application running on the remote host is affected by a remote code execution vulnerability.

Description

The Collector Service in SolarWinds Orion Platform before 2019.4.2 uses MSMQ (Microsoft Message Queue) and doesn't set permissions on its private queues. As a result, remote unauthenticated clients can send messages to TCP port 1801 that the Collector Service will process. Additionally, upon processing of such messages, the service deserializes them in insecure manner, allowing remote arbitrary code execution as LocalSystem.

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 SolarWinds Orion Platform 2019.4.2 or later.

Public Exploits


Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (GitHub)
Exploit Ease: Exploits (PoCs) are available

Here's the list of publicly known exploits and PoCs for verifying the SolarWinds Orion Platform < 2019.4.2 Remote Code Execution vulnerability:

  1. GitHub: https://github.com/bollwarm/SecToolSet
    [CVE-2021-25274]

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 Score Source [?]: CVE-2021-25274
CVSS V2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:U/RL:OF/RC:C
CVSS Base Score:10.0 (High)
Impact Subscore:10.0
Exploitability Subscore:10.0
CVSS Temporal Score:7.4 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:7.4 (High)
CVSS V3 Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
CVSS Base Score:9.8 (Critical)
Impact Subscore:5.9
Exploitability Subscore:3.9
CVSS Temporal Score:8.5 (High)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:8.5 (High)

Go back to menu.

Plugin Source


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

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

include('compat.inc');

if (description)
{
  script_id(146309);
  script_version("1.3");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/03/01");

  script_cve_id("CVE-2021-25274");

  script_name(english:"SolarWinds Orion Platform < 2019.4.2 Remote Code Execution");

  script_set_attribute(attribute:"synopsis", value:
"An application running on the remote host is affected by a remote code execution vulnerability.");
  script_set_attribute(attribute:"description", value:
"The Collector Service in SolarWinds Orion Platform before 2019.4.2 uses MSMQ (Microsoft Message Queue) and doesn't set
permissions on its private queues. As a result, remote unauthenticated clients can send messages to TCP port 1801 that
the Collector Service will process. Additionally, upon processing of such messages, the service deserializes them in
insecure manner, allowing remote arbitrary code execution as LocalSystem.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version
number.");
  # https://documentation.solarwinds.com/en/Success_Center/orionplatform/content/release_notes/orion_platform_2019-4-2_release_notes.htm#link4
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?413ea028");
  script_set_attribute(attribute:"solution", value:
"Upgrade to SolarWinds Orion Platform 2019.4.2 or later.");
  script_set_attribute(attribute:"agent", value:"windows");
  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:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2021-25274");

  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");

  script_set_attribute(attribute:"vuln_publication_date", value:"2021/02/03");
  script_set_attribute(attribute:"patch_publication_date", value:"2021/02/01");
  script_set_attribute(attribute:"plugin_publication_date", value:"2021/02/09");

  script_set_attribute(attribute:"plugin_type", value:"combined");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:solarwinds:orion_platform");
  script_end_attributes();

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

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

  script_dependencies("solarwinds_orion_npm_detect.nasl", "solarwinds_orion_installed.nbin");
  script_require_keys("installed_sw/SolarWinds Orion Core");

  exit(0);
}

include('vcf.inc');
include('vcf_extras.inc');

vcf::solarwinds_orion::initialize();
app_info = vcf::solarwinds_orion::combined_get_app_info();

# A hotfix exists which fixes CVE-2021-25274
# Check for 2019.2 with hotfix >= 4
# https://support.solarwinds.com/SuccessCenter/s/article/Orion-Platform-2019-2-Hotfix-4?language=en_US
if  (app_info.version =~  "^2019\.2" && ver_compare(ver:app_info.Hotfix, fix:"4") >= 0)
  audit(AUDIT_HOST_NOT, "affected");

constraints = [
  { 'min_version' : '0.0', 'fixed_version' : '2019.4.2' }
];

vcf::check_version_and_report(app_info:app_info, constraints:constraints, severity:SECURITY_HOLE);

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

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

Go back to menu.

How to Run


Here is how to run the SolarWinds Orion Platform < 2019.4.2 Remote Code Execution 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 SolarWinds Orion Platform < 2019.4.2 Remote Code Execution plugin ID 146309.
  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_orion_2019_4_2.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


See also: Similar and related Nessus plugins:
  • 146310 - SolarWinds Orion Platform < 2020.2.4 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
  • 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)
  • 144449 - SolarWinds Orion Platform < 2020.2.1 HF2 Multiple Vulnerabilities
  • 91123 - SolarWinds Storage Resource Monitor Profiler < 6.2.3 Multiple Vulnerabilities (Logjam) (POODLE)
  • 86421 - SolarWinds Storage Resource Monitor < 6.2 ProcessFileUpload.jsp File Upload RCE
  • 47137 - SolarWinds TFTP Server < 10.4.0.13 DoS
  • 47138 - SolarWinds TFTP Server < 10.4.0.14 DoS
  • 154954 - SolarWinds Virtualization Manager <= 6.3.1 Privilege Escalation
  • 92040 - SolarWinds Virtualization Manager Java Object Deserialization RCE

Version


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

Go back to menu.