Skip to content
Info disclosure Write-up Intermediate

Exploiting CCTV: RTSP Authentication Digest

An attacker on the same network sniffed RTSP traffic and captured a digest authentication challenge-response. Because the password was weak, the attacker brute-forced it offline and gained access to the CCTV stream.

medium.com

Published on medium.com

English version

Pagar Alam, on medium.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 CCTV device used a weak password and digest authentication with MD5, allowing offline brute-force once the challenge-response was captured.

Impact

An attacker on the local network could recover the camera password and view the live video stream.

What the attacker needed

Attacker on same network; camera uses digest auth; weak password

The fix

The device should enforce strong passwords and use a more secure authentication method than MD5 digest.

How it was found

  1. Scan the internal network to find open RTSP ports.
  2. Perform ARP spoofing to intercept traffic between the camera and gateway.
  3. Capture RTSP packets with Wireshark and extract the digest authentication fields.
  4. Brute-force the password offline using the captured nonce and response.
  5. Verify the recovered password by connecting to the RTSP stream with VLC.

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.

RTSP is a protocol used by IP cameras to stream video. When a camera asks for a password, it sends a random number (nonce) and the client replies with a hash of the password and that nonce. If an attacker can see that hash, they can guess passwords offline until one matches, then watch the camera feed.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.