(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.
Originally disclosed on Zero Day Initiative
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.
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.