Overview

This test checks for references to PendingIntent creation APIs to identify potentially insecure implementations. A PendingIntent wraps an Intent that will be executed later on behalf of the app's identity and permissions, making it critical to configure them securely.

PendingIntent objects can be obtained through these API methods:

The primary security concerns when using PendingIntent are:

For more details on PendingIntent security, refer to MASTG-KNOW-0024 and the Android security documentation on pending intents.

Steps

  1. Run a static analysis tool (MASTG-TECH-0014) to identify all usages of:
  1. For each identified usage, check:

Observation

The output should contain a list of locations where PendingIntent creation APIs are used, along with the flags passed to the API (if identifiable) and whether the base intent appears to be explicit or implicit.

Evaluation

The test case fails if any of the following conditions are met:

Gekoppelde issues