Skip to content
Memory corruption Advisory Advanced CVE-2018-4016

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.

Lilith >_> Follow

Originally disclosed on Cisco Talos

High 8.0 View original

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.

Lilith ¯\_(ツ)_/¯, on Cisco Talos

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

  1. Enable the Wi-Fi AP setting on the dashcam and connect to its SSID using the default password.
  2. Send an HTTP GET request to the dashcam's web server with a file path longer than 0xA0 bytes.
  3. 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.

More by Lilith >_>

View all

4 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.