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

Samsung SmartThings Hub video-core Database shard.videoHostURL Code Execution Vulnerability

The video-core process copies the shard.videoHostURL database field into a fixed-size stack buffer using strcpy without length checking, causing a stack-based buffer overflow. An attacker who can modify that database field can trigger the overflow via an HTTP request or background thread, potentially achieving code execution as root.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 7.5 View original

An exploitable stack-based buffer overflow vulnerability exists in the retrieval of a database field in video-core’s HTTP server of Samsung SmartThings Hub. The video-core process insecurely extracts the shard.videoHostURL field from 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

Impact

An attacker could overflow the stack buffer and execute arbitrary code in the video-core process, which runs as root; the report notes the vulnerability is reachable locally and, when combined with TALOS-2018-0556, could be triggered remotely.

What the attacker needed

Ability to modify the shard.videoHostURL database field; local access to video-core's HTTP server on port 3000

The fix

The vendor patched the vulnerability, though the report does not describe the specific fix.

How it was found

  1. Modify the shard.videoHostURL value in the database, for example using TALOS-2018-0556.
  2. Wait about one second for a background thread to call the vulnerable function, or send a PUT request to the streams endpoint.

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 area than it can hold, so the extra data spills over and corrupts nearby memory. Here, a value stored in a database is copied without checking its length, so a very long value can overwrite the program's stack and let an attacker control what it does next. The attacker first needs a way to change that database value, which the report says is possible through a separate vulnerability.

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.