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

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.

Lilith >_> Follow

Originally disclosed on Cisco Talos

High 8.0 View original

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.

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 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

  1. Enable the Wi-Fi AP setting on the dashcam and connect to its SSID.
  2. Send an HTTP request to the dashcam's web server with a query string containing custom=1 and cmd=9999.
  3. 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.

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.