According to its version number, the Synology DiskStation Manager installed on the remote host is affected by a remote code execution vulnerability. The issue exists due to improper validation of values submitted in the βX-TMP-FILEβ header field along with the βX-TYPE-NAME: SLICEUPLOADβ header field to the βimageSelector.cgiβ script.
Note that Nessus has not tested for this issue but has instead relied only on the applicationβs self-reported version number.
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(72342);
script_version("1.8");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/19");
script_cve_id("CVE-2013-6955");
script_bugtraq_id(64516);
script_xref(name:"EDB-ID", value:"30470");
script_xref(name:"CERT", value:"615910");
script_name(english:"Synology DiskStation Manager 4.0-x < 4.0-2259 / 4.1-x / 4.2-x < 4.2-3243 SLICEUPLOAD Function Remote Code Execution");
script_summary(english:"Checks the version of Synology DiskStation Manager");
script_set_attribute(attribute:"synopsis", value:
"The remote Synology DiskStation Manager is affected by a remote code
execution vulnerability.");
script_set_attribute(attribute:"description", value:
"According to its version number, the Synology DiskStation Manager
installed on the remote host is affected by a remote code execution
vulnerability. The issue exists due to improper validation of values
submitted in the 'X-TMP-FILE' header field along with the
'X-TYPE-NAME: SLICEUPLOAD' header field to the 'imageSelector.cgi'
script.
Note that Nessus has not tested for this issue but has instead relied
only on the application's self-reported version number.");
script_set_attribute(attribute:"see_also", value:"https://www.securityfocus.com/archive/1/531602/30/0/threaded");
script_set_attribute(attribute:"solution", value:
"Upgrade to 4.0-2259 / 4.2-3243 / 4.3-3810 Update 1 or later, or
contact the vendor.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"No exploit is required");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'Synology DiskStation Manager SLICEUPLOAD Remote Command Execution');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2014/01/07");
script_set_attribute(attribute:"patch_publication_date", value:"2013/12/19");
script_set_attribute(attribute:"plugin_publication_date", value:"2014/02/05");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/a:synology:diskstation_manager");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2014-2021 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("synology_diskstation_manager_detect.nbin");
script_require_keys("www/synology_dsm");
script_require_ports("Services/www", 5000, 5001);
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:5000, embedded:TRUE);
install = get_install_from_kb(appname:"synology_dsm", port:port, exit_on_fail:TRUE);
app = "Synology DiskStation Manager (DSM)";
dir = install["dir"];
install_loc = build_url(port:port, qs:dir + "/");
version = install["ver"];
if (version == UNKNOWN_VER) audit(AUDIT_UNKNOWN_WEB_APP_VER, app, install_loc);
ver = split(version, sep:".", keep:FALSE);
for (i=0; i<max_index(ver); i++)
ver[i] = int(ver[i]);
if (
(ver[0] < 4) ||
(ver[0] == 4 && ver[1] == 0 && ver[2] < 2259) ||
(ver[0] == 4 && ver[1] == 1) ||
(ver[0] == 4 && ver[1] == 2 && ver[2] < 3243 )
)
{
if (report_verbosity > 0)
{
report =
'\n URL : ' + install_loc +
'\n Installed version : ' + version +
'\n Fixed version : 4.0-2259 / 4.2-3243 or later\n';
security_hole(port:port, extra:report);
}
else security_hole(port);
}
else audit(AUDIT_WEB_APP_NOT_AFFECTED, app, install_loc, version);
Vendor | Product | Version | CPE |
---|---|---|---|
synology | diskstation_manager | cpe:/a:synology:diskstation_manager |