Overview

If the app exports an Android content provider without enforcing access restrictions, external callers may open private files through content:// URIs. This test checks whether exported providers expose sensitive stored data to callers that don't hold the required permissions.

Steps

  1. Use MASTG-TECH-0013 to reverse engineer the app.
  2. Use MASTG-TECH-0159 to identify exported file-based content providers and inspect their path configurations.
  3. Use MASTG-TECH-0014 to look for the relevant APIs.

Observation

The output should contain a list of exported file-based content providers with their path configurations, and a list of code locations where provider-backed file access occurs.

Evaluation

The test case fails if the app exports a FileProvider and if the provider's path configuration allows access outside the intended shared directory (for example, via <root-path>, path="/", path=".", or path="").

Further Validation Required:

Inspect each reported code location using MASTG-TECH-0023 to determine whether the exposure is security-relevant:

Συνδεδεμένα ζητήματα