Skip to content
Misconfiguration Write-up Advanced

Google Nest: Exploiting DFU For Root

The Nest thermostat's DFU recovery mode, intended for manufacturer diagnostics, accepted unsigned boot images over USB without restriction. An attacker with physical access could load a custom boot-loader and kernel to install an SSH server running as root, then set up a reverse SSH tunnel for remote access.

blog.gtvhacker.com

Published on blog.gtvhacker.com

Nest, a company recently acquired by Google, offers a variety of popular network enabled home utilities. The most popular of which is a thermostat that allows a user to control their household temperature remotely from their smart phone.

The author, on blog.gtvhacker.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the DFU recovery mode accepted unsigned boot images over USB with no authentication or signature check, so anyone with physical access could replace the boot chain.

Impact

An attacker with physical access could gain root on the thermostat and, via a reverse SSH tunnel, could remotely access the device and home network, bypassing most firewalls.

What the attacker needed

Physical access to the device; USB connection to the device; Linux host to run the attack script

How it was found

  1. Put the Nest into DFU mode by holding the screen while the device is off.
  2. Push custom x-loader and U-Boot images to the device over USB using the omap3_loader utility.
  3. Boot a Linux kernel that mounts the Nest file system and installs the Dropbear SSH server.
  4. Add a script that checks the virtual USB disk for host and key files and opens a reverse SSH tunnel when they are present.

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 write-up has not been written yet. The Original tab links to the source.

A thermostat runs software on a small computer inside it. Normally only the manufacturer's signed software is allowed to start, but a special repair mode on this device accepted any software pushed to it over a cable. Someone with the device in hand could therefore install their own software that gives them full control and lets them connect back to it over the internet later.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.