(Pwn2Own) Western Digital MyCloud PR4100 do_reboot Command Injection Remote Code Execution Vulnerability
Vulnerability Details
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 specific flaw exists within the do_reboot binary. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of root.
Additional Details
Western Digital has issued an update to correct this vulnerability. More details can be found at:
https://www.westerndigital.com/support/product-security/wdc-23002-my-cloud-firmware-version-5-26-119
Disclosure Timeline
- 2023-01-24 - Vulnerability reported to vendor
- 2023-06-08 - Coordinated public release of advisory
Credit
Claroty Research - Vera Mens, Noam Moshe, Uri Katz, Sharon Brizinov