Skip to content
Crypto Advisory Advanced CVE-2026-86586

Hangzhou Hikvision Digital Technology Co., Ltd. EZVIZ CS-C6N MQTT authentication bypass vulnerability

The camera accepts a replayed MQTT snapshot command without any anti-replay check, and the command travels in cleartext. An attacker on the network path can capture a current-session command and replay it to force the camera to take and upload a fresh snapshot.

Chi-en Shen Follow

Originally disclosed on Cisco Talos

Medium 4.8 View original

A authentication bypass vulnerability exists in the MQTT functionality of EZVIZ CS-C6N (version(s): V5.3.8 build 241021). A specially crafted MQTT payload can lead to a disclosure of sensitive information.

Chi-en (Ashley) Shen, 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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 5 min read.

Context

The EZVIZ CS-C6N is a consumer indoor Wi-Fi pan-and-tilt security camera from EZVIZ, the consumer and small-business brand of Hikvision, used for 1080p home and small-office monitoring with night vision, motion detection, and two-way audio.

Owners do not connect to the camera directly. The device streams video and uploads snapshots to the EZVIZ cloud, and the owner views them through the EZVIZ or Hik-Connect mobile app. The attack surface therefore spans the LAN services the camera exposes, the mobile application, and several cloud channels (cloud command, snapshot upload, REST API, and image download) that mediate all communication between the camera and its owner.

The feature at the centre of this advisory is the snapshot command. The cloud tells the camera to take a picture by sending a plaintext, unauthenticated MQTT command, and the camera acts on a byte-for-byte copy of that command replayed back to it. Anyone on the network path can therefore force the camera to capture and upload its current view, within the owner's session, with no account and no password.

Setup

The confirmed vulnerable version is:

Product Version
EZVIZ CS-C6N V5.3.8 build 241021

The vulnerability is rated 4.8 with the vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N, and classified as CWE-294, Authentication Bypass by Capture-replay.

The preconditions are network position and a captured command. The attacker must be on-path between the camera and its gateway, and must hold a CapturePicture command from the current session. The report notes that an old-session command will not trigger the camera; the command has to come from the session in use.

Finding it

Snapshot commands are delivered cloud-to-camera as MQTT PUBLISH messages on the DAS long-link. Two properties of that channel stood out.

First, the DAS MQTT link is not TLS-wrapped. The topic, for example /BG9440949/3100/13412, is sent in the clear. The topic encodes the serial, the domain and the command type (CapturePicture), so anyone on-path can see both the device serial and the command type.

Second, the camera acts on a verbatim replay of a captured PUBLISH and takes a fresh snapshot. There is no nonce, timestamp or sequence check that would reject a duplicated command. The attacker never decrypts or forges the payload: they replay the captured ciphertext and the camera executes it.

Exploitation

Without replay, an on-path attacker has to wait for the cloud to send a snapshot command before intercepting the resulting upload. Replaying a captured command lets the attacker trigger that upload at a time of their choosing, which enables active monitoring.

Step 1: Capture a current-session command

Sniff a current-session CapturePicture command off the cleartext :8820 link. It crosses the wire whenever the owner uses the app.

Bash
tshark ... 'mqtt.topic=="/<serial>/3100/13412"' -e tcp.payload

The output is a roughly 410-byte PUBLISH. The command must come from the current session; an old-session command will not trigger the camera.

Step 2: Get on-path and force a reconnect

ARP-poison the camera and gateway, redirect the camera's :8820 MQTT through a transparent relay, and RST the camera's current MQTT link so that it reconnects through the relay.

Step 3: Inject the captured PUBLISH

Inject the captured PUBLISH:

Bash
touch /tmp/inject

The camera takes a fresh snapshot and uploads it, and replies on /<serial>/3100/13413.

Step 4: Intercept the upload (optional)

