Skip to content

Arbitrary URL load in Android WebView in `MyActivity.kt`

High
frenck published GHSA-jvpm-q3hq-86rg Oct 19, 2023

Package

Home Assistant Companion for Android

Affected versions

< 2023.9.2

Patched versions

2023.9.2

Description

The GitHub Security Lab team has identified a potential security vulnerability in Home Assistant Companion for Android.

Summary

The Home Assistant Companion for Android app up to version 2023.8.2 is vulnerable to arbitrary URL loading in a WebView. This enables all sorts of attacks, including arbitrary JavaScript execution, limited native code execution, and credential theft.

Credit

This issue was discovered and reported by the GitHub CodeQL team member @atorralba (Tony Torralba).

GitHub Security Lab (GHSL) Vulnerability Report: GHSL-2023-142

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H

CVE ID

CVE-2023-41898

Weaknesses

No CWEs

Credits