Skip to content
Misconfiguration Advisory Advanced CVE-2017-2871

Foscam IP Video Camera Firmware Recovery Unsigned Image Vulnerability

The Foscam C1 camera's firmware recovery procedure accepts unsigned images, allowing an attacker on the same network or with admin access to flash a custom image and fully compromise the device.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Critical 9.6 View original

Insufficient security checks exist in the recovery procedure used by the Foscam C1 Indoor HD Camera running application firmware 2.52.2.43. An attacker who is in the same subnetwork of the camera or has remote administrator access, can fully compromise the device by performing a firmware recovery using a custom image.

Claudio Bozzato, 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.

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

Impact

An attacker on the same subnetwork or with remote administrator access could fully compromise the device by flashing a custom firmware image.

What the attacker needed

Attacker on same subnetwork (TFTP method); or remote admin access (SD card method)

The fix

The vendor patched the issue, likely by adding signature verification to the recovery procedure.

How it was found

  1. Set up a TFTP server on the same subnet as the camera.
  2. Reboot the camera; it will look for a TFTP server at a fixed IP address.
  3. The camera downloads the recovery image from the TFTP server.
  4. The camera decrypts the image and verifies its checksum.
  5. If the checksum passes, the camera flashes the image and boots it.

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.

This camera can recover its firmware (the software that runs it) from a file on the network or an SD card if the normal boot fails. The camera checks the file's format and a simple checksum, but it does not verify who made the file. So anyone who knows the format can create a malicious file and the camera will install it, giving the attacker control.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More by Claudio Bozzato

View all

185 more disclosed reports, 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.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.