high · M8 · MASVS-PLATFORM-3 · PTKD-DS-ITMS-SERVICES-LINK
Link that installs apps outside the App Store (itms-services)
The app opens an itms-services:// link, the enterprise / ad-hoc install mechanism. App Store apps may not install or offer other apps outside the App Store.
How it is exploited
Not an attack: a 'Try our other app' button opens itms-services://?action=download-manifest&url=... from the company's enterprise build server. That installs an app outside the App Store, which App Store apps may not offer.
Why it matters
Rejection; distributing enterprise-signed apps to the public can also get the enterprise certificate revoked.
How to fix it
- Remove every itms-services:// link from the app and its web views.
- Link to the other app's App Store page instead (https://apps.apple.com/app/id<ID>), or show it in-app with SKStoreProductViewController.
- Keep enterprise and ad-hoc install pages for employees and testers only, behind your own sign-in.
Swift
let vc = SKStoreProductViewController()
vc.delegate = self
vc.loadProduct(withParameters: [SKStoreProductParameterITunesItemIdentifier: 123456789])
present(vc, animated: true)Does your app have this?
PTKD checks your build or your source project for PTKD-DS-ITMS-SERVICES-LINK and every other check in this knowledge base.
Scan your appReferences
Related checks (M8)
- JavaScript obfuscation in the build
- Export compliance (ITSAppUsesNonExemptEncryption) not declared
- HealthKit app that also ships an ads SDK
- Hardcoded unlock or promo code
- Purchases SDK configured with an empty or test key
- Purchase screen falls back to made-up prices or 'coming soon' text
- False-urgency copy on a purchase screen
- Hardcoded price on a purchase screen