Foscam IP Video Camera CGIProxy.fcgi SMTP Test Password Parameter Configuration Command Injection Vulnerability
A command injection vulnerability exists in the Foscam C1 camera's web interface because the SMTP test password parameter is written unsanitised into the msmtprc configuration file. An attacker can send a crafted HTTP request to inject arbitrary configuration lines, leading to command execution.
Originally disclosed on Cisco Talos
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.
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 could execute arbitrary commands on the camera, potentially taking full control of the device.
What the attacker needed
Access to the web interface; authentication (CVSS PR:L)
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 test email settings. One of the boxes, the password, is saved directly into a settings file without checking what you type. By putting special characters in that box, an attacker can add extra settings that make the camera run commands, giving them control of the device.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.