If the attacker also exploits the camera's separate snapshot-upload certificate-validation flaw (VERIFY_NONE on pmseu1:8444), they can intercept the upload. The result is a plaintext JPEG if encryption is off, or ciphertext plus encryptPwd if it is on, in which case the code has to be brute-forced.

Root cause

The design of the DAS long-link has two compounding weaknesses.

  1. The MQTT link is not TLS-wrapped, so the topic and the command travel in the clear. The serial and command type are exposed to anyone on-path.
  2. The camera accepts a verbatim replay of a captured PUBLISH. There is no nonce, timestamp or sequence check to reject a duplicated command.

Because the payload is never decrypted or forged, no cryptography is broken. The cleartext topic makes the command trivially identifiable on the wire, and the absence of per-command anti-replay makes it replayable.

Impact

An on-path attacker can force the camera to capture on demand, holding no account and no device password, and breaking no cryptography. Combined with the camera's separate snapshot-upload certificate-validation flaw, this yields a fresh, attacker-triggered snapshot off the wire at will, within the session in which the command was captured.

The vendor's own advisory scores the issue 4.2 with the vector AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.

Fix

The vendor fixed the issue through a device firmware upgrade that adds an anti-replay mechanism. Patched firmware for all affected models has been progressively released. The vendor advisory is at https://www.ezviz.com/inter/trust-center/security/security-notice/Replay%20Attack and the issue is tracked as CVE-2026-86586 (TALOS-2026-2451).

Variants to test

  • Other cloud-to-device command channels. Look for MQTT or similar long-links that are not TLS-wrapped. A positive result is a topic visible in a packet capture that names the device and the command type.
  • Other command types on the same link. The report describes the CapturePicture command on /<serial>/3100/13412 with the reply on /<serial>/3100/13413. Try replaying other captured commands and watch for a device action or a reply on the paired topic.
  • Replay across sessions. The report states that an old-session command will not trigger the camera. Testing whether any command survives a session change, and under which conditions, is a concrete follow-up.
  • Snapshot upload path. Check whether the upload endpoint validates certificates. A positive result is an accepted connection to pmseu1:8444 under VERIFY_NONE, yielding a plaintext JPEG or ciphertext plus encryptPwd.

Hunting notes

This kind of bug hides in the plaintext control channels between consumer devices and their cloud: MQTT long-links, command topics that embed the serial and command type, and any path where the device trusts a message because it arrived on the expected topic. During recon, a packet capture showing a device topic in the clear, and a device that reconnects to a relay after an RST, are the signals that point to it.

The researcher showed impact by capturing a current-session command, forcing the camera through a transparent relay, and replaying the PUBLISH to make the camera take and upload a fresh snapshot. The vendor responded with an anti-replay mechanism in firmware.

Timeline

Date Event
2026-08-03 Initial vendor contact
2026-08-03 Vendor disclosure
2026-11-20 Vendor patch release
2026-11-23 Public release

Credit

Chi-en (Ashley) Shen of Cisco Talos and Orange Tsai of DEVCORE.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 15 min read.

What happened, in plain words

A security camera made by EZVIZ (the consumer brand of Hikvision) can be told to take a photo by a message that travels across the network without any protection. If someone can watch that message go past, they can save a copy of it and send the exact same copy back to the camera later. The camera cannot tell the difference between the real message and the copy, so it takes a fresh picture and uploads it. The person doing this needs no account and no password.

This kind of attack is called a replay attack: you do not break any lock or guess any secret, you simply record a valid instruction and play it again. Think of a hotel lift that opens when you swipe a valid key card. If someone records the radio signal of your card and plays it back later, the lift opens for them too, because the lift never checks whether that exact swipe has already been used.

The report credits Chi-en (Ashley) Shen of Cisco Talos and Orange Tsai of DEVCORE. The vendor fixed it in firmware by adding a mechanism that rejects repeated commands, and the issue is tracked as CVE-2026-86586 (TALOS-2026-2451).

The product and how it normally works

