Skip to content
Pwnversity
MOB-DEEPLINKSadvanced · 6 min · upd. 2026-10

Deeplinks and IPC

CWE-927

Mobile apps aren’t islands: they communicate with other apps and with the system through IPC (Inter-Process Communication) and deeplinks (links that open the app on a specific screen). If those entry points don’t validate who invokes them or the input they receive, they become an attack surface: another app —or a web page— can invoke internal functions, pass malicious data, or bypass UI controls. It’s the core of the MASVS-PLATFORM category.

flowchart LR
    ATT["Attacker app/web"] -->|"targetapp://..."| OS["System (Intent resolver)"]
    OS --> COMP["Exported component"]
    COMP --> PARAM["Unvalidated parameters"]
    PARAM --> WV["WebView -> XSS"]
    PARAM --> QRY["Query -> SQLi/traversal"]
    PARAM --> ACT["Sensitive action, no re-auth"]

The attacker here is another installed app or a web page the user visits. It needs no special permissions: it only needs the target app to expose a weak entry point.

  • Access to internal functions: invoke screens/actions bypassing navigation and its controls.
  • Parameter injection: what arrives via the deeplink ends up in a WebView (XSS), a query (SQLi), a file (path traversal), or a loaded URL (open redirect).
  • Sensitive actions without re-authentication: transfers, account changes, deletions triggered from a link.
  • Data theft: a deeplink that makes the app send information to a controlled destination.
  • Android — Custom scheme (targetapp://screen?param=value): any app can invoke it, unverified.
  • Android — App Links (https://target.com/...): domain-verified via assetlinks.json, more secure.
  • iOS — URL Schemes (targetapp://...): like the custom scheme, unverified; also ambiguous resolution if two apps register the same scheme.
  • iOS — Universal Links (https://target.com/...): domain-verified via apple-app-site-association (AASA).

Custom schemes are unverified: any app or web page can invoke them, so whatever the app does with them must be validated.

Ventana de terminal
# Android: from the decoded manifest, find <intent-filter> with <data android:scheme=...>
apktool d app.apk -o out/
grep -A6 'intent-filter' out/AndroidManifest.xml | grep -E 'scheme|host|android:exported'
Ventana de terminal
# iOS: from Info.plist (URL schemes and associated domains)
plutil -p App.app/Info.plist | grep -A6 CFBundleURLSchemes
# Universal Links: entitlement com.apple.developer.associated-domains
Ventana de terminal
# Android: invoke a deeplink and see which screen/action it reaches
adb shell am start -W -a android.intent.action.VIEW \
-d "targetapp://admin?debug=1" com.target.app
Ventana de terminal
# iOS: with the simulator
xcrun simctl openurl booted "targetapp://admin?debug=1"
# on device: open the URL (Notes/Safari) or launch it with Frida

Beyond deeplinks, exported components are pure IPC:

Ventana de terminal
# Activities, Services, Broadcast Receivers, Content Providers with exported=true
adb shell am start -n com.target.app/.SecretActivity # Activity
adb shell am start-service -n com.target.app/.AdminService # Service
adb shell am broadcast -a com.target.app.ACTION_X # Broadcast
adb shell content query --uri content://com.target.app.provider/data # Provider
# drozer automates the analysis of this whole surface
drozer console connect
run app.package.attacksurface com.target.app

An exported Content Provider without permissions can leak data or be vulnerable to SQLi/path traversal; a Receiver can trigger logic with forged intents. See also Android Pentesting.

  • URL schemes and Universal Links (above): validate origin and parameters.
  • App groups and shared containers: data accessible across apps in the same group.
  • General pasteboard: data shared between apps; avoid leaving secrets.
  • App extensions (share, widgets): additional entry surface.

Testing against an app you own or have permission to test:

  • Enumerate all schemes/hosts and exported components (manifest/Info.plist, drozer).
  • Invoke each deeplink and observe which screen it reaches and what parameters it accepts.
  • Test unauthorized access: targetapp://admin, targetapp://transfer?to=attacker&amount=1000 to bypass the UI/checks.
  • Inject via parameters: XSS if it reaches a WebView (see XSS), SQLi/traversal if it reaches a query/file, open redirect if the URL is loaded.
  • Check re-authentication on sensitive flows triggered by a deeplink.
Ventana de terminal
# example: check direct access to an internal screen
adb shell am start -a android.intent.action.VIEW -d "targetapp://transfer?to=mallory&amount=1000" com.target.app
  • Validate the input of deeplinks/intents (parameters, destinations) like any untrusted input.
  • Prefer App Links / Universal Links (domain-verified) over custom schemes.
  • Minimise exported components; exported=false by default; protect the necessary ones with signature permissions.
  • Don’t run sensitive actions from a deeplink without re-authentication or user confirmation.
  • Secure WebViews if a parameter reaches them: no unnecessary JS, no loading of controllable URLs.
  • Validate the origin (getCallingPackage() on Android, the sourceApplication/domain on iOS) when the caller matters.
  • Enumerate deeplinks (manifest / Info.plist / AASA / assetlinks)
  • Invoke deeplinks and see which screens/actions they reach
  • Unauthorized access to internal functions via deeplink
  • Parameter injection (XSS in WebView, SQLi, traversal)
  • Exported Android components (am/content, drozer)
  • Content Providers: SQLi / path traversal / data leak
  • Sensitive flows without re-authentication
  • iOS: URL schemes, Universal Links, pasteboard, app groups