Skip to content
RCE Advisory Advanced CVE-2020-28593

Cosori Smart 5.8-Quart Air Fryer CS158-AF configuration server code execution vulnerability

The air fryer's configuration server accepts encrypted JSON with a static key and has a hidden 'tcpDebugPort' option that, when enabled, opens an unauthenticated debug port. An attacker on the same network during setup can enable this port and then send commands to trigger a firmware update from an arbitrary URL, potentially leading to code execution.

Dave McDaniel Follow

Originally disclosed on Cisco Talos

High 8.1 View original

A unauthenticated backdoor exists in the configuration server functionality of Cosori Smart 5.8-Quart Air Fryer CS158-AF 1.1.0. A specially crafted JSON object can lead to code execution.

Dave McDaniel, 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

Likely the firmware uses a hard-coded symmetric encryption key and includes a hidden debug feature that can be enabled via a configuration message, exposing an unauthenticated command interface.

Impact

An attacker on the same network during setup could enable a debug backdoor, monitor device activity, and potentially achieve remote code execution by triggering a firmware update from a malicious server, though the text notes that checksums must be passed.

What the attacker needed

Attacker on same network during setup; device in setup mode; static key known

How it was found

  1. During initial setup, the device acts as a Wi-Fi access point and the mobile app sends a configuration packet over TCP port 41234.
  2. The attacker encrypts a modified configuration packet with the static key and IV, setting tcpDebugPort to 'on'.
  3. The attacker sends the modified packet to the device during setup.
  4. The device enables Developer Mode and listens on TCP port 55555.
  5. The attacker connects to port 55555 without authentication and receives serial log data.
  6. The attacker sends a command to trigger a firmware update from a client-specified URL.

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 air fryer has a setup mode where it acts as a Wi-Fi access point. The phone app sends it settings using a fixed password that is the same for every device. A hidden setting in those messages can turn on a debug service that lets anyone on the network send commands to the device, including telling it to download new software from a server the attacker controls.

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 Dave McDaniel

View all

23 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.