(Pwn2Own) Western Digital MyCloud PR4100 do_reboot Command Injection Remote Code Execution Vulnerability
The do_reboot binary on Western Digital MyCloud PR4100 NAS devices passes a user-supplied string to a system call without proper validation, allowing command injection. An attacker who bypasses authentication could chain this with other flaws to run arbitrary code as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Western Digital MyCloud PR4100 NAS devices. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
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
An attacker could execute arbitrary code as root, but only after bypassing the existing authentication, and the text says this is leveraged together with other vulnerabilities.
What the attacker needed
Authentication bypass needed; chained with other vulnerabilities
The fix
Western Digital issued a firmware update that corrects the 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.
A NAS is a small storage server on a home or office network. This one runs a program that takes text from a user and hands it to the operating system to run as a command, without checking what the text contains. If someone can slip extra commands into that text, the device runs them too, with the highest level of permission.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.