{"url":"http://public2.vulnerablecode.io/api/packages/960697?format=json","purl":"pkg:npm/%40capgo/capacitor-native-biometric@7.4.1","type":"npm","namespace":"@capgo","name":"capacitor-native-biometric","version":"7.4.1","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"8.3.6","latest_non_vulnerable_version":"8.3.6","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/50100?format=json","vulnerability_id":"VCID-6dhj-3hvr-j7gt","summary":"cap-go/capacitor-native-biometric Authentication Bypass\nThe [cap-go/capacitor-native-biometric](https://github.com/Cap-go/capacitor-native-biometric) library was found to be subject to an authentication bypass as the current implementation of the `onAuthenticationSucceeded()` does not appear to handle a `CryptoObject`[^HackTricks1] [^SecuringBiometricAuthentication] as seen in the following code block starting from [line 88 in AuthActivity.java](https://github.com/Cap-go/capacitor-native-biometric/blob/main/android/src/main/java/ee/forgr/biometric/AuthActivity.java#L88):\n\n```java\n@Override\npublic void onAuthenticationSucceeded(\n@NonNull BiometricPrompt.AuthenticationResult result\n) {\nsuper.onAuthenticationSucceeded(result);\nfinishActivity(\"success\");\n}\n```\n\nAs the current implementation only checks whether `onAuthenticationSucceeded()` was called and does not handle a `CryptoObject` the biometric authentication can be bypassed by hooking the `onAuthenticationSucceeded()` function.","references":[{"reference_url":"https://github.com/Cap-go/capacitor-native-biometric/commit/1254602e942f8216e6258f646f0866d8e69c48a5","reference_id":"","reference_type":"","scores":[{"value":"5.2","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/Cap-go/capacitor-native-biometric/commit/1254602e942f8216e6258f646f0866d8e69c48a5"},{"reference_url":"https://github.com/Cap-go/capgo","reference_id":"","reference_type":"","scores":[{"value":"5.2","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/Cap-go/capgo"},{"reference_url":"https://github.com/advisories/GHSA-vx5f-vmr6-32wf","reference_id":"GHSA-vx5f-vmr6-32wf","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-vx5f-vmr6-32wf"},{"reference_url":"https://github.com/Cap-go/capgo/security/advisories/GHSA-vx5f-vmr6-32wf","reference_id":"GHSA-vx5f-vmr6-32wf","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""},{"value":"5.2","scoring_system":"cvssv4","scoring_elements":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/Cap-go/capgo/security/advisories/GHSA-vx5f-vmr6-32wf"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/73982?format=json","purl":"pkg:npm/%40capgo/capacitor-native-biometric@8.3.6","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540capgo/capacitor-native-biometric@8.3.6"}],"aliases":["GHSA-vx5f-vmr6-32wf"],"risk_score":3.1,"exploitability":"0.5","weighted_severity":"6.2","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-6dhj-3hvr-j7gt"}],"fixing_vulnerabilities":[],"risk_score":"3.1","resource_url":"http://public2.vulnerablecode.io/packages/pkg:npm/%2540capgo/capacitor-native-biometric@7.4.1"}