CVE-2021-39702: Set Credential Manager App without User Consent in platform/packages/apps/Settings

Summary

01/03/2022
Yes i
High
Not published

CVE-2021-39702: In onCreate of RequestManageCredentials.java, there is a possible way for a third party app to install certificates without user approval due to a tapjacking/overlay attack. Affects platform/packages/apps/Settings across 2 version ranges.

>= 12:0, < 12:2022-03-01 >= 12L:0, < 12L:2022-03-01

Fixed in 12:2022-03-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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The platform/packages/apps/Settings package is a part of the Android ecosystem and is responsible for managing various system settings on Android devices. It provides a user interface for users to configure device settings, including network, display, sound, and security settings. This package is an integral part of the Android operating system and is present on all Android devices. However, a vulnerability has been identified in this package that allows a third-party app to install certificates without user approval.

Vulnerability Detail

The vulnerability, identified as CVE-2021-39702, exists in the RequestManageCredentials.java file of the platform/packages/apps/Settings package. In the onCreate method of this file, there is a potential vulnerability that can be exploited through a tapjacking/overlay attack. This attack allows a malicious app to overlay its own user interface on top of the Settings app, tricking the user into granting permission to install certificates without their knowledge or consent. This can lead to a local escalation of privilege, where the malicious app gains elevated privileges on the device. Exploiting this vulnerability requires user interaction.

How To Fix

Minimum fixed version

12:2022-03-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

There is no specific workaround mentioned for this vulnerability. However, users can protect themselves by being cautious while granting permissions to apps and avoiding installing apps from untrusted sources. Additionally, keeping the Android operating system and all installed apps up to date can help mitigate the risk of exploitation.

Conclusion

The vulnerability in the platform/packages/apps/Settings package allows a third-party app to install certificates without user approval, leading to a local escalation of privilege. To mitigate this vulnerability, it is crucial to update the package to the latest version available. Additionally, users should exercise caution while granting permissions to apps and avoid installing apps from untrusted sources. Regularly updating the Android operating system and all installed apps is also recommended. For further support on vulnerability remediation, you can reach out to DevNack.com.

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

Share this vulnerability

FAQ

This vulnerability allows a malicious app to install certificates without user approval, potentially leading to a local escalation of privilege. The malicious app can gain elevated privileges on the device, which can be used for various malicious activities.

You can use the Vulert Playground at Vulert Scanner to check if your device is affected by this vulnerability. Simply enter your application's gradle.lockfile and the playground will analyze it for any open-source vulnerabilities, including this one.

There is no specific evidence mentioned in the vulnerability details. However, it is always recommended to stay updated with the latest security patches and follow best practices to minimize the risk of exploitation.

No, this vulnerability requires user interaction for exploitation. The user needs to grant permission to the malicious app for installing certificates.

If you suspect that your device has been compromised, it is recommended to perform a factory reset to remove any potentially malicious apps or certificates. Additionally, consider changing passwords for sensitive accounts and enable two-factor authentication for added security.

Related vulnerabilities

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

How To Fix

Minimum fixed version

12:2022-03-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