Skip to content
SSRF Advisory Advanced CVE-2023-22817

(Pwn2Own) Western Digital MyCloud PR4100 RESTSDK Server-Side Request Forgery Vulnerability

The RESTSDK server on Western Digital MyCloud PR4100 NAS devices does not properly validate a URI before accessing resources, leading to server-side request forgery. An unauthenticated network-adjacent attacker could exploit this, possibly in conjunction with other vulnerabilities, to execute arbitrary code as root.

Sam Thomas Follow

Originally disclosed on Zero Day Initiative

Medium 6.3 View original

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.

@_s_n_t of @pentestltd, 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 unauthenticated network-adjacent attacker could chain this SSRF with other vulnerabilities to execute arbitrary code as root on the NAS device.

What the attacker needed

Network-adjacent access to the device; no authentication required

The fix

Western Digital has issued an 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 server takes a web address (URI) from a user and fetches it without checking if it is safe. An attacker on the same network can make the server connect to internal services, which might then be abused to run malicious 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.

More by Sam Thomas

View all

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

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.