Weekly caseNovember 12, 2026Security

Published November 12, 2026 · Confidence: high · Complexity 6/10

Homey smart-home takeover: empty session accepted, connection trusted before verification, malformed message crash

A security researcher reported that Homey's local devkit connection check accepted an empty session as a valid match, bound an incoming connection to an app before verifying its session, and crashed when reading a malformed message. Chained together, those three weaknesses let an unauthenticated attacker on the same network, or via port forwarding from the internet, take control of a Homey and everything connected to it.

Investigation trace
Part I · Reported facts (Source extraction)

Facts, hypotheses, timeline steps, and evidence reconstructed directly from the public incident record.

01 / Observed failure

Problem statement

Homey's local devkit session validation let an unauthenticated attacker gain control of a Homey, including cameras, locks, doors, and app settings holding tokens and passwords, by combining an empty-session acceptance bug with premature connection trust and a crash-on-malformed-message flaw.

02 / Starting hypotheses

What investigators first believed

  • A session check that finds no session will fail closed and reject the connection.
  • Binding a connection to an app early is harmless because the session check runs afterwards anyway.
  • Malformed messages are an edge case that cannot help an attacker, since they only cause an error.
  • The cloud relay and Homey Cloud paths share the devkit session handling, so all paths were equally exposed.
03 / Investigation path

How the diagnosis unfolded

  1. 01

    On August 3, 2026, a security researcher reported the flaw privately through Homey's coordinated disclosure channel at [email protected].

    Homey had a private, well-formed report with time to fix before any public disclosure.

  2. 02

    On August 5-6, Homey confirmed the root cause and examined how the devkit session check handled apps that had not started yet.

    The first weakness was confirmed: an app with no session assigned produced a 'no session' state that the check accepted as a match.

  3. 03

    Investigators traced the connection flow and found the incoming connection was associated with a real app before the session was validated.

    The second weakness was confirmed: trust was established before verification, so the check ran against an already-bound connection.

  4. 04

    Investigators examined the message handler and found it read fields from incoming messages without first checking the message was well formed.

    The third weakness was confirmed: a deliberately broken message crashed the process, forcing a restart.

  5. 05

    The team chained the three findings: crash the process, wait for the restart window when apps have not started yet, then present an equally empty session.

    The chain turned an unauthenticated connection into full control of the Homey, explaining the critical severity.

  6. 06

    Homey built the fix and hardening, then ran it through alpha and beta releases, testing, and four release candidates before production.

    v13.4.1 shipped August 18 for Homey Pro and Homey Self-Hosted Server, and owners still on older versions were emailed August 20.

  7. 07

    Homey searched its logs and telemetry for the fingerprint this attack would leave behind, and measured update adoption.

    No trace of exploitation was found, and by October 20, 98% of affected Homeys seen online in the last 30 days were on v13.4.1 or newer.

04 / Diagnostic evidence

What narrowed the fault domain

external observation

The researcher's private coordinated-disclosure report on August 3 describing the devkit session validation flaw.

The report gave Homey a reproducible flaw and a disclosure window before any public write-up.

protocol native evidence

The session check's handling of an app with no session assigned, which it accepted as if it were a real match.

An attacker presenting an equally empty session passed the check without any credential.

protocol native evidence · cont.

The connection-to-app binding happening before session validation in the devkit flow.

Verification ran after trust was already granted, defeating the purpose of the check.

protocol native evidence · cont.

The message handler reading fields from an incoming message before validating its shape.

A deliberately broken message crashed the process, creating the restart window the empty-session bug needed.

time correlated telemetry

Log and telemetry searches for the attack's fingerprint, plus adoption data showing 98% of affected Homeys seen online in the last 30 days on v13.4.1 or newer by October 20.

No evidence of exploitation was found, and automatic updates protected the large majority within days.

external observation

Reachability analysis: always reachable on the local network, reachable from the internet only with port forwarding, while the cloud relay and Homey Cloud were not exploitation paths.

The blast radius was bounded by network setup, not by the vulnerability itself.

Dead ends

Assuming the cloud relay or Homey Cloud shared the flaw; they handle devkit sessions differently and were not affected.

Treating any one of the three weaknesses as the whole bug; alone, the empty-session check needed the restart window the crash provided.

Counting offline Homeys in the adoption figure would have distorted it downward, since a switched-off device cannot be attacked or updated.

05 / Direction changes

Key turning points

  1. Seeing that a crash forces a restart and that apps have not started yet during a restart, which connected the malformed-message crash to the empty-session acceptance.
  2. Realizing the connection was bound to an app before verification, which meant the session check was guarding a door that was already open.
  3. Recognizing that a missing credential must be treated as hostile, not as a default that also happens to be a legal input.
06 / Mechanism

Root cause

Three defects in Homey's local devkit session handling chained together: an absent session was accepted as a valid match, the connection was associated with an app before the session was verified, and malformed messages were read before validation so they could crash the process and reopen the not-yet-started window.

