Overview

This test dynamically analyzes the runtime behavior of WebViewClient URL interception methods to understand how the app handles URL loading in WebViews. By hooking relevant methods at runtime, you can observe:

This complements static analysis (MASTG-TEST-0398) by providing actual runtime evidence of URL handling behavior.

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:

Evaluation

The test case fails if the runtime analysis shows that a URL is loaded or a resource request is served without the app validating it against trusted content.

Further Validation Required:

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

Note that intercepting URL loading is not inherently insecure. The test fails only when the implementation does not properly restrict navigation to trusted content.