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.
Originally disclosed on Cisco Talos
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…
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
- 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.
- Send the packet to UDP port 5353 on the CUJO device.
- 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.