Milesight UR32L eventcore access violation vulnerability
The eventcore binary on Milesight UR32L routers copies more data than it received into a buffer, causing an over-read that can crash the process. An attacker can send a crafted network request to trigger a denial of service.
Originally disclosed on Cisco Talos
An access violation vulnerability exists in the eventcore functionality of Milesight UR32L v32.3.0.5. A specially crafted network request can lead to 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
The code uses a fixed copy length (0x800 - message_strlen) instead of the actual received length, causing a buffer over-read.
What the attacker needed
Network access to UDP port 9001 on the router
The fix
The memcpy should use the actual received length (recv_length) instead of a fixed size, and the vendor did not release a patch within the 90-day window.
How it was found
- Send a UDP packet of 0x1ff bytes to port 9001 on the router.
- The eventcore thread receives the data into chunk_buff.
- The memcpy copies 0x800 bytes from chunk_buff, reading beyond the buffer.
- The over-read crosses the stack boundary and causes a segmentation fault.
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 router service reads incoming messages into a small buffer, then copies a fixed larger amount into a bigger buffer. Because it copies more than it read, it reads past the end of the small buffer and crashes. An attacker can send a message to make the service crash, disrupting the router's event handling.
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.