Abode Systems, Inc. iota All-In-One Security Kit console_main_loop :sys OS command injection vulnerability
A leftover debug console in the iota security kit processes commands written to a named pipe, and the setUPnP XCMD handler writes attacker-controlled data into that pipe. An unauthenticated attacker can send a crafted XML message to execute arbitrary commands as root.
Originally disclosed on Cisco Talos
An OS command injection vulnerability exists in the consolemainloop :sys functionality of Abode Systems, Inc. iota All-In-One Security Kit 6.9Z. A specially-crafted XCMD can lead to arbitrary command 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
Likely, the setUPnP handler echoes the webextport value into the /var/in named pipe without sanitisation, and the console_main_loop thread treats that data as console commands, including :sys which executes the rest of the line via popen.
Impact
An unauthenticated attacker could execute arbitrary commands as the root user on the device.
What the attacker needed
Network access to the device; no authentication required
The fix
The vendor released a patch, though the text does not describe the fix details.
How it was found
- Send an XCMD over the network to the device.
- Include a setUPnP command with a webextport value starting with a colon.
- The handler writes that value into the /var/in named pipe.
- The console_main_loop thread reads the line and executes the :sys command.
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 has a hidden debugging console that runs commands typed into a special file. A network message can be abused to write into that file, so an attacker can make the device run any command they choose, with the highest privileges.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.