PwnAssistant - Controlling /home's Via A Home Assistant RCE
The researchers audited Home Assistant's HTTP integration and found that integrations can register HTTP views with authentication disabled, creating pre-authentication attack surface. They also noted that user and administrator accounts have effectively the same API access, so a low-privileged user could escalate to administrator.
Recently, a few members in our team decided to look into home automation and the inherent risks that come with having a “smart home”. Although IoT devices and their associated cloud infrastructure may pose a risk on it’s own, we decided to look into the very established and known open-source automation ecosystem known…
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the HTTP view registration allows integrations to set requires_auth to False, and the permission model does not enforce a real difference between user and administrator roles.
What the attacker needed
Network access to the Home Assistant instance; for privilege issue: any user account
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 write-up has not been written yet. The Original tab links to the source.
Home Assistant is software that controls smart home devices. The researchers looked at how its web server decides whether a request is allowed in without logging in, and found that some parts of the web server can be set to skip that check entirely. They also found that a normal user account can do almost everything an administrator can.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.