07 / Restoration

Resolution

v13.4.1, released August 18, 2026, strictly defines a valid session and rejects empty or missing sessions, associates a connection with an app only after session validation, rejects malformed messages instead of crashing, and adds rate limiting plus tests sending malformed and empty input through the session and message checks.

Lessons from the response

  • Treat a missing credential as hostile, not as a default: define what a valid credential looks like and reject null and empty values.
  • Establish state only after authentication: never bind a connection to an identity before verifying that identity.
  • Validate the shape of input before reading its fields: reading attacker-controlled messages unchecked can crash the process.
  • Check whether individually minor bugs chain: a crash bug plus an empty-default bug can combine into full authentication bypass.
  • Automatic updates are a security control: most owners were protected within days without doing anything, while emailed owners were those who had disabled auto-update.
Part II · Analyst synthesis (Casebook commentary)

Reusable diagnostic principles, high-value signals, and anti-patterns synthesized from the reported facts above.

08 / Reusable reasoning · Analyst synthesis

Troubleshooting principles

  1. 01

    A missing credential is an attack input, not a neutral default.

  2. 02

    Authentication must complete before any state is granted on its basis.

  3. 03

    Validate shape before content, on every message, not just the expected ones.

  4. 04

    Small bugs chain: evaluate a finding by what it enables next, not only by what it does alone.

Effective techniques

  • Decomposing one critical finding into three separate weaknesses and testing how they chain together.
  • Using the restart state (apps not yet started) as the link between the crash bug and the session bug.
  • Bounding the blast radius by network path: local network, port forwarding, cloud relay, and Homey Cloud separately.
  • Searching logs for the attack's fingerprint before concluding there was no exploitation.

High-value evidence sources

  • The coordinated-disclosure report with a clear, reproducible description of the flaw.
  • The session-check code path for apps with no session assigned.
  • The connection-binding order in the devkit flow.
  • Log and telemetry searches for the attack fingerprint plus adoption telemetry.

Common diagnostic traps

  • Letting a default or empty value also be a legal input to an authentication check.
  • Binding a connection to an identity before that identity is verified.
  • Reading message fields before validating the message's shape.
  • Judging each bug in isolation instead of asking how they combine.

Anti-patterns observed

  • Accepting null or empty as a valid authentication result.
  • Trust-then-verify ordering in connection handling.
  • Reading before validating on attacker-controlled input.
6/10
Diagnostic complexity

The individual defects are each easy to state, but the case's difficulty lies in seeing the chain: the crash creates the restart state, the restart state activates the empty-session bug, and premature binding removes the last barrier. The diagnostic work is compositional, not deep.

09 / Direct answers

Questions answered

What happened in the Homey smart-home takeover: empty session accepted, connection trusted before verification, malformed message crash incident?

Homey's local devkit session validation let an unauthenticated attacker gain control of a Homey, including cameras, locks, doors, and app settings holding tokens and passwords, by combining an empty-session acceptance bug with premature connection trust and a crash-on-malformed-message flaw.

What was the root cause?

Three defects in Homey's local devkit session handling chained together: an absent session was accepted as a valid match, the connection was associated with an app before the session was verified, and malformed messages were read before validation so they could crash the process and reopen the not-yet-started window.

How was the root cause discovered?

Seeing that a crash forces a restart and that apps have not started yet during a restart, which connected the malformed-message crash to the empty-session acceptance. Realizing the connection was bound to an app before verification, which meant the session check was guarding a door that was already open. Recognizing that a missing credential must be treated as hostile, not as a default that also happens to be a legal input.

What evidence mattered most?

The report gave Homey a reproducible flaw and a disclosure window before any public write-up. An attacker presenting an equally empty session passed the check without any credential. Verification ran after trust was already granted, defeating the purpose of the check.

Which assumptions were wrong?

A missing session fails closed. Early connection binding is harmless because verification follows. A crash on malformed input is only a robustness issue, not a security primitive. All Homey connection paths shared the same session handling.

What delayed recovery?

The approved record describes restoration as follows: v13.4.1, released August 18, 2026, strictly defines a valid session and rejects empty or missing sessions, associates a connection with an app only after session validation, rejects malformed messages instead of crashing, and adds rate limiting plus tests sending malformed and empty input through the session and message checks. It does not separately quantify a recovery delay unless stated in that account.

What should operators learn from this case?

Treat a missing credential as hostile, not as a default: define what a valid credential looks like and reject null and empty values. Establish state only after authentication: never bind a connection to an identity before verifying that identity. Validate the shape of input before reading its fields: reading attacker-controlled messages unchecked can crash the process.

10 / Provenance

Original incident source

Public postmortemSecurity postmortem – Behind the Magic →

Root Cause Casebook separates reported facts from analyst synthesis. This public record was explicitly approved before export.