Trustwave's 2024 Retail Report Series Highlights Alarming E-Commerce Threats and Growing Fraud Against Retailers. Learn More

Trustwave's 2024 Retail Report Series Highlights Alarming E-Commerce Threats and Growing Fraud Against Retailers. Learn More

Services
Managed Detection & Response

Eliminate active threats with 24/7 threat detection, investigation, and response.

Co-Managed SOC (SIEM)

Maximize your SIEM investment, stop alert fatigue, and enhance your team with hybrid security operations support.

Advisory & Diagnostics

Advance your cybersecurity program and get expert guidance where you need it most.

Penetration Testing

Test your physical locations and IT infrastructure to shore up weaknesses before exploitation.

Database Security

Prevent unauthorized access and exceed compliance requirements.

Email Security

Stop email threats others miss and secure your organization against the #1 ransomware attack vector.

Digital Forensics & Incident Response

Prepare for the inevitable with 24/7 global breach response in-region and available on-site.

Firewall & Technology Management

Mitigate risk of a cyberattack with 24/7 incident and health monitoring and the latest threat intelligence.

Solutions
BY TOPIC
Microsoft Security
Unlock the full power of Microsoft Security
Offensive Security
Solutions to maximize your security ROI
Rapidly Secure New Environments
Security for rapid response situations
Securing the Cloud
Safely navigate and stay protected
Securing the IoT Landscape
Test, monitor and secure network objects
Why Trustwave
About Us
Awards and Accolades
Trustwave SpiderLabs Team
Trustwave Fusion Security Operations Platform
Trustwave Security Colony
Partners
Technology Alliance Partners
Key alliances who align and support our ecosystem of security offerings
Trustwave PartnerOne Program
Join forces with Trustwave to protect against the most advance cybersecurity threats

Multiple Vulnerabilities in WD MyCloud

While performing security research on personal storage I found some vulnerabilities in the WD (Western Digital) MyCloud device. Trustwave reported them to WD back in 2017 and now that patches are available we can discuss the technical details.

The first finding was discovering hardcoded administrator credentials in the nas_sharing.cgi binary. These credentials allow anyone to authenticate to the device with the username "mydlinkBRionyg". Considering how many devices are affected this is very serious one. Interestingly enough another researcher independently released details on the same issue less than a month ago.

Another problem I discovered in nas_sharing.cgi is that it allows any user execute shell commands as root. To exploit this issue the "artist" parameter can be used. Figure 1 shows a proof of concept combining these two findings in order to log in using the hard coded credentials and executing a command to create a file. The command is passed inside the "artist" parameter using base64 encoding. In this particular screenshot the command decodes to: a" ; touch /jambon; echo ".

8875_3f0ed31b-715f-4630-8758-541bcc438def
Figure 1: Proof of concept combing the hard coded credentials and the command execution

The final issue with the same nas_sharing.cgi binary is arbitrary file deletion. This is possible via the "path" parameter manipulation. Usually on embedded systems many processes run unrestricted (i.e. as root) so no security checks are performed at all once a command (file deletion in this case) is about to execute. Figure 2 shows a proof of concept combining the hard coded credentials and using the "path" parameter to delete a file. Just like with the "artist" parameter above, the command is passed using base64 encoding.

9326_5430e5eb-9292-426d-8ed5-d20f7bf1e46b
Figure 2: Proof of concept combing the hard coded credentials and the arbitrary file deletion

WD lists these issues as fixed in firmware version 2.30.172 and mention in their release notes:

"Resolved critical security vulnerabilities that potentially allowed unauthorized file deletion, unauthorized command execution and authentication bypass."

ABOUT TRUSTWAVE

Trustwave is a globally recognized cybersecurity leader that reduces cyber risk and fortifies organizations against disruptive and damaging cyber threats. Our comprehensive offensive and defensive cybersecurity portfolio detects what others cannot, responds with greater speed and effectiveness, optimizes client investment, and improves security resilience. Learn more about us.

Latest Intelligence

Discover how our specialists can tailor a security program to fit the needs of
your organization.

Request a Demo