The EZVIZ CS-C6N is a consumer indoor Wi-Fi pan-and-tilt security camera. "Pan-and-tilt" means the camera can rotate left and right and tilt up and down, so it can be pointed around a room. It is used for 1080p home and small-office monitoring, with night vision, motion detection and two-way audio (a speaker and microphone so you can talk through the app).

A key point for understanding the bug: the owner does not connect to the camera directly. Instead:

  1. The camera streams video and uploads snapshots (still pictures) to the EZVIZ cloud. The cloud here just means servers on the internet run by EZVIZ.
  2. The owner opens the EZVIZ or Hik-Connect mobile app, and the app talks to the cloud.
  3. The cloud relays instructions to the camera and passes pictures back to the app.

Because of this design, the camera has several ways to be reached: services on the local network (the LAN, the network inside your home), the mobile app, and several cloud channels. The report names four cloud channels: cloud command (instructions sent to the camera), snapshot upload (pictures sent from the camera), REST API (a way for software to talk to a server over HTTP, the same protocol your browser uses), and image download.

The feature at the centre of this advisory is the snapshot command. The cloud sends the camera a message telling it to take a still picture. That message is an MQTT message. MQTT is a lightweight messaging protocol, a bit like a postal service for small messages: one side publishes a message on a named "topic", and anyone subscribed to that topic receives it. The report calls the channel the DAS long-link; a long-link is simply a connection the device keeps open for a long time so the cloud can push messages to it at any moment.

The problem: that MQTT message is sent in plain text, with no authentication, and the camera will act on a byte-for-byte copy of it if it is sent again.

Setup: which version is affected and how serious it is

The confirmed vulnerable version is:

Product Version
EZVIZ CS-C6N V5.3.8 build 241021

"Confirmed vulnerable" means the researchers either tested it themselves or the vendor confirmed it. A version is a label for one particular release of the software inside the device; "build 241021" is a finer-grained stamp for that exact build.

The vulnerability is rated 4.8 using CVSS, the Common Vulnerability Scoring System. CVSS is a standard way of turning the characteristics of a flaw into a number from 0 to 10, so people can compare severity. The vector string is:

Text
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Each part of that string is a short code:

  • AV:N means the attack vector is Network: the attacker reaches the target over a network rather than by physically touching it.
  • AC:H means attack complexity is High: the attacker needs special conditions, here being in the right place on the network and holding a captured command.
  • PR:N means no privileges are required: no account or login on the device.
  • UI:N means no user interaction: the victim does not have to click anything for the attack to work.
  • S:U means the scope is Unchanged: the impact stays within the vulnerable component.
  • C:L, I:L, A:L mean confidentiality, integrity and availability impacts are each Low.

The flaw is classified as CWE-294, Authentication Bypass by Capture-replay. CWE is a catalogue of weakness types. "Authentication bypass" means getting past a check that is supposed to prove who you are, without actually proving it. "Capture-replay" names the method: capture a valid message, then replay it.

The preconditions are network position and a captured command. The attacker must be on-path between the camera and its gateway, and must hold a CapturePicture command from the current session.

  • On-path means sitting somewhere on the route that traffic takes, so you can see (and potentially alter or resend) the messages going past. Think of standing between two people passing notes: you can read the notes as they go by.
  • The gateway is the device in your home (usually your router) that connects your local network to the internet.
  • A session is one period of use, from when the owner's app connects to the cloud until it disconnects. The report notes that an old-session command will not trigger the camera; the command has to come from the session currently in use.

Finding it: what the researchers noticed

Snapshot commands are delivered cloud-to-camera as MQTT PUBLISH messages on the DAS long-link. A PUBLISH is the MQTT message type used to send data out on a topic. Two properties of that channel stood out.

