安全研究人员the-knell于2026年11月8日披露了Home Assistant核心组件(版本home-assistant/core 2026.11.0,前端版本20261028.4,hass-nabucasa版本2.8.1)中存在的身份验证设计缺陷。1研究发现,所有用户的刷新令牌密钥和JWT签名密钥均以明文形式存储在config/.storage/auth文件中,且系统仅通过直接字符串比较进行验证。1此外,长寿命令牌和系统刷新令牌在创建时未设置过期时间(即永不过期),而官方文档推荐的脚本生成的长期访问令牌有效期长达十年。1
更为关键的是,无论是通过自助服务、管理员操作、Supervisor重置还是命令行工具修改密码,现有活跃令牌均不会被撤销。1自动备份的密码以明文存储在.storage/backup目录中,且备份文件包含.auth配置文件;攻击者一旦获取配置目录或备份文件(如通过支持团队共享或同步错误),即可利用更改前的旧令牌获得持久化的未授权访问权限,恢复备份甚至会复活旧令牌。1鉴于Home Assistant被部署在约两百万个家庭中并控制门锁、警报、车库等关键设施,尽管利用该漏洞需先读取本地文件或备份而非直接远程突破,其潜在安全风险依然显著。1
Security researcher the-knell disclosed a critical authentication flaw in Home Assistant version 2026.11.0 that stores sensitive token secrets in cleartext within configuration files 1. The vulnerability affects approximately two million households utilizing the platform to control security-critical infrastructure such as door locks, alarms, and garages 1. Although exploitation requires an attacker to gain read access to the configuration directory or backup files—such as through support team sharing or sync errors—it does not involve remote network breakthroughs without authentication 1.
The core issue lies in how the system handles credential storage and lifecycle management for its identity verification protocols 1. In the affected release, which includes frontend 20261028.4 and hass-nabucasa 2.8.1, refresh token keys and JWT signing keys are stored in plain text in the config/.storage/auth file, with validation performed via direct string comparison 1. Furthermore, long-lived and system refresh tokens are created with no expiration date (expire_at = None), while documentation recommends scripts using long-term access tokens with a validity period of ten years 1. Crucially, changing passwords through any of the four available entry points—self-service, admin reset, Supervisor reset, or command line—does not revoke existing active tokens 1. This design allows attackers who have accessed the configuration or backups to maintain persistent unauthorized access even after a user updates their password, as automatic backup passwords are also stored in cleartext in .storage/backup and restoring these backups revives old tokens 1. The disclosure was sent via email on November 8, 2026, with the final research paper signed on November 4, 2026 1.
评论
还没有评论,欢迎留下第一条。