CVE-2023-41896
Last modified
CVE-2023-41896 is a critical-severity vulnerability rated 9/10 on the CVSS scale. Home assistant is an open source home automation. Whilst auditing the frontend code to identify hidden parameters, Cure53 detected `auth_callback=1`, which is leveraged by the WebSocket authentication logic in tandem with the `state` parameter. EPSS estimates a 0.27% chance of exploitation in the next 30 days.
Description
Home assistant is an open source home automation. Whilst auditing the frontend code to identify hidden parameters, Cure53 detected `auth_callback=1`, which is leveraged by the WebSocket authentication logic in tandem with the `state` parameter. The state parameter contains the `hassUrl`, which is subsequently utilized to establish a WebSocket connection. This behavior permits an attacker to create a malicious Home Assistant link with a modified state parameter that forces the frontend to connect to an alternative WebSocket backend. Henceforth, the attacker can spoof any WebSocket responses and trigger cross site scripting (XSS). Since the XSS is executed on the actual Home Assistant frontend domain, it can connect to the real Home Assistant backend, which essentially represents a comprehensive takeover scenario. Permitting the site to be iframed by other origins, as discussed in GHSA-935v-rmg9-44mw, renders this exploit substantially covert since a malicious website can obfuscate the compromise strategy in the background. However, even without this, the attacker can still send the `auth_callback` link directly to the victim user. To mitigate this issue, Cure53 advises modifying the WebSocket code’s authentication flow. An optimal implementation in this regard would not trust the `hassUrl` passed in by a GET parameter. Cure53 must stipulate the significant time required of the Cure53 consultants to identify an XSS vector, despite holding full control over the WebSocket responses. In many areas, data from the WebSocket was properly sanitized, which hinders post-exploitation. The audit team eventually detected the `js_url` for custom panels, though generally, the frontend exhibited reasonable security hardening. This issue has been addressed in Home Assistant Core version 2023.8.0 and in the npm package home-assistant-js-websocket in version 8.2.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Home-Assistant | Home-Assistant | < 2023.8.0 |
| Home-Assistant | Home-Assistant-Js-Websocket | < 8.2.0 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-41896?
How severe is CVE-2023-41896?
How do I fix CVE-2023-41896?
How Strix Helps
- Same Subject, Wrong User: A Cross-Issuer Account Takeover in n8nStrix found an identity-binding bug in n8n's token-exchange flow enabling account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-41890Sustainsys.Saml2 library adds SAML2P support to ASP.NET web …7.5
- CVE-2023-41891FlyteAdmin is the control plane for Flyte responsible for ma…8.8
- CVE-2023-41892Craft CMS is a platform for creating digital experiences. Th…9.8
- CVE-2023-41893Home assistant is an open source home automation. The audit …5.4
- CVE-2023-41894Home assistant is an open source home automation. The assess…5.3
- CVE-2023-41895Home assistant is an open source home automation. The Home A…9.6
- CVE-2023-41897Home assistant is an open source home automation. Home Assis…9.6
- CVE-2023-41898Home assistant is an open source home automation. The Home A…7.8
- CVE-2023-41899Home assistant is an open source home automation. In affecte…7.2
- CVE-2023-4190Insufficient Session Expiration in GitHub repository admidio…6.5
- CVE-2023-41900Jetty is a Java based web server and servlet engine. Version…4.3
- CVE-2023-41901Rejected reason: Further research determined the issue is no…
Are you affected by CVE-2023-41896?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
