Repository navigation
Replies: 2 comments 1 reply
|
Hmmm... I am missing one security issue being addressed - the unauthenticated telnet/console access. I have raised this in early 2025 (#2533) and it was dismissed as being harmless... |
1 reply
|
v3.10.0 has the security fixes. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
EMS-ESP sits between a home network and a boiler or heat pump. That makes it a small piece of software with real-world consequences, and it deserves a security model that reflects this.
Over the coming releases we want to modernise how EMS-ESP handles authentication, defaults and firmware updates. This note explains the direction and the reasoning.
Why now
Three things have changed since the current security model was designed.
Home networks are no longer a safe place. The original assumption across most of this category of software - including ESPHome and Tasmota - is that everything on the LAN can be trusted. In practice, a household network now holds dozens of devices of varying quality, plus browsers that visit arbitrary websites. "On the LAN" is no longer a useful proxy for "authorised".
The consequences are physical. For most home automation firmware, the worst case is a light switching on unexpectedly. Here, writing the wrong parameter to a heating appliance can waste energy, shorten the life of equipment, or leave a house cold. That argues for protections that hold even when something else has gone wrong.
Regulation is catching up. European rules for connected radio equipment have applied since August 2025, and the Cyber Resilience Act phases in from now through the end of 2027. These set expectations around unique credentials, secure updates and a vulnerability disclosure process. They mostly apply to the companies that sell hardware, but the firmware has to support them.
The approach
We looked at how comparable projects on the same chips have solved this, and we are borrowing the parts that fit.
Per-device secrets rather than shared ones. ESPHome gives each device its own encryption key and its own update password. We are moving to the same principle: anything used for authentication should be unique to a device and generated on that device, so that knowledge about one installation says nothing about any other.
Credentials that never need to travel. Shelly's ESP32 firmware uses a challenge-response scheme in which the password itself is never sent over the network and the device stores only a hash of it. That gives most of the benefit of encrypted transport without the cost of running TLS on a small chip. We intend to head in that direction for the web interface and API.
Revocable, scoped access. API access should be a set of named keys you can create and revoke individually, with read-only as an option. Most integrations - dashboards, Home Assistant sensors - only ever need to read.
Safe defaults. A fresh device should not be usable until its credentials have been set, and features that are useful for debugging should not be switched on out of the box.
Limits that apply regardless of authentication. Beyond access control, the firmware itself should refuse to do harmful things: sensible bounds on writable values, limits on how often a command can be repeated, a global read-only mode, and a log of what was changed and by whom. This is deliberately independent of the authentication work, because it keeps holding if the authentication is ever bypassed.
Verified firmware updates. An update should be checked for a valid signature before it is installed. Our aim is to do this in a way that does not lock devices down permanently, so that self-built firmware remains possible and a device can always be recovered.
Transport encryption, in the right order. Running HTTPS on a plain ESP32 is expensive in memory and, with self-signed certificates, produces browser warnings that teach people to click through them. Neither ESPHome nor Tasmota does it, and we are in no rush either. Encrypted MQTT and better authentication give more real protection per unit of effort, and remote access is best handled by a VPN or a reverse proxy rather than by exposing the device.
What this means for users
Most of this will be invisible. The changes you are likely to notice:
We will also publish a short guide on running a gateway safely - network placement, remote access and passwords - along with a security policy and a way to report issues privately.
Feedback is welcome. If you have run into something that concerns you, please report it privately rather than in a public issue, and we will handle it from there.
All reactions