CVE-2024-40657: Account preference allows secondary user to manage app restriction on system user

Summary

01/09/2024
Yes i
High
Not published

CVE-2024-40657: In addPreferencesForType of AccountTypePreferenceLoader.java, there is a possible way to disable apps for other users due to a confused deputy. Affects platform/packages/apps/Settings across 5 version ranges.

>= 12:0, < 12:2024-09-01 >= 12L:0, < 12L:2024-09-01 >= 13:0, < 13:2024-09-01 >= 14:0, < 14:2024-09-01 >= 15-next:0, < 15-next:2024-09-01

Fixed in 15-next:2024-09-01. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The package under scrutiny is platform/packages/apps/Settings in the Android ecosystem. This package is responsible for managing various settings and preferences on an Android device. It provides a user interface for users to configure system settings, including account preferences. The AccountTypePreferenceLoader.java file within this package handles the loading and management of account preferences. These preferences allow users to customize app restrictions for different types of accounts on the device.

Vulnerability Detail

The vulnerability exists in the addPreferencesForType function of AccountTypePreferenceLoader.java. Due to a confused deputy issue, a secondary user can manipulate app restrictions for the system user. This can lead to a local escalation of privilege without requiring additional execution privileges. Exploitation of this vulnerability does not require user interaction. The issue arises from a lack of proper validation and authorization checks, allowing unauthorized users to modify app restrictions for the system user.

How To Fix

Minimum fixed version

15-next:2024-09-01

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

No workaround has been provided for this vulnerability.

Conclusion

In conclusion, the platform/packages/apps/Settings package in the Android ecosystem is vulnerable to a local escalation of privilege. The addPreferencesForType function in AccountTypePreferenceLoader.java allows a secondary user to manipulate app restrictions for the system user. This vulnerability can be mitigated by applying the provided fix from the Android Open Source Project.

See every vulnerability recorded for platform/packages/apps/Settings →

Share this vulnerability

FAQ

The impact of this vulnerability is a local escalation of privilege, allowing a secondary user to manipulate app restrictions for the system user.

No, exploitation of this vulnerability does not require user interaction.

The root cause of this vulnerability is a lack of proper validation and authorization checks in the addPreferencesForType function of AccountTypePreferenceLoader.java.

There are no known instances of this vulnerability being exploited at the time of this report.

Yes, a fix has been provided by the Android Open Source Project. It is recommended to apply the fix to mitigate the vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for platform/packages/apps/Settings.

How To Fix

Minimum fixed version

15-next:2024-09-01

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback