Skip to content
RCE Advisory Advanced CVE-2017-2844

Foscam IP Video Camera CGIProxy.fcgi SMTP Test Sender Parameter Configuration Command Injection Vulnerability

The Foscam C1 camera's web interface allows an authenticated user to inject arbitrary data into the msmtprc configuration file via the 'sender' parameter of the smtpTest command, leading to command execution. An attacker can send a crafted HTTP request to the device to trigger this vulnerability.

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 data in the “msmtprc” configuration file resulting in command execution.

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

Root cause

The 'sender' parameter is written without any sanitization on the 'from' line of the msmtprc configuration file.

Impact

An attacker could execute arbitrary commands on the device, potentially compromising the camera.

What the attacker needed

Authenticated access to the web interface

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 is a command injection bug in a security camera's web interface. When you use the email test feature, the camera writes your email address into a configuration file without cleaning it up. A malicious user could put special characters in that address to make the camera run their own commands.

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.