SolarWinds Storage Manager Server LoginServlet loginName Parameter SQL Injection - Nessus

High   Plugin ID: 59116

This page contains detailed information about the SolarWinds Storage Manager Server LoginServlet loginName Parameter SQL Injection Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.

Plugin Overview


ID: 59116
Name: SolarWinds Storage Manager Server LoginServlet loginName Parameter SQL Injection
Filename: solarwinds_storagemanager_login_sql_injection.nasl
Vulnerability Published: 2012-01-23
This Plugin Published: 2012-05-16
Last Modification Time: 2021-01-19
Plugin Version: 1.11
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: solarwinds_storagemanager_detect.nasl
Required KB Items [?]: www/solarwinds_storage_manager
Excluded KB Items: Settings/disable_cgi_scanning

Vulnerability Information


Severity: High
Vulnerability Published: 2012-01-23
Patch Published: 2012-02-07
CVE [?]: N/A
CPE [?]: cpe:/a:solarwinds:storage_manager

Synopsis

The remote host is running a web application with a SQL injection vulnerability.

Description

The version of SolarWinds Storage Manager running on the remote host has a SQL injection vulnerability in the 'loginName' parameter of the 'LoginServlet' page. An attacker can leverage this flaw to bypass authentication, execute arbitrary SQL commands on the underlying database, and possibly compromise the database server host operating system.

Solution

Either apply the hotfix for version 5.1.2 or upgrade to version 5.2 or later.

Public Exploits


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

Here's the list of publicly known exploits and PoCs for verifying the SolarWinds Storage Manager Server LoginServlet loginName Parameter SQL Injection vulnerability:

  1. Metasploit: exploit/windows/http/solarwinds_storage_manager_sql
    [Solarwinds Storage Manager 5.1.0 SQL Injection]
  2. Exploit-DB: exploits/windows/remote/18818.py
    [EDB-18818: SolarWinds Storage Manager 5.1.0 - Remote SYSTEM SQL Injection]
  3. D2 Elliot: solarwinds_storage_manager_5.1.2_sql_injection.html
    [SolarWinds Storage Manager 5.1.2 SQL Injection]

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:P/I:P/A:P/E:F/RL:OF/RC:C
CVSS Base Score:7.5 (High)
Impact Subscore:6.4
Exploitability Subscore:10.0
CVSS Temporal Score:6.2 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:6.2 (Medium)

Go back to menu.

Plugin Source


This is the solarwinds_storagemanager_login_sql_injection.nasl nessus plugin source code. This script is Copyright (C) 2012-2021 Tenable Network Security, Inc.

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

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

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

  script_bugtraq_id(51639);
  script_xref(name:"EDB-ID", value:"18818");

  script_name(english:"SolarWinds Storage Manager Server LoginServlet loginName Parameter SQL Injection");
  script_summary(english:"Tries to bypass authentication via SQL Injection");

  script_set_attribute(
    attribute:"synopsis",
    value:
"The remote host is running a web application with a SQL injection
vulnerability."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The version of SolarWinds Storage Manager running on the remote host
has a SQL injection vulnerability in the 'loginName' parameter of the
'LoginServlet' page.  An attacker can leverage this flaw to bypass
authentication, execute arbitrary SQL commands on the underlying
database, and possibly compromise the database server host operating
system."
  );
  script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/521328/30/0/threaded");
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ebb7ec6a");
  script_set_attribute(
    attribute:"solution",
    value:
"Either apply the hotfix for version 5.1.2 or upgrade to version 5.2
or later."
  );
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
  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 5.1.2 SQL Injection");
  script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Solarwinds Storage Manager 5.1.0 SQL Injection');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2012/01/23");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/02/07");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/05/16");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:solarwinds:storage_manager");
  script_set_attribute(attribute:"exploited_by_nessus", value:"true");
  script_end_attributes();

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

  script_copyright(english:"This script is Copyright (C) 2012-2021 Tenable Network Security, Inc.");

  script_dependencies("solarwinds_storagemanager_detect.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_keys("www/solarwinds_storage_manager");
  script_require_ports("Services/www", 9000);

  exit(0);
}

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

port = get_http_port(default:9000);

install = get_install_from_kb(appname:'solarwinds_storage_manager', port:port, exit_on_fail:TRUE);

dir = install['dir'];
url = build_url(qs:dir, port:port);
appname = "SolarWinds Storage Manager";

postdata =
  'loginName=\'or 1=1#--&' + # sql injection
  'password=OHAI&' +
  'loginState=checkLogin';

res = http_send_recv3(port:port, method: 'POST',
        item: dir + "/LoginServlet", data: postdata,
        content_type: "application/x-www-form-urlencoded",
        exit_on_fail: TRUE 
      );

# see if login is successful
if (
  "Left Navigation Menu" >< res[2] &&
  "Main Content" >< res[2]
)
{
  set_kb_item(name:'www/'+port+'/SQLInjection', value:TRUE);
  if (report_verbosity > 0)
  {
    report = 
      '\nNessus was able to bypass authentication via SQL Injection with the\n' +
      'following HTTP Request : \n\n' + http_last_sent_request() + '\n';
    security_hole(port:port, extra: report);
  } 
  else security_hole(port);
  exit(0);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, url);

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

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

Go back to menu.

How to Run


Here is how to run the SolarWinds Storage Manager Server LoginServlet loginName Parameter SQL Injection 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 Storage Manager Server LoginServlet loginName Parameter SQL Injection plugin ID 59116.
  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_storagemanager_login_sql_injection.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: See also: Similar and related Nessus plugins:
  • 87600 - SolarWinds Storage Manager AuthenticationFilter Script Upload RCE
  • 146309 - SolarWinds Orion Platform < 2019.4.2 Remote Code Execution
  • 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)
  • 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_storagemanager_login_sql_injection.nasl version 1.11. For more plugins, visit the Nessus Plugin Library.

Go back to menu.