Skip to content
RCE Write-up Advanced

No Shark Is Safe: Shark Vacuums Are Vulnerable to RCE

Shark robot vacuums use AWS IoT MQTT certificates that allow wildcard subscription and publishing to other devices' topics, and the device daemon executes shell commands from a specific MQTT message field. An attacker with a device certificate could run arbitrary commands on any internet-connected Shark vacuum in the same region.

tokay0.com

Published on tokay0.com

Millions of Shark vacuums are currently vulnerable to remote code execution. This critical vulnerability leaves hackable cameras with wheels inside the homes of Shark vacuum owners.

The author, on tokay0.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the AWS IoT Core policy attached to device certificates allowed wildcard subscription and publishing to all device topics, and the device daemon executed shell commands from MQTT messages without further checks.

Impact

An attacker could execute arbitrary commands on any internet-connected Shark vacuum in the same region, potentially accessing the camera, motors, house map, and Wi-Fi password; the text notes regional certificate pinning limits attacks to one region per certificate.

What the attacker needed

A Shark vacuum device certificate; victim device in same AWS region; network access to AWS IoT broker

The fix

The vulnerability was fixed by SharkNinja after public disclosure, according to the vendor statement.

How it was found

  1. Extract the device private key and certificate from a purchased vacuum.
  2. Authenticate to the AWS MQTT broker using that key and certificate.
  3. Publish a crafted shell command payload to the victim device's shadow update topic.
  4. The victim device executes the shell 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 write-up has not been written yet. The Original tab links to the source.

A robot vacuum connects to a cloud service to receive commands. The researcher found that the digital key each vacuum uses to log in was too powerful: it could listen to and send messages to every other vacuum, not just its own. The vacuum also ran any shell command sent in a particular message, so someone with one key could control other people's vacuums.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

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.