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

Webroot BrightCloud SDK HTTP headers-parsing code execution vulnerability

The HTTP header-parsing function in the Webroot BrightCloud SDK lacks a size check, allowing an attacker to overflow a global buffer by sending overlong headers. An attacker who can impersonate the BrightCloud server could execute arbitrary code on the device.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

An exploitable buffer overflow vulnerability exists in the HTTP header-parsing function of the Webroot BrightCloud SDK. The function bchttpreadheader incorrectly handles overlong headers, leading to arbitrary code execution.

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 execute arbitrary code with root privileges on the CUJO Smart Firewall, but only if they can impersonate the BrightCloud server, for example via a man-in-the-middle attack.

What the attacker needed

Ability to impersonate bcap15.brightcloud.com; man-in-the-middle position or DNS spoofing

The fix

The vendor patched the vulnerability, likely by adding bounds checking to the header-reading loop.

How it was found

  1. Redirect connections destined for bcap15.brightcloud.com:80 to the attacker's machine.
  2. Run a listener on port 80 that sends an HTTP response with many long header lines.
  3. The vulnerable function reads the headers into a fixed-size buffer, overflowing it and crashing the threatd process.

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 writes more data into a fixed-size memory area than it can hold, spilling into adjacent memory. Here, the SDK reads HTTP headers into a fixed-size buffer without checking length, so a malicious server can send very long headers to overwrite memory and potentially run 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.