Skip to main content
Mallory
← Back to News
endpoint-software-vulnerabilityidentity-authentication-vulnerability

iOS StoreKitUIService Bugs Enabled XSS-to-PAC-Bypass Exploit Chain

Vulnerability Disclosure · 5 sources · Updated 4mo ago · First seen Sep 10, 2021

iOS StoreKitUIService Bugs Enabled XSS-to-PAC-Bypass Exploit Chain

A chain of flaws in Apple’s iTunes Store and StoreKitUIService components allowed attacker-controlled content to execute inside a privileged iOS WebView and escalate to arbitrary code execution. A crafted itms:// or itms-ui URL could bypass hostname trust checks and load malicious secondary content, including data: URIs, producing client-side XSS in a trusted Apple app context; that issue was tracked as CVE-2021-1748. In the same environment, an overly permissive Objective-C WebScripting bridge exposed native methods to JavaScript, enabling disclosure of device and account data, local file access within the app container, app enumeration and launching, heap pointer leaks, and direct object deallocation from script.

Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

15 events · 2009 – Sep 10, 2021
  1. Sep 10, 20215y ago

    CodeColorist published Mistuned Part 3 PAC-bypass details

    On September 10, 2021, the third Mistuned article explained how fake Objective-C objects, NSInvocation gadgetry, and SLOP-style techniques were used to bypass PAC and reach shellcode execution on iOS 14.3.

    Mistuned Part 3: PAC Bypass
  2. Reported Sep 10, 20215y ago

    Apple completed isa-pointer verification in iOS 14.5

    The PAC-bypass write-up says iOS 14 initially signed isa pointers without verifying them, and that this gap remained until iOS 14.5, after which the SLOP approach was no longer viable in the same way.

    Mistuned Part 3: PAC Bypass
  3. Reported Sep 10, 20215y ago

    Apple began signing Objective-C isa pointers in iOS 14

    The write-up says iOS 14 changed the ABI to sign Objective-C isa pointers as a runtime protection, though verification remained incomplete at first.

    Mistuned Part 3: PAC Bypass
  4. Aug 5, 20215y ago

    CodeColorist published Mistuned Part 2 on CVE-2021-1864

    On August 5, 2021, the second Mistuned article described the exposed WebScripting interface, heap disclosure, ASLR bypass, and dealloc-triggered use-after-free assigned CVE-2021-1864.

    Mistuned Part 2: Butterfly Effect
  5. Reported Aug 5, 20215y ago

    Apple assigned CVE-2021-1864 to SUScriptObject UAF

    The second Mistuned write-up states that the dealloc-triggered use-after-free reachable through the exposed WebScripting bridge was assigned CVE-2021-1864.

    Mistuned Part 2: Butterfly Effect
  6. Reported Aug 5, 20215y ago

    iOS 6 introduced the dealloc-triggered use-after-free bug

    The write-up says the use-after-free later assigned CVE-2021-1864 was introduced in iOS 6, when exposed SUScriptObject subclasses could be deallocated from JavaScript while references remained usable.

    Mistuned Part 2: Butterfly Effect
  7. Aug 4, 20215y ago

    CodeColorist published Mistuned Part 1 on XSS and CVE-2021-1748

    On August 4, 2021, the author published the first Mistuned article detailing the iTunes URL-scheme trust bypass, client-side XSS, and resulting privileged JavaScript access in Apple apps.

    Mistuned Part 1: Client-side XSS to Calculator and More
  8. Reported Aug 4, 20215y ago

    Apple assigned CVE-2021-1748 to iTunes URL trust bypass and XSS

    The first Mistuned write-up states that the URL-scheme trust bypass and client-side XSS affecting iTunes Store and StoreKitUIService was assigned CVE-2021-1748.

    Mistuned Part 1: Client-side XSS to Calculator and More
  9. Jan 16, 20216y ago

    CodeColorist published NSExpression code-execution research

    The January 16, 2021 article described how NSPredicate and NSExpression could be abused to invoke arbitrary Objective-C selectors and even reach program-counter control through NSInvocation gadgets.

    See No Eval: Runtime Dynamic Code Execution in Objective-C
  10. 2020

    TianfuCup 2020 teams achieved iPhone 11 RCE on iOS 14.2

    At TianfuCup 2020, Ant Security and Qihoo 360 used different bug chains to achieve remote code execution with a userspace sandbox escape on an iPhone 11 running iOS 14.2.

    Mistuned Part 1: Client-side XSS to Calculator and More
  11. Reported Dec 12, 20197y ago

    Project Zero made the SLOP issue public

    A January 9, 2020 comment states that Project Zero made issue #1933 public alongside a blog post about remote iPhone exploitation, while noting the technique itself was not under a disclosure deadline.

    SLOP - A Userspace PAC Workaround [42451026] - Project Zero
  12. Dec 12, 20197y ago

    Project Zero marked SLOP issue infeasible and invalid

    A comment on December 12, 2019 marked Project Zero issue #1933 as Won't Fix and invalid because SLOP was considered an exploitation technique rather than a standalone vulnerability.

    SLOP - A Userspace PAC Workaround [42451026] - Project Zero
  13. Reported Dec 12, 20197y ago

    Project Zero reported SLOP PAC-bypass technique to Apple

    Google Project Zero filed issue #1933 describing SeLector Oriented Programming (SLOP), an exploitation technique for bypassing PAC in iOS userspace using fake NSInvocation and NSArray objects.

    SLOP - A Userspace PAC Workaround [42451026] - Project Zero
  14. 2014

    Pwn2Own showed itmss:// could open untrusted sites in iTunes

    Jung Hoon Lee used the itmss:// scheme at Pwn2Own 2014 to open an arbitrary untrusted website in iTunes, leading to a sandbox escape. The issue was assigned CVE-2014-8840.

    Mistuned Part 1: Client-side XSS to Calculator and More
  15. 2009

    Apple firmware shipped vulnerable iTunes URL handling path

    The vulnerable iTunes URL-handling code path later tied to CVE-2021-1748 existed as early as firmware Kirkwood7A341, which the write-up says was released in 2009.

    Mistuned Part 1: Client-side XSS to Calculator and More
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, breaches, and observables Mallory has linked to this story. Indicator values are masked here and available in full in the app.

Open in app →

Affected products

2 linked
ItunesIos

Organizations

1 linked
Apple

Observables

1 linked

Indicator values are masked on this page. See the values in Mallory Domains, IPs, hashes, and URLs are exportable to your SIEM.

Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.