Skip to content
RCE Advisory Intermediate CVE-2017-2848

Foscam IP Video Camera CGIProxy.fcgi DNS2 Address Configuration Command Injection Vulnerability

The Foscam C1 camera's web interface fails to sanitise the dns2 parameter in the setIpInfo command, allowing an authenticated administrator to inject shell metacharacters that are executed as part of a system command. An attacker with valid admin credentials could run arbitrary commands on the device.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 8.8 View original

An exploitable command injection vulnerability exists in the web management interface used by the Foscam C1 Indoor HD Camera running application firmware 2.52.2.37. A specially crafted HTTP request can allow for a user to inject arbitrary shell characters during manual network configuration resulting in command…

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 with administrator credentials could execute arbitrary commands on the device, potentially leading to full compromise.

What the attacker needed

Valid administrator account

How it was found

  1. Log in to the camera's web interface with an administrator account.
  2. Send an HTTP request to the CGIProxy.fcgi endpoint with the setIpInfo command and isDHCP set to 0.
  3. Include a dns2 value containing shell metacharacters and the desired command.
  4. The camera builds and executes a shell command that includes the injected payload.

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 has a web page where an administrator can set network details like the DNS server address. The camera takes whatever is typed into the DNS field and pastes it directly into a command that the underlying operating system runs. By putting special characters in that field, someone with admin access can make the camera run extra commands of their choosing.

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 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.

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.