Skip to content
Memory corruption Advisory Advanced CVE-2018-3912CVE-2018-3913CVE-2018-3914CVE-2018-3915CVE-2018-3916CVE-2018-3917

Samsung SmartThings Hub video-core database shard code execution vulnerabilities

The video-core HTTP server on the Samsung SmartThings Hub copies database fields into fixed-size stack buffers without length checks, causing stack-based buffer overflows. An attacker who can send HTTP requests to the local server could exploit these to execute arbitrary code as root.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 7.5 View original

Multiple exploitable stack-based buffer overflow vulnerabilities exist in the retrieval of database fields in the video-core HTTP server of the Samsung SmartThings Hub. The video-core process insecurely extracts the fields from the “shard” table of its SQLite database, leading to a buffer overflow on the stack.

Claudio Bozzato, 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 video-core process uses strcpy to copy database field values into fixed-size stack buffers without any length validation.

Impact

An attacker could achieve code execution on the video-core process, which runs as root, but a local connection to the hub is required to send the HTTP request.

What the attacker needed

Local network access to the hub; ability to send HTTP requests to port 3000

The fix

The vendor patched the vulnerability.

How it was found

  1. Send an HTTP POST request to the video-core credentials endpoint with a crafted value that injects SQL to update a shard field with a long string.
  2. The video-core process later retrieves the shard field from the database and copies it into a fixed-size stack buffer using strcpy, causing an 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 copies more data into a fixed-size memory space than it can hold, overwriting nearby data. Here, the hub's video service reads settings from its database and copies them into small memory slots without checking length, so an attacker who can send requests to the service could crash it or run their own code.

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

View all

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