(Pwn2Own) Home Assistant Green mDNS Server-Side Request Forgery Vulnerability
The mDNS service on Home Assistant Green does not properly validate a URI before accessing resources, allowing network-adjacent attackers to make arbitrary server-side requests without authentication. The flaw can be combined with other vulnerabilities to execute code as root.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to initiate arbitrary server-side requests on affected installations of Home Assistant Green. Authentication is not required to exploit this vulnerability.
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 mDNS service passes a user-supplied URI to a request function without validating or restricting the destination.
Impact
A network-adjacent attacker without authentication could make the device issue arbitrary server-side requests, and could chain this with other flaws to execute code as root.
What the attacker needed
Network-adjacent access; no authentication needed
The fix
The vendor issued an update to correct 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 server-side request forgery (SSRF) happens when a program fetches a web address supplied by someone else without checking where it points. Here, the mDNS service on a smart-home hub accepts a web address from the local network and fetches it, so an attacker on the same network can make the device contact servers of their choosing. That can be a stepping stone to running code on the device.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.