Circle with Disney WiFi Restart SSID Parsing Command Injection Vulnerability
The device's WiFi restart script passes the SSID-derived encryption string to a shell command without sanitisation. An attacker who can broadcast a crafted SSID and trigger a WiFi restart can execute arbitrary shell commands on the device.
Originally disclosed on Cisco Talos
An exploitable vulnerability exists in the WiFi configuration functionality of Circle with Disney running firmware 2.0.1. A specially crafted SSID can cause the device to execute arbitrary shell commands.
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
The SSID from the access point scan is not sanitised before being passed to a shell command via system().
Impact
An attacker could execute arbitrary shell commands on the device, leading to full compromise.
What the attacker needed
Valid API token; ability to answer DNS requests from device; ability to set up a reachable access point; ability to unplug/replug ethernet cable
How it was found
- Configure the device's SSID to be empty via the API.
- Set up a rogue access point broadcasting an SSID containing newline characters and shell metacharacters.
- Force the device to scan for access points via the API.
- Set up network redirection and a listener to serve a command.
- Unplug and replug the ethernet cable to trigger the WiFi restart, causing the command to execute.
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.
The device reads the name of a WiFi network (the SSID) and uses it to build a command that runs on the device. Because the name is not cleaned, an attacker can put special characters in the name that make the device run extra commands. This lets the attacker run their own code on the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.