How we hacked our colleague’s smart home
The researchers found an authentication bypass in Fibaro's cloud API that let anyone list, upload, and download backup copies belonging to any user, plus remote code execution and SQL injection flaws in the Home Center admin panel. By combining the cloud backup access with the RCE, an attacker could gain full control of a Home Center without the owner's interaction.
securelist.com
Published on securelist.com
Pavel Cheremushkin](https://securelist.com/author/pavelcheremushkin/) - [{{media:4}}
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 an authorization check in the cloud PHP code that treated a null hardware key as valid, combined with weak PHP type juggling in admin-panel scripts and insufficient quote escaping before passing input to sqlite3.
Impact
An attacker could list, upload, and download any user's cloud backups and, combined with the admin-panel RCE, gain full root control of a Home Center without the owner's interaction; the report does not describe a deployed fix for the cloud flaw.
What the attacker needed
Network access to the cloud API; knowledge of a device serial number; admin-panel access for the RCE chain
The fix
The SQL injection was fixed in version 4.540 by rewriting queries with prepared statements, but the text does not state that the cloud authentication bypass or the RCE were fixed.
How it was found
- Gather information from Fibaro's public website about cloud management and Z-Wave.
- Scan the static IP and find the single open port forwarded to the Home Center admin panel.
- Obtain and analyse the device file system image to study the PHP services and cloud scripts.
- Test the cloud backup upload and download methods and find the null hardware key bypass.
- Download a victim's backup, extract the SQLite database, and recover the cached password.
- Use the admin panel remote code execution flaw to gain root on the device.
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.
A smart home hub stores backups in the cloud, and the cloud is supposed to check a secret hardware key before letting a device access them. The researchers found that if the key was left empty, the check passed anyway, so anyone could read or replace other people's backups. Separately, the hub's admin panel had coding mistakes that let a logged-in user run commands as the root user, and the two issues together gave full control of the device.
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.