Qnap Multiple Vulnerabilities

2013-06-07T00:00:00
ID OPENVAS:1361412562310103732
Type openvas
Reporter This script is Copyright (C) 2013 Greenbone Networks GmbH
Modified 2018-05-28T00:00:00

Description

QNAP VioStor NVR firmware version 4.0.3 and possibly earlier versions and QNAP NAS contains multiple vulnerabilities.

  1. Improper Access Control

VioStor NVR firmware version 4.0.3 and possibly earlier versions and QNAP NAS with the Surveillance Station Pro activated contains a hardcoded guest account and password which can be leveraged to login to the webserver. It has been reported that it is not possible to view or administer the guest account using the web interface.

  1. Cross-Site Request Forgery (CSRF).

VioStor NVR firmware version 4.0.3 and possibly earlier versions contains a cross-site request forgery vulnerability could allow an attacker to add a new administrative account to the server by tricking an administrator to click on a malicious link while they are currently logged into the webserver.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_qnap_mult_vulns_06_13.nasl 9984 2018-05-28 14:36:22Z cfischer $
#
# Qnap Multiple Vulnerabilities
#
# Authors:
# Michael Meyer <michael.meyer@greenbone.net>
#
# Copyright:
# Copyright (c) 2013 Greenbone Networks GmbH
#
# 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.103732");
 script_version ("$Revision: 9984 $");
 script_cve_id("CVE-2013-0142","CVE-2013-0144");
 script_tag(name:"cvss_base", value:"6.8");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:M/Au:N/C:P/I:P/A:P");

 script_name("Qnap Multiple Vulnerabilities");

 script_xref(name:"URL", value:"http://www.qnap.com/");
 script_xref(name:"URL", value:"http://www.kb.cert.org/vuls/id/927644");
 script_xref(name:"URL", value:"http://www.h-online.com/security/news/item/Serious-vulnerabilities-in-QNAP-storage-and-surveillance-systems-1883263.html");

 script_tag(name:"last_modification", value:"$Date: 2018-05-28 16:36:22 +0200 (Mon, 28 May 2018) $");
 script_tag(name:"creation_date", value:"2013-06-07 10:32:41 +0200 (Fri, 07 Jun 2013)");
 script_category(ACT_ATTACK);
 script_tag(name:"qod_type", value:"remote_vul");
 script_family("Web application abuses");
 script_copyright("This script is Copyright (C) 2013 Greenbone Networks GmbH");
 script_dependencies("gb_get_http_banner.nasl");
 script_mandatory_keys("http_server/banner");
 script_require_ports("Services/www", 80, 8080);
 script_tag(name : "summary" , value : "QNAP VioStor NVR firmware version 4.0.3 and possibly earlier versions and QNAP
NAS contains multiple vulnerabilities.

1. Improper Access Control

VioStor NVR firmware version 4.0.3 and possibly earlier versions and QNAP NAS
with the Surveillance Station Pro activated contains a hardcoded guest account
and password which can be leveraged to login to the webserver. It has been
reported that it is not possible to view or administer the guest account using
the web interface.

2. Cross-Site Request Forgery (CSRF).

VioStor NVR firmware version 4.0.3 and possibly earlier versions contains a
cross-site request forgery vulnerability could allow an attacker to add a new
administrative account to the server by tricking an administrator to click on a
malicious link while they are currently logged into the webserver.");

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

 exit(0);
}

include("http_func.inc");
include("misc_func.inc");

port = get_http_port(default:80);
banner = get_http_banner(port:port);
if(!banner || "Server: http server" >!< banner)exit(0);

url = '/cgi-bin/create_user.cgi';

req = 'GET ' + url + ' HTTP/1.0\r\n' +
      '\r\n';

resp = http_send_recv(port:port, data:req);

if(resp !~ "HTTP/1.[0|1] 401")exit(0);

userpass64 = base64(str:"guest:guest");

req = 'GET ' + url + ' HTTP/1.0\r\n' +
      'Authorization: Basic ' + userpass64 + '\r\n' +
      '\r\n';

resp = http_send_recv(port:port, data:req);

if(resp =~ "HTTP/1.[0|1] 200") {
  security_message(port:port);
  exit(0);
}

exit(0);