Yi Technology Home Camera 27US CRCDec denial-of-service vulnerability
A memory leak in the UDP protocol handler of the Yi Home Camera allows an unauthenticated attacker to allocate unlimited memory by sending specially crafted packets, leading to denial of service. The attacker can crash services and cause the camera to reboot or become unreachable.
An exploitable code execution vulnerability exists in the UDP network functionality of Yi Home Camera 27US 1.8.7.0D. A specially crafted set of UDP packets can allocate unlimited memory, resulting in denial of service.
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 a missing free of a heap buffer allocated before calling the CRCDec function when the CRC check succeeds.
Impact
An unauthenticated attacker with network connectivity can cause a denial of service, crashing services and potentially rebooting the camera, rendering it unreachable until a physical reboot.
What the attacker needed
Network access to the camera; no authentication required
The fix
The issue was fixed by the vendor in a firmware update.
How it was found
- Send a MSG_LAN_SEARCH packet to UDP port 31208 to discover the camera and obtain its Device ID.
- Send a MSG_LAN_NOTIFY packet from a new source port to complete the handshake.
- Send a MSG_DEV_LGN_ACK_CRC packet with a payload that ends with 'CCCC' to trigger the memory leak.
- Repeat sending the crafted packet many times to exhaust memory and cause denial of service.
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.
The camera's network service has a bug where it forgets to free memory after processing certain messages. An attacker on the same network can send many of these messages, filling up the camera's memory until it crashes or reboots, making the camera unusable until manually restarted.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.