A Pain in the NAS: Exploiting Cloud Connectivity to PWN your NAS: WD PR4100 Edition
The researchers found that WD cloud-connected NAS devices could be impersonated because the device-to-cloud tunnel creation trusted any device presenting a valid GUID, and GUIDs leaked through TLS certificate names, passive DNS and certificate transparency logs. Chaining this with further flaws let an attacker enumerate all cloud-connected devices, hijack their tunnels to steal user credentials and session tokens, and run code on the devices.
Published on claroty.com
Western Digital, one of the biggest network-attached storage (NAS) vendors in the world, provides its users with a cloud service called MyCloud OS5 that allows them to access their device remotely via a web-based or mobile application. Like most cloud services that are marketed for convenience and functionality, there…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the cloud trusted any client that presented a valid device GUID when creating the device tunnel, and those GUIDs were exposed in publicly logged TLS certificate names and DNS records.
Impact
An attacker could enumerate all cloud-connected WD devices, impersonate them, steal user credentials and session tokens, access files and run code on the devices; WD has since fixed the flaws and banned unpatched devices from the cloud.
What the attacker needed
Cloud feature enabled on the device; knowledge of the device GUID; ability to run a fake device client
The fix
Western Digital fixed the vulnerabilities with firmware updates and blocked devices still running vulnerable firmware from connecting to the cloud.
How it was found
- Enable the cloud feature on the device and register it to the cloud, then create a user account and explore the web application.
- Observe that requests to the cloud use a device GUID in the URL, and that requests without a session token still reach the device.
- Leak GUIDs from the device's Let's Encrypt certificate common name, then from passive DNS records and certificate transparency logs.
- Enable debug logging on the cloud binary and point its configuration URL at a server you control to intercept cloud traffic.
- Impersonate the device to take over its cloud tunnel and capture user credentials and session tokens.
- Chain further vulnerabilities to run code on the NAS.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A NAS is a small storage server people keep at home or in a small office. These devices talk to the vendor's cloud so owners can reach their files from anywhere, and the cloud identifies each device by a long random-looking ID. The researchers showed that this ID was not really secret, and that the cloud would accept a fake device using a real ID, so they could stand in for someone else's device and see the traffic meant for it.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.