Security
All users should upgrade. These issues were found in an internal review and are not known to have been exploited.
- Fix buffer overflows and a format string issue in the handling of responses from the price, cloud and ZmartCharge servers. A wrong or manipulated server response could overwrite memory on the device. See GHSA-c3cq-vrqw-5mrf.
- Fix buffer overflows in the meter data decoder. A malformed HAN / M-Bus / P1 frame could make the decoder read or write outside its buffers. See GHSA-cpr8-fcjv-77v2.
- Fix web endpoints that skipped the password check, a device in setup mode that accepted unauthenticated requests from the whole network, and buffer overflows in the price modifier and realtime data handlers. See GHSA-23h5-68h6-h7m4.
- Fix MQTT
setconfigandfwupgradewith a version, which could change configuration and firmware even when "Allow destructive commands" was off, and stop malformed MQTT configuration messages from crashing the device. See GHSA-chfp-qr9w-2qp6.
Changes in behaviour
- MQTT
setconfigandfwupgradewith a version now require "Allow destructive commands" to be enabled in the MQTT configuration. Automations that use them stop working until it is turned on. - A device in setup mode only skips the password for clients connected to its own access point. Other clients on the network get a 401.
- The meter encryption and authentication keys are shown as
***in the configuration page,configuration.jsonand MQTTgetconfig, like passwords. - At most 16 price modifiers are kept. Extra ones are dropped on upgrade.
- A device set up as an access point requires a WPA2 password of at least 8 characters.
- The "obtain NTP server from DHCP" option is removed.
What's Changed
- Keep the configuration JSON generator off the ESP8266 stack by @gskjold in #1344
- Tell the user when a WiFi password is too long instead of failing silently by @gskjold in #1325
- Read the MQTT update method from "t" in setconfig by @gskjold in #1326
- Report NTP the same way in the header badge as in the Services tile by @gskjold in #1327
- Keep passwords, meter keys and tokens out of the debug log by @gskjold in #1328
- Ignore out-of-range days and hours in price modifiers by @gskjold in #1329
- Stop bar chart tooltips from blinking when hovering the value label by @gskjold in #1334
- Decode the 22-field Iskra AM550 frame from Elektro Celje by @gskjold in #1336
- Publish the tariff 1/2 energy counters in the Home Assistant format by @gskjold in #1337
- Bump http-proxy-middleware from 2.0.10 to 2.0.12 in /ui by @dependabot[bot] in #1343
- Remove the "obtain NTP server from DHCP" option by @gskjold in #1335
- Require a WPA2 password when the device is set up as an access point by @gskjold in #1338
- Mask the meter keys in the configuration JSON and the GUI by @gskjold in #1339
- Warn when MQTT uses SSL without a CA certificate by @gskjold in #1340
Full Changelog: v2.6.0...v2.6.1