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

    1. Remove every itms-services:// link from the app and its web views.
    2. Link to the other app's App Store page instead (https://apps.apple.com/app/id<ID>), or show it in-app with SKStoreProductViewController.
    3. 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 app

    References

    Related checks (M8)