Foscam IP Video Camera devMng Multi-Camera Port 10000 Command 0x0002 Username Field Code Execution Vulnerability
A stack-based buffer overflow in the devMng binary of Foscam C1 cameras allows an unauthenticated attacker to send a crafted UDP packet to port 10000 and overwrite the saved program counter, potentially executing arbitrary code. The vulnerability is reachable via the discovery command (0x0002) and does not require authentication.
Originally disclosed on Cisco Talos
An exploitable buffer overflow vulnerability exists in the Multi-Camera interface used by the Foscam C1 Indoor HD Camera running application firmware 2.52.2.43. A specially crafted request on port 10000 can cause a buffer overflow resulting in overwriting arbitrary data.
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 password field from a UDP message is copied into a fixed-size stack buffer using strcpy without checking the length, allowing a buffer overflow.
Impact
An unauthenticated attacker on the local network could overwrite stack data and potentially execute arbitrary code on the camera.
What the attacker needed
Attacker on the same network; knowledge of the device's MAC address; no authentication required
How it was found
- Send a UDP packet to port 10000 containing the header 'MO_I' and command 0x0002.
- Include a payload size that matches the message length minus 0x17.
- Provide the correct MAC address of the target device.
- Supply an overly long password field to overflow the stack buffer.
- Overwrite the saved program counter with a chosen address to redirect execution.
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 buffer overflow bug in a security camera's network service. An attacker can send a specially crafted message to the camera that is longer than the space reserved for it, causing the camera's memory to be overwritten and potentially letting the attacker run their own code on the device.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.