If you have one of Western Digital’s My Cloud nstorage drives , you might be particularly vulnerable to internet attacks.
A new post on Exploitee.rs explains an exploit for the WD My Cloud NAS which makes it vulnerable to remote attacks.
The exploit is based on the login check which is performed in all web scripts for the My Cloud web panel and the usage of the ‘exec()’ functions with improper user input escaping. If you are not familiar with programming: ‘exec()’ makes it possible to run command line commands within a PHP script. As stated in the article, “all commands executed through the web interface are done so as the user the web-server is running as, which, in this case is root.”
Additionally, unauthenticated users are able to upload files to the My Cloud device because of a bug in the upload module.
This way attackers are able to execute commands on the device as the admin, allowing him to do and access basically everything on the My Cloud drive. Attackers are also able to upload scripts with the upload function and thus are able to make your My Cloud execute these scripts at any time.