First, the DAS MQTT link is not TLS-wrapped. TLS is the encryption layer behind the padlock in your browser: it scrambles traffic so that anyone watching the wire sees gibberish. Without it, everything is readable. The topic, for example /BG9440949/3100/13412, is sent in the clear. That topic is structured: it contains the device serial, the domain, and the command type (CapturePicture). So anyone on-path can see both which device is being talked to and what it is being told to do.

Second, the camera acts on a verbatim replay of a captured PUBLISH and takes a fresh snapshot. There is no nonce, timestamp or sequence check that would reject a duplicated command.

  • A nonce is a one-time random value included in a message so that each message is unique; a copy would carry the same nonce and be spotted as a duplicate.
  • A timestamp lets the receiver reject messages that are too old.
  • A sequence check numbers messages so the receiver can tell that number 7 has already arrived and a second number 7 is a copy.

None of these three defences is present. The attacker never decrypts or forges the payload: they replay the captured ciphertext and the camera executes it. Ciphertext means data that has been scrambled by encryption; forging would mean creating a new, fake message that the camera accepts. Here neither is needed, which is why the report says no cryptography is broken.

Exploitation: how the attack is carried out

Without replay, an on-path attacker has to wait for the cloud to send a snapshot command before intercepting the resulting upload. Replaying a captured command lets the attacker trigger that upload at a time of their choosing, which enables active monitoring. In other words, instead of passively waiting for the owner to press the button, the attacker can make the camera take a picture whenever they want.

Step 1: Capture a current-session command

Sniff a current-session CapturePicture command off the cleartext :8820 link. It crosses the wire whenever the owner uses the app.

Bash
tshark ... 'mqtt.topic=="/<serial>/3100/13412"' -e tcp.payload

Line by line:

  • tshark is a command-line tool for capturing and inspecting network traffic. Sniffing means recording the packets (small chunks of data) that travel over a network.
  • ... stands for other options the report does not spell out.
  • 'mqtt.topic=="/<serial>/3100/13412"' is a filter. It tells tshark to show only MQTT messages whose topic matches this pattern. <serial> is a placeholder for the camera's serial number, the unique identifier printed on the device. The topic encodes the serial, the domain and the command type (CapturePicture).
  • -e tcp.payload asks tshark to print the contents of the TCP payload, which is the actual data carried inside the network packets. TCP is the protocol that carries reliable streams of data across networks; the payload is the useful content inside it.

The output is a roughly 410-byte PUBLISH. A byte is a unit of data; 410 bytes is a small message, about the length of a short paragraph of text. The command must come from the current session; an old-session command will not trigger the camera.

Step 2: Get on-path and force a reconnect

ARP-poison the camera and gateway, redirect the camera's :8820 MQTT through a transparent relay, and RST the camera's current MQTT link so that it reconnects through the relay.

This step needs unpacking:

  • ARP is the Address Resolution Protocol. Inside a local network, devices find each other by asking "which physical device has this address?" and remembering the answer. ARP poisoning means sending false answers so that two devices believe the attacker's machine is the other one. The camera then sends its traffic to the attacker, thinking it is talking to the gateway, and the gateway does the same in reverse.
  • A transparent relay is a program that passes traffic through, forwarding it between the two sides while the attacker sits in the middle. "Transparent" means the devices do not notice it is there.
  • RST is a TCP reset, a packet that abruptly closes a connection. By resetting the camera's existing MQTT connection, the attacker forces the camera to open a new one, and because of the ARP poisoning that new connection goes through the relay.

Why do this? To be reliably in the middle of the conversation, so the attacker can both see the command and inject a copy of it at will.

Step 3: Inject the captured PUBLISH

Inject the captured PUBLISH:

Bash
touch /tmp/inject

This is a deliberately simple command. touch normally creates an empty file or updates its timestamp; here it is used as a trigger, a signal to the attacker's own tooling that the moment has come to send the saved message. /tmp/inject is just a file path on the attacker's machine. The report does not describe the tooling behind it.

