CVE-2021-43849: DoS vulnerability
Summary:
Sending a specially crafted intent with an invalid/empty extras de.niklasmerz.cordova.biometric.BiometricActivity can cause the app to crash. sending the intent repeatedly can prevent the app using this plugin from working, resulting in a denial of service (DoS) condition.
Impact
A 3rd party app/remote attacker can exploit this vulnerability by sending a malicious intent to the target device, causing the app using this plugin from working to crash or become unresponsive, resulting in a denial of service (DoS) condition.
Mitigation
Version 5.0.1 of the cordova-plugin-fingerprint-aio doesn't export the activity anymore and is no longer vulnerable.
If you want to fix older versions change the attribute android:exported of this code snippet in plugin.xml to false:
xml <config-file target="AndroidManifest.xml" parent="application"> <activity android:name="de.niklasmerz.cordova.biometric.BiometricActivity" android:theme="@style/TransparentTheme" android:exported="false"/> </config-file>
Patches
Please upgrade to version 5.0.1 as soon as possible.
Please check out the release on GitHub.
For more information If you have any questions or comments about this advisory please go to the discussion on GitHub.
Other sources
cordova-plugin-fingerprint-aio is a plugin provides a single and simple interface for accessing fingerprint APIs on both Android 6+ and iOS. In versions prior to 5.0.1 The exported activity de.niklasmerz.cordova.biometric.BiometricActivity can cause the app to crash. This vulnerability occurred because the activity didn't handle the case where it is requested with invalid or empty data which results in a crash. Any third party app can constantly call this activity with no permission. A 3rd party app/attacker using event listener can continually stop the app from working and make the victim unable to open it. Version 5.0.1 of the cordova-plugin-fingerprint-aio doesn't export the activity anymore and is no longer vulnerable. If you want to fix older versions change the attribute android:exported in plugin.xml to false. Please upgrade to version 5.0.1 as soon as possible.
— MITRE
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2021-43849?
CVE-2021-43849 is classified as a denial of service vulnerability.
How do I fix CVE-2021-43849?
To fix CVE-2021-43849, update the cordova-plugin-fingerprint-aio to version 5.0.1 or later.
What causes the denial of service in CVE-2021-43849?
The denial of service in CVE-2021-43849 is caused by sending a specially crafted intent with invalid or empty extras that crashes the app.
Which software versions are affected by CVE-2021-43849?
CVE-2021-43849 affects versions of cordova-plugin-fingerprint-aio prior to 5.0.1.
Can CVE-2021-43849 affect both Android and iOS systems?
No, CVE-2021-43849 specifically affects only the cordova-plugin-fingerprint-aio on Android systems.