Skip to content
Memory corruption Advisory Advanced CVE-2017-16338CVE-2017-16339CVE-2017-16340CVE-2017-16341CVE-2017-16342CVE-2017-16343CVE-2017-16344CVE-2017-16345CVE-2017-16346CVE-2017-16347

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

Multiple buffer overflow vulnerabilities exist in the PubNub message handler for the 'cc' channel of Insteon Hub firmware 1012. An attacker with authenticated access to the PubNub service can send crafted JSON commands to overflow global buffers, 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 buffer overflow on a global section 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 message handler uses strcpy to copy JSON string values into fixed-size global buffers without any length validation.

Impact

An attacker could overwrite global data and potentially execute arbitrary code on the device, though the CVSS vector indicates high attack complexity and privileges required.

What the attacker needed

Authenticated access to PubNub service; knowledge of device's PubNub keys and auth key

The fix

The vendor addressed the issues and planned beta testing, but the text does not specify the exact fix.

How it was found

  1. Obtain the PubNub publish key, subscribe key, and authentication key for the target device.
  2. Construct a JSON message with a command and a vulnerable parameter containing an overly long string.
  3. Send an HTTP GET request to the PubNub publish endpoint with the JSON as the payload and the auth key as a query parameter.
  4. The device receives the message on its 'cc' channel and processes it, triggering the 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 copies more data into a fixed-size memory space than it can hold, causing the extra data to spill over into nearby memory. Here, the Insteon Hub device copies values from JSON messages into small global buffers without checking length, so an attacker who can send messages to the device's PubNub channel can overwrite 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.