Skip to content
SSRF Advisory Advanced CVE-2022-22993

(Pwn2Own) Western Digital MyCloud PR4100 cgi_api Server-Side Request Forgery Privilege Escalation Vulnerability

The cgi_api endpoint on Western Digital MyCloud PR4100 does not properly validate URIs before accessing resources, allowing a network-adjacent attacker to bypass authentication and escalate privileges. This can be chained with other vulnerabilities to execute arbitrary code as root.

Sam Thomas Follow

Originally disclosed on Zero Day Initiative

High 8.0 View original

This vulnerability allows network-adjacent attackers to escalate privileges on affected installations of Western Digital MyCloud PR4100. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

Sam Thomas (@_s_n_t) of Pentest Ltd (@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

Root cause

Likely the cgi_api endpoint fails to validate user-supplied URIs before using them to access resources, enabling SSRF and authentication bypass.

Impact

A network-adjacent attacker could bypass authentication and escalate privileges, and when combined with other vulnerabilities, execute arbitrary code as root.

What the attacker needed

Network-adjacent access; authentication bypass

The fix

Western Digital issued a firmware 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 where the device's web interface fails to check what web addresses it is asked to fetch. An attacker on the same network can trick the device into making requests it shouldn't, and because the login can be bypassed, they can gain higher privileges and potentially 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

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