Anker Roav A1 Dashcam HTTP Path Overflow Code Execution Vulnerability
The Roav A1 Dashcam's web server copies the HTTP request path into a fixed-size stack buffer without bounds checking, so a long path causes a stack-based buffer overflow. An attacker on the same Wi-Fi network could send a crafted request to execute arbitrary code on the device.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the URL-parsing functionality of the Roav A1 Dashcam running version “RoavA1SWV1.9.” A specially crafted packet can cause a stack-based buffer overflow, resulting in code execution. An attacker can send a packet to trigger this vulnerability.
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 URL-parsing function uses an unbounded string copy to place the request path into a 0x80-byte stack buffer, without validating the path length.
What the attacker needed
Attacker on the same Wi-Fi network; Dashcam Wi-Fi AP enabled; No authentication required
How it was found
- Enable the Wi-Fi AP setting on the dashcam and connect to its SSID using the default password.
- Send an HTTP GET request to the dashcam's web server with a file path longer than 0xA0 bytes.
- The server copies the path into a 0x80-byte stack buffer, causing a stack-based buffer 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 buffer overflow happens when a program writes more data into a fixed-size memory space than it can hold, spilling over into nearby memory. Here, the dashcam's web server takes the file path from an HTTP request and copies it into a small buffer on the stack without checking the length. By sending a very long path, an attacker can overwrite important data and potentially take control of 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.