Why it matters

Every exported activity, URL scheme and universal link is an entry point another app or a web page can call with values it chooses. An unverified link or an exported screen that performs a transfer hands that authority to anyone.

How to meet it

  • Export only the components other apps must reach, and protect them with permissions.
  • Prefer verified links (Android App Links with autoVerify, iOS universal links) to custom URL schemes.
  • Use explicit, immutable PendingIntents, and share single files with temporary URI grants rather than paths.
  • Validate every parameter that arrives through IPC as untrusted input.

MASTG tests in the local projects

The local projects run these OWASP MASTG v2.0.0 tests for MASVS-PLATFORM-1, as tests you can repeat on your own machine.

MASTG testPlatformProject
MASTG-TEST-0370: Missing Input Validation in Custom URL Scheme HandlersiOSKeep an iOS app's storage, links and web bridge in bounds · LinkTests
MASTG-TEST-0395: Missing Input Validation in Universal Link HandlersiOSKeep an iOS app's storage, links and web bridge in bounds · LinkTests
MASTG-TEST-0364: Exported And Unprotected Activities That Expose Sensitive FunctionalityAndroidRepair an Android app's links, components, network policy and storage · ComponentTests
MASTG-TEST-0393: Use of Unverified App LinksAndroidRepair an Android app's links, components, network policy and storage · ComponentTests
MASTG-TEST-0394: Missing Input Validation in Custom URL Scheme HandlersAndroidRepair an Android app's links, components, network policy and storage · LinkTests

Guides on this site

Practice

References

  1. MASVS-PLATFORM-1 (OWASP MASVS v2.1.0)
  2. MASVS-PLATFORM: Platform Interaction (OWASP MASVS v2.1.0)

List data from the publisher. A guide is listed as the main subject when the weakness or risk is what the guide is about, and as covering it when a dedicated section or worked example addresses it.

Control statements are quoted from OWASP MASVS v2.1.0, licensed CC BY-SA 4.0; the rest is this site's summary. MASTG tests are those the iOS and Android projects here run, with their titles from mas.owasp.org. License.