Skip to content
RCE Advisory Advanced CVE-2024-6247

(Pwn2Own) Wyze Cam v3 Wi-Fi SSID OS Command Injection Remote Code Execution Vulnerability

The Wyze Cam v3 fails to validate the SSID string embedded in a scanned QR code before using it in a system call. A physically present attacker can supply a crafted QR code to execute arbitrary code as root on the camera.

Stefan Schiller Follow

Originally disclosed on Zero Day Initiative

Medium 6.8 View original

This vulnerability allows physically present attackers to execute arbitrary code on affected installations of Wyze Cam v3 IP cameras. Authentication is not required to exploit this vulnerability.

Stefan Schiller (Sonar), on the Zero Day Initiative

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 SSID from a scanned QR code is passed to a system call without validation or sanitisation, allowing command injection.

Impact

An attacker with physical access could execute arbitrary code as root on the camera, without authentication.

What the attacker needed

Physical access to the camera; crafted QR code with malicious SSID

The fix

The vendor issued an update to correct the vulnerability.

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.

A QR code used to set up the camera's Wi-Fi contains a network name (SSID). The camera passes that name directly to a system command without checking it, so a malicious name can run extra commands. An attacker who can show a crafted QR code to the camera can take full control of it.

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 Stefan Schiller

View all

1 more disclosed report, best first.

More from Zero Day Initiative

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.