Skip to content
Access control Advisory Advanced CVE-2018-3969

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.

Claudio Bozzato Follow

Originally disclosed on Cisco Talos

High 8.2 View original

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.

Claudio Bozzato, Yves Younan, Aleksandar Nikolic, Martin Zeiser, Marcin 'Icewall' Noga, Lilith Wyatt <(^_^)>, Cory Duplantis, Tyler Bohan, 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 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

  1. Gain write access to /config/dhcpd.conf.
  2. Add an 'on commit' block with an 'execute' statement to run a script.
  3. Place the attacker's script in /config.
  4. Set the immutable attribute on dhcpd.conf to prevent overwriting.
  5. 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.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.