low · M4 · MASVS-PLATFORM-1 · PTKD-IOS-ASSOCIATED-DOMAINS-WILDCARD
Wildcard associated domain (universal-link hijack surface)
An associated-domains entitlement uses a wildcard applinks host (e.g. applinks:*.example.com). Overly broad universal-link claims widen the deep-link attack surface and can enable link hijacking if any subdomain is attacker-controlled.
How it is exploited
An associated-domains entitlement claims a wildcard applinks host such as applinks:*.example.com. Every subdomain then feeds universal links into the app, so an attacker who controls or registers any subdomain can drive deep-link handlers that were trusted as first-party.
Why it matters
A wider deep-link attack surface: link hijacking and unexpected in-app navigation from hosts you do not actually control.
How to fix it
- Scope associated domains to explicit hosts instead of a wildcard.
- Validate every parameter a universal-link handler receives as untrusted input.
Does your app have this?
PTKD checks your build or your source project for PTKD-IOS-ASSOCIATED-DOMAINS-WILDCARD 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
- Process execution via system()/exec/popen
- Unsafe C string function (buffer overflow risk)
- Hijackable custom URL-scheme deep link
- SQL built by joining request data into a string (text search)
- HTML rendered without sanitizing (dangerouslySetInnerHTML / innerHTML)