Skip to content
Info disclosure Write-up Intermediate

NotSoSmartConfig: broadcasting WiFi credentials Over-The-Air

The SmartConfig protocol used by ESP32 IoT devices broadcasts WiFi credentials (network name and password) unencrypted over the air during device activation. An attacker within WiFi range can passively capture the traffic and recover the credentials.

shielder.it

Published on shielder.it

During one of our latest IoT Penetration Tests we tested a device based on the ESP32 SoC by EspressIF. While assessing the activation procedure we faced for the first time a beautiful yet dangerous protocol: SmartConfig.

The author, on shielder.it

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

The protocol encodes sensitive WiFi credentials in packet length fields without encryption, and the official app does not support encryption.

Impact

An attacker within WiFi range could passively capture the SmartConfig traffic and recover the WiFi network name and password, leading to unauthorised access to the network.

What the attacker needed

Attacker within WiFi range; device in SmartConfig activation mode; WiFi card in monitor mode

The fix

A more secure way to implement the activation procedure for ESP devices would be the SoftAP WiFi provisioning.

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.

When you set up a smart device, it often needs your WiFi password. The SmartConfig method sends that password through the air in a way that anyone nearby with a WiFi receiver can listen in and read it. This means a neighbour or someone in the same building could steal your WiFi password just by listening.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.