Skip to content
Access control Write-up Intermediate

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.

elttam Follow

Published on elttam.com

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…

elttam (@elttam), on elttam.com

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.

More from Home Assistant

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.