Yi Technology Home Camera 27US cloudAPI SSID Code Execution Vulnerability
The Yi Home Camera builds a shell command using the Wi-Fi network name (SSID) without sanitising it, so an SSID containing shell metacharacters is executed as a command. An attacker who controls or tricks a user into joining a malicious SSID can run arbitrary commands on the camera.
An exploitable code execution vulnerability exists in the cloud OTA setup functionality of Yi Home Camera 27US 1.8.7.0D. A specially crafted SSID can cause a command injection, resulting in code execution.
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 is inserted into a command string that is passed to popen without sanitisation, allowing shell metacharacters to be interpreted.
Impact
An attacker could execute arbitrary commands on the camera, though the 32-byte SSID limit and lack of common tools on the device restrict what can be done directly.
What the attacker needed
Attacker controls or tricks user into a malicious SSID; camera connects to that SSID
The fix
The issue was fixed by the vendor after Talos confirmed the patch.
How it was found
- Set up a Wi-Fi network whose SSID contains shell metacharacters.
- Connect the camera to that network (or convince a user to do so).
- The camera builds a cloudAPI command including the SSID and passes it to popen.
- The injected command runs on the camera.
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.
When you set up a smart camera, it reads the name of your Wi-Fi network (the SSID) and sends it to the manufacturer's servers. This report shows that the camera software puts that name directly into a system command without checking it. If the name contains special characters, the camera runs them as extra commands, letting someone who controls the network name run 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.