Initial Research
The Motorola Halo+ baby monitor's local web API passed user-supplied values from its SET commands into shell commands without sanitisation, allowing an unauthenticated attacker on the same network to run commands as root. Separately, MQTT client certificates were shared across the whole device fleet, so one device's credentials let a client subscribe to messages from many other devices.
randywestergren.com
Published on randywestergren.com
When my wife and I were expecting our first child, a good baby monitor was one of the top items on our shopping list. Most of the available options of course now include Wi-Fi, a mobile app, and cloud integration.
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 local HTTP API passed the value parameter of SET commands directly into a shell command without sanitisation, and MQTT client credentials were shared across all devices with no per-device access control.
Impact
An attacker on the same network could run commands as root on the camera without authentication, and the shared MQTT credentials meant a client could likely read messages from, and possibly control, other devices in the fleet, though the author did not attempt the latter.
What the attacker needed
Attacker on the same local network; no authentication needed for RCE; MQTT issue needs device certs
The fix
The RCE was fixed in firmware 03.50.06 and the MQTT issue in 03.50.14, after initial fixes were found to be incomplete.
How it was found
- Scan the camera on the local network to find its listening web ports.
- Install the Android app and read its verbose logs to see requests sent to the camera over the LAN.
- Decompile the app and find the class listing the camera's GET and SET commands.
- Send a SET command with a shell injection in the value parameter and observe the device restart.
- Use a reverse shell payload in the same parameter to obtain a root shell.
- Read the MQTT certificates from the device's config directory and connect a client to the broker.
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.
The camera runs a small web server on the local network that accepts commands in the URL. One of those commands, which sets the time zone, was handed straight to the underlying operating system without cleaning it first, so extra shell instructions typed into the URL were executed on the device. The second issue is that every camera used the same digital key to talk to the cloud message service, so anyone with one camera's key could listen in on other people's cameras.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.