Overview

This test checks if the app enforces biometric authentication (MASTG-KNOW-0001) without requiring explicit user action. When using android.hardware.biometrics.BiometricPrompt API (or its Jetpack counterpart androidx.biometric.BiometricPrompt that backward compatibility to API level 23), the setConfirmationRequired()) method in BiometricPrompt.Builder controls whether the user must explicitly confirm their authentication, which is enforced by default.

Steps

  1. Use MASTG-TECH-0013 to reverse engineer the app.
  2. Use MASTG-TECH-0014 to look for the relevant APIs.

Observation

The output should include a list of locations where the relevant APIs are used.

Evaluation

The test case fails if the app sets setConfirmationRequired() to false for sensitive operations that require explicit user authorization.

Note

Using setConfirmationRequired(false) is not inherently a vulnerability. It may be appropriate for low-risk operations, but for sensitive operations like payments or data access, the app should use setConfirmationRequired(true) or rely on the default behavior to ensure the user explicitly confirms the authentication.

Powiązane zgłoszenia