Anker Roav A1 Dashcam WifiCmd 9999 Code Execution Vulnerability
A stack-based buffer overflow exists in the Wi-Fi command 9999 handler of the Roav A1 dashcam. An attacker on the same Wi-Fi network can send a crafted HTTP request to execute arbitrary code on the device.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in Wi-Fi Command 9999 of the Roav A1 Dashcam. A specially crafted packet can cause a stack-based buffer overflow, resulting in code execution.
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 handler copies the user-supplied 'str' parameter into a 0x40-byte stack buffer using sprintf without bounds checking, causing a stack buffer overflow.
Impact
An attacker on the same Wi-Fi network could execute arbitrary code on the dashcam, but exploitation requires that after encoding the overflowed buffer[0x44] is a readable and writable address and the return address is valid and executable.
What the attacker needed
Attacker on same Wi-Fi network; Wi-Fi AP enabled on dashcam; connect to dashcam SSID
How it was found
- Enable the Wi-Fi AP setting on the dashcam and connect to its SSID.
- Send an HTTP request to the dashcam's web server with a query string containing custom=1 and cmd=9999.
- Include a long str parameter value that exceeds the 0x40-byte buffer, triggering the overflow.
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 dashcam runs a small web server that accepts commands over Wi-Fi. One command copies user input into a fixed-size memory area without checking length, so a long input overwrites nearby memory and can let an attacker run their own code on the camera.
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.