Cosori Smart 5.8-Quart Air Fryer CS158-AF configuration server code execution vulnerability
A heap-based buffer overflow exists in the configuration server of the Cosori Smart Air Fryer. An attacker can send a specially crafted JSON object to trigger remote code execution.
Originally disclosed on Cisco Talos
A heap-based buffer overflow vulnerability exists in the configuration server functionality of the Cosori Smart 5.8-Quart Air Fryer CS158-AF 1.1.0. A specially crafted JSON object can lead to remote code 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 server allocates a fixed-size buffer (104 bytes) for the response but does not check the length of the input URI, allowing a heap overflow when the URI exceeds that size.
Impact
An attacker could crash the device or achieve remote code execution.
What the attacker needed
Access to the air fryer's configuration server
How it was found
- Connect to the air fryer's configuration server on TCP port 41234.
- Send a JSON request with a 'uri' value that starts with '/query' and is followed by at least 60 non-null bytes.
- Observe the heap overflow and potential crash or code execution.
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 runs a small server that listens for commands over Wi-Fi. When it receives a command that is too long, it writes past the memory it reserved, which can crash the device or let an attacker run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.