Foscam IP Video Camera CGIProxy.fcgi Message 0x3001 Directory Traversal Vulnerability
The Foscam C1 camera's CGIProxy.fcgi service fails to sanitise the filename parameter in a heartbeat command, allowing directory traversal. An attacker can read arbitrary files from the device, such as configuration files containing credentials.
Originally disclosed on Cisco Talos
An exploitable directory traversal 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 cause the application to read a file from disk but a failulre to adequately filter characters results in allowing…
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 read arbitrary files on the device, potentially exposing sensitive information such as configuration data.
What the attacker needed
Network access to the camera's web interface; knowledge of the usrBeatHeart command
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.
A directory traversal bug lets someone trick a program into opening files outside the folder it is supposed to use, by putting special 'go up a folder' sequences in a filename. Here, the camera's web service takes a filename from a request and builds a path without cleaning it, so an attacker can ask for any file on the device. This could expose sensitive files like configuration data.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.