Overview

This test is the dynamic counterpart to MASTG-TEST-0250.

In this case you can take two approaches when hooking or tracing the relevant APIs:

Steps

  1. Use MASTG-TECH-0005 to install the app.
  2. Use MASTG-TECH-0043 to hook the relevant API calls.
  3. Exercise the app extensively to trigger as many flows as possible and enter sensitive data wherever you can.

Observation

The output should contain a list of WebView setting calls, including the argument values and backtraces of each call.

Evaluation

The test case fails if all the following applies:

Further Validation Required:

Using the backtraces from the hook output, inspect the code locations using MASTG-TECH-0023:

For the identified WebViews, determine whether attacker-controlled JavaScript could execute in a context where it can access content providers that handle sensitive data. Also use the list of content providers obtained in MASTG-TEST-0250 to verify if they handle sensitive data.

Note

AllowContentAccess being true does not represent a security vulnerability by itself, but it can be used in combination with other vulnerabilities to escalate the impact of an attack.

Pedidos ligados