Skip to content
DoS Advisory Intermediate CVE-2018-4011

CUJO Smart Firewall mdnscap mDNS SRV record denial-of-service vulnerability

An integer underflow in the mdnscap binary of CUJO Smart Firewall occurs when parsing SRV records with an RDLENGTH value less than 6, leading to an out-of-bounds heap access. An unauthenticated attacker can send a crafted mDNS packet to crash the mdnscap process.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Medium 6.5 View original

An exploitable integer underflow vulnerability exists in the mdnscap binary of the CUJO Smart Firewall, version 7003. When parsing SRV records in an mDNS packet, the “RDLENGTH” value is handled incorrectly, leading to an out-of-bounds access that crashes the mdnscap process.

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 code subtracts 6 from the RDLENGTH field without first verifying that RDLENGTH is at least 6, causing an integer underflow that leads to an out-of-bounds heap access.

Impact

An unauthenticated attacker can crash the mdnscap process, causing a denial of service.

What the attacker needed

Network access to UDP port 5353

How it was found

  1. Craft an mDNS response packet with an SRV record whose RDLENGTH is 5.
  2. Send the packet to UDP port 5353 on the CUJO device.
  3. The mdnscap process parses the packet and crashes due to the underflow.

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.

The firewall runs a small program that listens for mDNS (a protocol used to discover devices on a local network). When it reads a certain type of record, it subtracts 6 from a length value without checking if the length is at least 6. If the length is smaller, the number wraps around to a huge value, causing the program to read and write outside its memory buffer and crash.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

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.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.