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.
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 shell characters during a password change 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
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
- Log in as an administrator and send a request to add a new account with a username containing shell metacharacters and a command.
- 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.