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.
Originally disclosed on Cisco Talos
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.
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
- Craft an mDNS response packet with an SRV record whose RDLENGTH is 5.
- Send the packet to UDP port 5353 on the CUJO device.
- 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.