Hangzhou Hikvision Digital Technology Co., Ltd. EZVIZ CS-C6N cloud snapshot improper certificate validation vulnerability
The EZVIZ CS-C6N camera's snapshot upload routine disables TLS certificate validation by setting mbedTLS's authmode to VERIFY_NONE, so the camera accepts any certificate presented to it. An on-path attacker can impersonate the cloud server, intercept the uploaded snapshot, and recover it, including decrypting encrypted snapshots when the camera uses its default verification code.
Originally disclosed on Cisco Talos
A improper certificate validation vulnerability exists in the cloud snapshot functionality of EZVIZ CS-C6N (version(s): V5.3.8 build 241021). A specially crafted series of network requests can lead to a disclosure of sensitive information.
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 upload routine loads mbedTLS's secure defaults and then immediately overrides authmode to VERIFY_NONE, so the certificate validity check is skipped during the handshake and the verify result is never consulted.
Impact
An on-path attacker can intercept snapshots with no certificate trust and no user action, recovering them as plaintext when encryption is off and decrypting them when a default verification code is used; a user-changed strong password resists this.
What the attacker needed
On-path network position; camera uploads a snapshot; default code for encrypted snapshots
The fix
The vendor says it was fixed via a server-side configuration update that enforces mandatory TLS certificate authentication and terminates the connection on verification failure.
How it was found
- Take an on-path position on the camera's network or an upstream hop.
- Run a transparent TLS terminator presenting any certificate, since the camera never checks it.
- Capture the snapshot upload request to the cloud endpoint.
- If encryption is off, read the raw JPEG directly from the body.
- If encryption is on, recover the verification code offline from the leaked hash and decrypt the image.
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.
When a device connects to a server over an encrypted link, it should check the server's certificate, which is like an ID card proving the server is genuine. This camera skips that check, so anyone who can sit on the network path can pretend to be the cloud and read the pictures the camera sends. The pictures are still scrambled in transit, but the camera never confirms who is on the other end.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.