The camera takes a fresh snapshot and uploads it, and replies on /<serial>/3100/13413. Note the reply topic ends in 13413 rather than 13412: the device answers on a paired topic, so the attacker can watch for the reply to confirm the command worked.

Step 4: Intercept the upload (optional)

If the attacker also exploits the camera's separate snapshot-upload certificate-validation flaw (VERIFY_NONE on pmseu1:8444), they can intercept the upload. The result is a plaintext JPEG if encryption is off, or ciphertext plus encryptPwd if it is on, in which case the code has to be brute-forced.

What this means:

  • A certificate is the digital equivalent of an ID card that a server presents to prove it is genuine. When software connects to a server, it checks that certificate. VERIFY_NONE is a setting that switches that check off, so the software will accept any server, including an impostor.
  • 8444 is a port number.
  • A JPEG is a common image file format. "Plaintext" here means the picture is not encrypted, so it can be read directly.
  • encryptPwd is a field in the upload that carries a password used for encryption. If encryption is on, the attacker gets scrambled data plus that field, and must brute-force the code, meaning try many possibilities until the right one is found.

This step is separate from the replay bug. It is a second weakness in the camera that, combined with the replay, lets the attacker actually obtain the picture.

Root cause: why the bug exists

The design of the DAS long-link has two compounding weaknesses.

  1. The MQTT link is not TLS-wrapped, so the topic and the command travel in the clear. The serial and command type are exposed to anyone on-path.
  2. The camera accepts a verbatim replay of a captured PUBLISH. There is no nonce, timestamp or sequence check to reject a duplicated command.

Because the payload is never decrypted or forged, no cryptography is broken. The cleartext topic makes the command trivially identifiable on the wire, and the absence of per-command anti-replay makes it replayable. "Anti-replay" means any mechanism designed to stop copies of old messages from being accepted.

Impact: what an attacker gains

An on-path attacker can force the camera to capture on demand, holding no account and no device password, and breaking no cryptography. Combined with the camera's separate snapshot-upload certificate-validation flaw, this yields a fresh, attacker-triggered snapshot off the wire at will, within the session in which the command was captured.

In everyday terms: someone who can sit on your network path can make your camera take a picture of whatever it is pointing at, without knowing your password, within the session the command came from. The limit is that the captured command only works within the session it came from.

The vendor's own advisory scores the issue 4.2 with the vector AV:A/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.

Fix: what the vendor did

The vendor fixed the issue through a device firmware upgrade that adds an anti-replay mechanism. Firmware is the software built into the device itself, as opposed to an app on your phone. Patched firmware for all affected models has been progressively released. The vendor advisory is at https://www.ezviz.com/inter/trust-center/security/security-notice/Replay%20Attack and the issue is tracked as CVE-2026-86586 (TALOS-2026-2451). A CVE is a public identifier assigned to a known vulnerability so people can refer to it unambiguously.

Variants to test: where else to look

These are follow-up ideas for researchers, not confirmed findings.

  • Other cloud-to-device command channels. Look for MQTT or similar long-links that are not TLS-wrapped. A positive result is a topic visible in a packet capture that names the device and the command type.
  • Other command types on the same link. The report describes the CapturePicture command on /<serial>/3100/13412 with the reply on /<serial>/3100/13413. Try replaying other captured commands and watch for a device action or a reply on the paired topic.
  • Replay across sessions. The report states that an old-session command will not trigger the camera. Testing whether any command survives a session change, and under which conditions, is a concrete follow-up.
  • Snapshot upload path. Check whether the upload endpoint validates certificates. A positive result is an accepted connection to pmseu1:8444 under VERIFY_NONE, yielding a plaintext JPEG or ciphertext plus encryptPwd.

Hunting notes: how to spot this kind of bug

This kind of bug hides in the plaintext control channels between consumer devices and their cloud: MQTT long-links, command topics that embed the serial and command type, and any path where the device trusts a message because it arrived on the expected topic. "Trusts a message because it arrived on the expected topic" is the key mistake: the device checks where the message came from, not whether it is fresh.

