Scrutinizer < 9.5.2 d4d/statusFilter.php q Parameter SQL Injection - Nessus

Medium   Plugin ID: 61598

This page contains detailed information about the Scrutinizer < 9.5.2 d4d/statusFilter.php q 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: 61598
Name: Scrutinizer < 9.5.2 d4d/statusFilter.php q Parameter SQL Injection
Filename: scrutinizer_statusfilter_sqli.nasl
Vulnerability Published: 2012-07-22
This Plugin Published: 2012-08-20
Last Modification Time: 2021-01-19
Plugin Version: 1.7
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies: scrutinizer_detect.nasl
Required KB Items [?]: www/scrutinizer_netflow_sflow_analyzer
Excluded KB Items: Settings/disable_cgi_scanning

Vulnerability Information


Severity: Medium
Vulnerability Published: 2012-07-22
Patch Published: 2012-07-11
CVE [?]: CVE-2012-2962
CPE [?]: cpe:/a:dell:sonicwall_scrutinizer

Synopsis

The remote web server hosts an application that is affected by a SQL injection vulnerability.

Description

The version of Scrutinizer installed on the remote web server is affected by a SQL injection vulnerability in the q parameter of the 'd4d/statusFilter.php' script.

An unauthenticated remote attacker can leverage this issue to manipulate database queries, leading to disclosure of sensitive information, attacks against the underlying database, and the like.

Solution

Upgrade to Dell Sonicwall Scrutinizer 9.5.2 or later.

Public Exploits


Target Network Port(s): 80
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, D2 Elliot)
Exploit Ease: No exploit is required

Here's the list of publicly known exploits and PoCs for verifying the Scrutinizer < 9.5.2 d4d/statusFilter.php q Parameter SQL Injection vulnerability:

  1. Metasploit: exploit/windows/http/sonicwall_scrutinizer_sqli
    [Dell SonicWALL (Plixer) Scrutinizer 9 SQL Injection]
  2. Exploit-DB: exploits/windows/remote/20204.rb
    [EDB-20204: Dell SonicWALL Scrutinizer 9 - SQL Injection (Metasploit)]
  3. Exploit-DB: exploits/php/webapps/20033.py
    [EDB-20033: Dell SonicWALL Scrutinizer 9.0.1 - 'statusFilter.php?q' SQL Injection]
  4. D2 Elliot: sonicwall_scrutinizer_9.0.1_sql_injection.html
    [SonicWALL Scrutinizer 9.0.1 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 Score Source [?]: CVE-2012-2962
CVSS V2 Vector: AV:N/AC:L/Au:S/C:P/I:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score:6.5 (Medium)
Impact Subscore:6.4
Exploitability Subscore:8.0
CVSS Temporal Score:5.7 (Medium)
CVSS Environmental Score:NA (None)
Modified Impact Subscore:NA
Overall CVSS Score:5.7 (Medium)

Go back to menu.

Plugin Source


This is the scrutinizer_statusfilter_sqli.nasl nessus plugin source code. This script is Copyright (C) 2012-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(61598);
  script_version("1.7");
  script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");

  script_cve_id("CVE-2012-2962");
  script_bugtraq_id(54625);
  script_xref(name:"CERT", value:"404051");
  script_xref(name:"EDB-ID", value:"20033");
  script_xref(name:"EDB-ID", value:"20204");

  script_name(english:"Scrutinizer < 9.5.2 d4d/statusFilter.php q Parameter SQL Injection");
  script_summary(english:"Tries to manipulate response based on a SQL query");

  script_set_attribute(attribute:"synopsis", value:
"The remote web server hosts an application that is affected by a SQL
injection vulnerability.");
  script_set_attribute(attribute:"description", value:
"The version of Scrutinizer installed on the remote web server is
affected by a SQL injection vulnerability in the q parameter of the
'd4d/statusFilter.php' script. 

An unauthenticated remote attacker can leverage this issue to manipulate
database queries, leading to disclosure of sensitive information,
attacks against the underlying database, and the like.");
  script_set_attribute(attribute:"see_also", value:"http://www.plixer.com/Press-Releases/plixer-releases-9-5-2.html");
  # http://www.sonicwall.com/shared/download/Dell_SonicWALL_Scrutinizer_Service_Bulletin_for_SQL_injection_vulnerability_CVE.pdf
  script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?0671efae");
  script_set_attribute(attribute:"solution", value:
"Upgrade to Dell Sonicwall Scrutinizer 9.5.2 or later.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:P");
  script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
  script_set_attribute(attribute:"cvss_score_source", value:"CVE-2012-2962");

  script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
  script_set_attribute(attribute:"exploit_available", value:"true");
  script_set_attribute(attribute:"d2_elliot_name", value:"SonicWALL Scrutinizer 9.0.1 SQL Injection");
  script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
  script_set_attribute(attribute:"metasploit_name", value:'Dell SonicWALL (Plixer) Scrutinizer 9 SQL Injection');
  script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");

  script_set_attribute(attribute:"vuln_publication_date", value:"2012/07/22");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/07/11");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/08/20");

  script_set_attribute(attribute:"plugin_type", value:"remote");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:dell:sonicwall_scrutinizer");
  script_end_attributes();

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

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

  script_dependencies("scrutinizer_detect.nasl");
  script_require_keys("www/scrutinizer_netflow_sflow_analyzer");
  script_exclude_keys("Settings/disable_cgi_scanning");
  script_require_ports("Services/www", 80);

  exit(0);
}

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

port = get_http_port(default:80);

install = get_install_from_kb(appname:'scrutinizer_netflow_sflow_analyzer', port:port, exit_on_fail:TRUE);
dir = install['dir'];
app_url = build_url(qs:dir, port:port);
appname = 'Scrutinizer Netflow & sFlow Analyzer';

# Try to exploit the issue to manipulate the output.
#url = dir + '/d4d/statusFilter.php?commonJson=protList&q=' + SCRIPT_NAME + "'";
url = dir + "/d4d/statusFilter.php?commonJson=protList&q=a'+union+select+0,'" +
      SCRIPT_NAME + "'+--+";
res = http_send_recv3(port:port, method:"GET", item:url, exit_on_fail:TRUE);
expected_response = " 0 (" + SCRIPT_NAME + ")|" + SCRIPT_NAME;
if (chomp(res[2]) == expected_response)
{
  set_kb_item(name:'www/'+port+'/SQLInjection', value:TRUE);

  if (report_verbosity > 0)
  {
    report = get_vuln_report(items:url, port:port);
    security_warning(port:port, extra:report);
  }
  else security_warning(port);
  exit(0);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, appname, app_url);

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

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

Go back to menu.

How to Run


Here is how to run the Scrutinizer < 9.5.2 d4d/statusFilter.php q 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 Scrutinizer < 9.5.2 d4d/statusFilter.php q Parameter SQL Injection plugin ID 61598.
  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 scrutinizer_statusfilter_sqli.nasl -t <IP/HOST>

Run the plugin with audit trail message on the console:

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

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

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

Go back to menu.

References


BID | SecurityFocus Bugtraq ID: CERT | Computer Emergency Response Team: See also: Similar and related Nessus plugins:
  • 65046 - Scrutinizer < 10.1.2 Multiple Vulnerabilities
  • 58993 - Scrutinizer < 9.0.1 d4d/alarms.php Multiple Parameters SQLi

Version


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

Go back to menu.