Skip to content
DoS Advisory Intermediate CVE-2018-4002

CUJO Smart Firewall mdnscap mDNS label compression denial-of-service vulnerability

The mdnscap binary of the CUJO Smart Firewall unsafely handles mDNS label compression pointers, allowing an unauthenticated attacker to cause uncontrolled recursion and stack exhaustion, crashing the process.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

Medium 5.3 View original

An exploitable denial-of-service vulnerability exists in the mdnscap binary of the CUJO Smart Firewall running firmware 7003. When parsing labels in mDNS packets, the firewall unsafely handles label compression pointers, leading to an uncontrolled recursion that eventually exhausts the stack, crashing the mdnscap…

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 compression label offset can point back to the current DNS name, creating an infinite recursion because the check only prevents double indirection, not self-reference.

Impact

An unauthenticated attacker can crash the mdnscap process, causing a denial of service on the firewall's mDNS monitoring.

What the attacker needed

Network access to UDP port 5353

How it was found

  1. Craft an mDNS packet with a question entry whose name consists of a data label followed by a compression label pointing back to that data label.
  2. Send the packet to UDP port 5353 on the CUJO device.
  3. The mdnscap process parses the name, recurses infinitely, exhausts the stack, and crashes.

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 name in an mDNS message, it can follow a pointer to another part of the message. The program does not check that the pointer does not loop back to itself, so a crafted message makes it call itself over and over until it runs out of memory and crashes.

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.