Android platform checks

Android deep link vulnerabilities and security testing

Every deep link is an entry point that another app or a web page can call with its own parameters. Test it the way you would test an API endpoint.

Deep links, web links and App Links

Android offers three related mechanisms. A custom scheme deep link such as myapp://reset is declared with an intent filter. A web link uses an http or https URL. An Android App Link is a web link with android:autoVerify="true" whose domain publishes a /.well-known/assetlinks.json file proving the app belongs to it.

Only verified App Links guarantee that the link opens your app. Any installed app can declare the same custom scheme. These checks belong to MASVS-PLATFORM.

Build an inventory

  • List every activity with a VIEW intent filter and the BROWSABLE category, with its schemes, hosts and paths.
  • For each https host with autoVerify, fetch the assetlinks.json file and check it names the app's package and signing certificate fingerprint.
  • Follow the handling code: which query parameters and path segments are read, and what the app does with them.
  • Flag links that carry or accept secrets, such as password-reset tokens, magic-login links or OAuth redirects.

See the Android documentation on handling Android App Links for the verification rules.

Common deep link vulnerabilities

Common deep link vulnerabilities
IssueWhat to look for
Link hijackingA secret such as a login or reset token sent through a custom scheme another app could also claim.
Unvalidated navigationA parameter that becomes a WebView URL, a file path or the target of an internal intent.
Missing authorizationA link that opens an authenticated screen or performs an action without checking the session.
Unverified App LinksautoVerify declared but verification failing, so the link falls back to the browser or a chooser.

Runtime check

On an authorized test device, call each link the way another app would: adb shell am start -W -a android.intent.action.VIEW -d "myapp://path?param=value". Vary the parameters: unexpected hosts, path traversal sequences, very long values and missing values. Record what the app shows or does, logged in and logged out.

On Android 12 and later, adb shell pm get-app-links <package> shows the verification state of each domain. A domain shown as not verified means its links are not guaranteed to reach the app.

As with exported components, commands from adb shell run with shell privileges; repeat important results from an unprivileged test app.

Report it with the evidence

Include the intent filter, the exact link used, the parameters, the session state and the observed result. Recommend verified App Links for anything carrying a secret, strict validation of every parameter, and an authorization check inside the destination screen rather than trusting the link.

When a link leads into a WebView, continue with the WebView guide. Exported activities are covered in the exported components guide.

Related reading