MASWE-0071: WebViews Loading Content from Untrusted Sources
Content in BETA
This content is in beta and still under active development, so it is subject to change any time (e.g. structure, IDs, content, URLs, etc.).
Draft Weakness
This weakness hasn't been created yet and it's in draft. But you can check its status or start working on it yourself. If the issue has not yet been assigned, you can request to be assigned to it and submit a PR with the new content for that weakness by following our guidelines.
Check our GitHub Issues for MASWE-0071
Initial Description or Hints¶
WebView objects shouldn't load URLs from untrusted sources. Also, your app shouldn't let users navigate to sites that are outside of your control. Whenever possible, use an allowlist to restrict the content loaded by your app's WebView objects e.g. via WebViewClient.shouldOverrideUrlLoading
Relevant Topics¶
- not restricting navigation
- not using SafeBrowsing
- loading URL from untrusted sources e.g. intents or deep links
MASTG v1 Coverage¶
No MASTG v1 tests are related to this weakness.