Skip to content
RCE Advisory Advanced CVE-2022-29841

(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.

Noam Moshe Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

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.

Claroty Research - Vera Mens, Noam Moshe, Uri Katz, Sharon Brizinov, on the Zero Day Initiative

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.

More by Noam Moshe

View all

14 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.