(Pwn2Own) Western Digital MyCloud PR4100 RESTSDK Server-Side Request Forgery Vulnerability
The RESTSDK server on Western Digital MyCloud PR4100 NAS devices fails to properly validate a URI before accessing resources, enabling a network-adjacent attacker to perform server-side request forgery. This can be chained with other vulnerabilities to execute arbitrary code as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Western Digital MyCloud PR4100 NAS devices. Authentication is not required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Impact
A network-adjacent attacker could use this SSRF to access internal resources and, in conjunction with other vulnerabilities, execute arbitrary code with root privileges.
What the attacker needed
Network-adjacent access; no authentication required
The fix
Western Digital has issued a firmware update to correct this vulnerability.
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 report has not been written yet. The Original tab links to the source.
This is a server-side request forgery (SSRF) bug. The device's web server takes a web address (URI) from an incoming request and fetches it without checking whether it is safe. An attacker on the same network can make the device connect to unintended internal services, and by combining this with other flaws, they can run code as the root user.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.