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.
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.43. A specially crafted HTTP request can allow for a user to inject arbitrary shell characters during the SoftAP configuration resulting in command injection.
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
- Log in as an administrator to obtain a valid session.
- Send an HTTP request to the CGIProxy.fcgi endpoint with the setSoftApConfig command.
- Include a crafted psk parameter containing shell metacharacters and a command.
- 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.