medium · M4 · MASVS-PLATFORM-1 · PTKD-PLATFORM-URLSCHEME
Hijackable custom URL-scheme deep link
An exported component handles a browsable custom URL scheme (not http/https). Any other app can register the same scheme, so a crafted link can be intercepted or forged, deep-link hijacking.
How it is exploited
The app registers a browsable custom URL scheme (for example myapp://). Any other installed app can register the same scheme, so a crafted link or a malicious app can intercept the deep link, receive its parameters, or forge one the app trusts.
Why it matters
Deep-link hijacking: leaked link parameters (often tokens), spoofed navigation, and unauthorized actions driven through the handler.
How to fix it
- Prefer verified Android App Links (android:autoVerify="true" over https) so only your verified domain can open the link.
- Treat every deep-link parameter as untrusted input and validate it; guard sensitive handlers with a signature permission.
Does your app have this?
PTKD checks your build or your source project for PTKD-PLATFORM-URLSCHEME and every other check in this knowledge base.
Scan your appReferences
Related checks (M4)
- Supabase function runs any SQL the caller sends
- Deep link URL loaded or opened without a host check (heuristic)
- Hybrid WebView may open any website inside the app
- Wildcard associated domain (universal-link hijack surface)
- Process execution via system()/exec/popen
- Unsafe C string function (buffer overflow risk)
- SQL built by joining request data into a string (text search)
- HTML rendered without sanitizing (dangerouslySetInnerHTML / innerHTML)