Skip to content
Memory corruption Advisory Advanced CVE-2017-16252CVE-2017-16253CVE-2017-16254CVE-2017-16255CVE-2017-16256CVE-2017-16257CVE-2017-16258CVE-2017-16259CVE-2017-16260CVE-2017-16261CVE-2017-16262CVE-2017-16263CVE-2017-16264CVE-2017-16265CVE-2017-16266CVE-2017-16267CVE-2017-16268CVE-2017-16269CVE-2017-16270CVE-2017-16271CVE-2017-16272CVE-2017-16273CVE-2017-16274CVE-2017-16275CVE-2017-16276CVE-2017-16277CVE-2017-16278CVE-2017-16279CVE-2017-16280CVE-2017-16281CVE-2017-16282CVE-2017-16283CVE-2017-16284CVE-2017-16285CVE-2017-16286CVE-2017-16287CVE-2017-16288CVE-2017-16289CVE-2017-16290CVE-2017-16291CVE-2017-16292CVE-2017-16293CVE-2017-16294CVE-2017-16295CVE-2017-16296CVE-2017-16297CVE-2017-16298CVE-2017-16299CVE-2017-16300CVE-2017-16301CVE-2017-16302CVE-2017-16303CVE-2017-16304CVE-2017-16305CVE-2017-16306CVE-2017-16307CVE-2017-16308CVE-2017-16309CVE-2017-16310CVE-2017-16311CVE-2017-16312CVE-2017-16313CVE-2017-16314CVE-2017-16315CVE-2017-16316CVE-2017-16317CVE-2017-16318CVE-2017-16319CVE-2017-16320CVE-2017-16321CVE-2017-16322CVE-2017-16323CVE-2017-16324CVE-2017-16325CVE-2017-16326CVE-2017-16327CVE-2017-16328CVE-2017-16329CVE-2017-16330CVE-2017-16331CVE-2017-16332CVE-2017-16333CVE-2017-16334CVE-2017-16335CVE-2017-16336CVE-2017-16337

Insteon Hub PubNub "cc" Channel Message Handler Multiple Stack Overflow Code Execution Vulnerabilities

The Insteon Hub firmware's PubNub message handler for the 'cc' channel copies JSON values into fixed-size stack buffers without bounds checking, allowing an attacker to overflow them. An authenticated attacker could send crafted commands to overwrite stack memory, potentially leading to code execution.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 8.5 View original

Multiple exploitable buffer overflow vulnerabilities exist in the PubNub message handler for the “cc” channel of Insteon Hub running firmware version 1012. Specially crafted commands sent through the PubNub service can cause a stack-based buffer overflow overwriting arbitrary data.

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 firmware uses `strcpy` to copy JSON string values into fixed-size stack buffers without any length validation.

Impact

An authenticated attacker could overwrite stack memory, potentially leading to arbitrary code execution on the device.

What the attacker needed

Authenticated access to PubNub; knowledge of device channel name; valid auth key

How it was found

  1. An attacker obtains the PubNub publish and subscribe keys and the device's channel name.
  2. The attacker crafts a JSON message with an oversized value for a vulnerable key.
  3. The attacker sends an HTTP GET request to the PubNub publish endpoint with the JSON in the URL path and a valid auth key.
  4. The device receives the message and the vulnerable `strcpy` overflows the stack buffer.

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, spilling over into nearby memory. Here, the Insteon Hub takes commands from the internet and copies the text into small buffers without checking length, so an attacker can send extra data to overwrite important memory and possibly 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.