During recon (the early phase of looking around a target), a packet capture showing a device topic in the clear, and a device that reconnects to a relay after an RST, are the signals that point to it.

The researcher showed impact by capturing a current-session command, forcing the camera through a transparent relay, and replaying the PUBLISH to make the camera take and upload a fresh snapshot. The vendor responded with an anti-replay mechanism in firmware.

Timeline

Date Event
2026-08-03 Initial vendor contact
2026-08-03 Vendor disclosure
2026-11-20 Vendor patch release
2026-11-23 Public release

"Initial vendor contact" is when the researchers first told the vendor. "Vendor disclosure" is when the details were formally shared. "Vendor patch release" is when fixed firmware became available. "Public release" is when the advisory was published for everyone to read.

Credit

Chi-en (Ashley) Shen of Cisco Talos and Orange Tsai of DEVCORE.

Glossary

  • Anti-replay: any mechanism that stops a copy of an old message from being accepted as new.
  • ARP (Address Resolution Protocol): the protocol local devices use to map network addresses to physical devices.
  • ARP poisoning: sending false ARP answers so traffic between two devices passes through the attacker instead.
  • Attack surface: all the ways a device or system can be reached and attacked.
  • Authentication bypass: getting past a check that is meant to prove identity, without actually proving it.
  • Brute-force: trying many possible values until the correct one is found.
  • Build: a specific compiled release of software, identified by a stamp such as 241021.
  • Byte: a unit of digital data; 410 bytes is a small message.
  • Certificate: a digital ID card a server presents to prove it is genuine.
  • Ciphertext: data that has been scrambled by encryption.
  • Cloud: servers on the internet run by a company, here EZVIZ, that devices and apps talk to.
  • CVE: a public identifier for a known vulnerability.
  • CVSS: a standard scoring system that turns a vulnerability's characteristics into a number from 0 to 10.
  • CWE: a catalogue of weakness types, such as CWE-294 for capture-replay authentication bypass.
  • DAS long-link: the long-lived connection the camera keeps open so the cloud can push commands to it.
  • encryptPwd: a field in the snapshot upload carrying the password used for encryption.
  • Firmware: the software built into a device itself.
  • Forging: creating a new, fake message that a system accepts as genuine.
  • Gateway: the device in a home network, usually the router, that connects it to the internet.
  • JPEG: a common image file format.
  • LAN: the local network inside a home or office.
  • MQTT: a lightweight messaging protocol where messages are published on named topics.
  • Nonce: a one-time random value that makes each message unique.
  • On-path: positioned on the route traffic takes, so messages can be seen and resent.
  • Packet: a small chunk of data travelling over a network.
  • Payload: the useful content carried inside a network packet.
  • Port: a numbered endpoint on a computer that a particular service listens on.
  • PUBLISH: the MQTT message type used to send data out on a topic.
  • Recon: the early phase of exploring a target to find weaknesses.
  • Replay attack: recording a valid message and sending it again later so the receiver acts on it a second time.
  • REST API: a way for software to talk to a server over HTTP.
  • RST: a TCP reset packet that abruptly closes a connection.
  • Sequence check: numbering messages so duplicates can be detected.
  • Session: one period of use, from when a client connects until it disconnects.
  • Sniffing: recording the packets that travel over a network.
  • TCP: the protocol that carries reliable streams of data across networks.
  • Timestamp: a time stamp on a message that lets the receiver reject old ones.
  • TLS: the encryption layer behind the padlock in a browser, which scrambles traffic so watchers see gibberish.
  • Transparent relay: a program that forwards traffic between two sides while the attacker sits in the middle.
  • tshark: a command-line tool for capturing and inspecting network traffic.
  • VERIFY_NONE: a setting that switches off certificate checking, so any server is accepted.
  • Version: a label for one particular release of software.

More by Chi-en Shen

View all

1 more disclosed report, 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.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.