Skip to content
RCE Advisory Intermediate CVE-2018-3910

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.

Lilith Q Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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.

Lilith Q(‘.’Q), on Cisco Talos

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

  1. Set up a Wi-Fi network whose SSID contains shell metacharacters.
  2. Connect the camera to that network (or convince a user to do so).
  3. The camera builds a cloudAPI command including the SSID and passes it to popen.
  4. 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.

More by Lilith Q

View all

1 more disclosed report, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.