(Pwn2Own) Home Assistant Green aiohttp_client Server-Side Request Forgery Vulnerability
The aiohttp_client module in Home Assistant Green follows HTTP redirects, allowing a network-adjacent attacker to make arbitrary server-side requests without authentication. This can be chained with other vulnerabilities to execute code as root.
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 aiohttp_client module does not restrict or validate HTTP redirects, allowing requests to be redirected to arbitrary destinations.
Impact
A network-adjacent attacker could initiate arbitrary server-side requests without authentication and, when combined with other vulnerabilities, could execute arbitrary code as root.
What the attacker needed
Network-adjacent access; no authentication required
The fix
Home Assistant 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.
A server-side request forgery (SSRF) bug lets an attacker trick a server into making requests to places it should not, such as internal services. Here, the server follows redirects, so an attacker can point it at a malicious address that redirects to an internal target. No login is needed, but the attacker must be on the same network.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.