CUJO Smart Firewall dhcpd.conf verified boot bypass
The CUJO Smart Firewall's verified boot can be bypassed by adding arbitrary shell commands to the dhcpd.conf file, which persist across reboots and firmware updates. An attacker with local write access to /config/dhcpd.conf can execute unverified commands with root privileges.
Originally disclosed on Cisco Talos
An exploitable vulnerability exists in the verified boot protection of the CUJO Smart Firewall. It is possible to add arbitrary shell commands into the dhcpd.conf file, that persist across reboots and firmware updates, and thus allow for executing unverified commands.
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 DHCP server configuration file is stored on a writable partition and is not integrity-checked, allowing an attacker to inject commands that are executed with root privileges.
Impact
An attacker with local write access to /config/dhcpd.conf can achieve persistent root, surviving reboots and firmware updates, unless the /config partition is formatted.
What the attacker needed
Local write access to /config/dhcpd.conf
How it was found
- Gain write access to /config/dhcpd.conf.
- Add an 'on commit' block with an 'execute' statement to run a script.
- Place the attacker's script in /config.
- Set the immutable attribute on dhcpd.conf to prevent overwriting.
- Reboot or trigger a DHCP lease to execute the script as root.
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 device checks that its core software is genuine at startup, but it also reads a configuration file for its DHCP server from a writable area. That file can contain commands that the server runs as root. So someone who can edit that file can run their own code every time the device starts or gives out an IP address.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.