Skip to content
RCE Advisory Intermediate CVE-2017-2873

Foscam IP Video Camera CGIProxy.fcgi SoftAP Configuration Command Injection Vulnerability

A command injection vulnerability exists in the Foscam C1 camera's web interface when handling the SoftAP configuration command. An authenticated administrator can inject shell commands via the PSK parameter, leading to arbitrary command execution 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.43. A specially crafted HTTP request can allow for a user to inject arbitrary shell characters during the SoftAP configuration resulting in command injection.

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

What the attacker needed

Administrator account

How it was found

  1. Log in as an administrator to obtain a valid session.
  2. Send an HTTP request to the CGIProxy.fcgi endpoint with the setSoftApConfig command.
  3. Include a crafted psk parameter containing shell metacharacters and a command.
  4. The command is executed on the device.

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 you can set up its Wi-Fi hotspot. The page takes a password (PSK) and uses it to build a system command without cleaning it first. By putting special characters in the password, someone logged in as admin can make the camera run any command they want.

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.