Foscam IP Video Camera devMng Multi-Camera Port 10001 Command 0x0064 Empty AuthResetKey Vulnerability
A missing error check in the devMng binary of Foscam C1 cameras allows an unauthenticated attacker to reset user accounts to factory defaults by sending a crafted UDP packet to port 10001 with an empty authResetKey. The vulnerability is due to a function that fails to return an error when the key is not set, causing the comparison to succeed with a null key.
Originally disclosed on Cisco Talos
A missing error check 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 10001 could allow an attacker to reset the user accounts to factory defaults, without authentication.
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
Likely the function sub_2C878 returns 0 (success) even when the authResetKey is not set, and the caller does not check the return value, so an empty key matches the uninitialised expected key buffer.
Impact
An unauthenticated attacker on the same network could reset the camera's user accounts to factory defaults, potentially gaining unauthorised access.
What the attacker needed
Network access to UDP port 10001; no authentication required
How it was found
- Send a UDP packet to port 10001 with the header 'MO_I' and command 0x0064.
- Include a payload size that matches the message length minus the header size.
- Set the authResetKey field to a single null byte.
- The camera processes the request and resets user accounts to factory defaults.
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 report describes a flaw in a security camera that lets anyone on the network reset the camera's user accounts without knowing the password. The camera has a feature to talk to other cameras, and a mistake in how it checks a secret key means an attacker can send a special message that tricks the camera into resetting its accounts. The attacker only needs to send a small network packet to the camera's port 10001.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.