{"id":"CVE-2023-41893","published":"2023-10-19T23:27:09Z","modified":"2024-09-12T15:02:45Z","title":"Account takeover via auth_callback login in Home Assistant Core","vendor":"home-assistant","product":"core","tier":"tail","description":{"text":"Home assistant is an open source home automation. The audit team’s analyses confirmed that the `redirect_uri` and `client_id` are alterable when logging in. Consequently, the code parameter utilized to fetch the `access_token` post-authentication will be sent to the URL specified in the aforementioned parameters. Since an arbitrary URL is permitted and `homeassistant.local` represents the preferred, default domain likely used and trusted by many users, an attacker could leverage this weakness to manipulate a user and retrieve account access. Notably, this attack strategy is plausible if the victim has exposed their Home Assistant to the Internet, since after acquiring the victim’s `access_token` the adversary would need to utilize it directly towards the instance to achieve any pertinent malicious actions. To achieve this compromise attempt, the attacker must send a link with a `redirect_uri` that they control to the victim’s own Home Assistant instance. In the eventuality the victim authenticates via said link, the attacker would obtain code sent to the specified URL in `redirect_uri`, which can then be leveraged to fetch an `access_token`. Pertinently, an attacker could increase the efficacy of this strategy by registering a near identical domain to `homeassistant.local`, which at first glance may appear legitimate and thereby obfuscate any malicious intentions. This issue has been addressed in version 2023.9.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00452,"percentile":0.40111,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/home-assistant/core/security/advisories/GHSA-qhhj-7hrc-gqj5","tags":["x_refsource_CONFIRM"]},{"url":"https://www.home-assistant.io/blog/2023/10/19/security-audits-of-home-assistant/","tags":["x_refsource_MISC"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":8.02},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"home-assistant","affectedVersions":[{"vendor":"home-assistant","product":"core","versions":["< 2023.9.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-12T15:02:34.822643Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"homeassistant","vulnerableRanges":["<2023.9.0"],"patched":["2023.9.0"],"from":["GHSA-qhhj-7hrc-gqj5","PYSEC-2023-214"],"provenance":"source"}],"summary":{"text":"The flaw lies in the auth_callback login flow of Home Assistant Core, where the redirect_uri and client_id parameters can be altered so that the code used to obtain an access_token is sent to an attacker-chosen URL. An attacker who can get a victim to open a crafted login link on their own Home Assistant instance, with network access to that instance and user interaction required, can capture the code and use it to obtain the victim's access_token and take over the account, which is most practical where the instance is exposed to the Internet.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:01:55Z"},"euvd":{"id":"EUVD-2023-0093","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2018-21019","published":"2019-09-23","fixed":"0.67.0","kev":false},{"cve":"CVE-2023-41893","published":"2023-10-19","fixed":"2023.9.0","kev":false},{"cve":"CVE-2023-50715","published":"2023-12-15","fixed":"2023.12.3","kev":false,"link":{"from":"CVE-2023-41893","to":"CVE-2023-50715","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:homeassistant","fromFixed":"2023.9.0","toFixed":"2023.12.3","daysApart":57}]}},{"cve":"CVE-2025-25305","published":"2025-02-18","fixed":"2024.1.6","kev":false},{"cve":"CVE-2025-65713","published":"2025-12-23","fixed":"2025.8.0","kev":false}],"package":"PyPI:homeassistant"}}