Skip to content
RCE Advisory Intermediate CVE-2017-2832

Foscam IP Video Camera CGIProxy.fcgi Account Deletion Command Injection Vulnerability

A command injection vulnerability exists in the Foscam C1 camera's web interface. An authenticated attacker with administrator privileges can inject shell characters into the username field during account deletion, leading to arbitrary command execution.

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 a password change resulting in command injection.

Claudio Bozzato and another member, 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

Root cause

The service builds a shell command using the username without sanitising shell metacharacters, then executes it with system().

Impact

An authenticated administrator can 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 as an administrator and send a request to add a new account with a username containing shell metacharacters and a command.
  2. Send a request to delete that same account, triggering the command injection.

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's web management interface lets administrators add and delete user accounts. When deleting an account, the camera takes the username and passes it to a system command without checking for special characters. An attacker who can log in as an administrator can put shell commands in the username, and those commands will run on the camera.

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

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