Abode Systems, Inc. iota All-In-One Security Kit web interface util_set_serial_mac OS command injection vulnerability
The web interface endpoint for setting the device serial number and MAC address passes user-supplied values into a shell command without sanitisation. An attacker can inject shell metacharacters to execute arbitrary commands as root.
Originally disclosed on Cisco Talos
An OS command injection vulnerability exists in the web interface utilsetserialmac functionality of Abode Systems, Inc. iota All-In-One Security Kit 6.9X and 6.9Z. A specially-crafted HTTP request 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
The serial number and MAC address from the HTTP request are inserted into a command string passed to popen without sanitisation, allowing shell metacharacter injection.
Impact
An attacker can execute arbitrary commands as root on the device, potentially leading to full compromise.
What the attacker needed
Network access to the device; web interface enabled (may require other exploits)
The fix
The vendor released a patch on 2022-09-26.
How it was found
- Send an HTTP POST request to the /action/factorySerialMacPost endpoint.
- Include a serial parameter containing shell metacharacters and a command.
- The device executes the injected command as root.
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 web page that lets you change its serial number and MAC address. The code that handles this takes your input and builds a command to run on the device without checking for special characters. By including characters like a semicolon, an attacker can make the device run their own commands 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.