Skip to content
RCE Advisory Intermediate CVE-2022-27804

Abode Systems, Inc. iota All-In-One Security Kit web interface util_set_abode_code OS command injection vulnerability

The web interface endpoint /action/factorySerialMacPost passes the user-supplied 'code' parameter to a function that builds a shell command without sanitisation, allowing an authenticated attacker to execute arbitrary OS commands on the device.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

High 8.0 View original

An os command injection vulnerability exists in the web interface utilsetabodecode 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.

Matt Wiseman, 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 util_set_abode_code function constructs a shell command string using the attacker-controlled 'code' parameter and passes it to popen without any sanitisation or escaping.

What the attacker needed

Access to the web interface; authentication (may be bypassed via other bugs)

The fix

The vendor released a patch on 2022-09-26, though the report does not describe the fix.

How it was found

  1. Send an HTTP POST request to /action/factorySerialMacPost with valid 'serial' and 'mac' parameters.
  2. Include a 'code' parameter containing shell metacharacters and a command.
  3. The server extracts the 'code' parameter and passes it to util_set_abode_code.
  4. The function appends the code to the bootargs value and builds a command for fw_setenv.
  5. The command is executed via popen, running the injected 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.

This security kit has a web page that lets you set a configuration value called ABODE_CODE. The code that handles this takes whatever you type and puts it directly into a system command, so an attacker who can reach that page can run their own commands on the device. The attacker needs to be logged in, but the report notes that other bugs can bypass the login.

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 Matt Wiseman

View all

73 more disclosed reports, 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.