Skip to content
Info disclosure Write-up Advanced

Remote iPhone exploitation part 2: a remote ASLR bypass

The report describes a remote ASLR bypass for iOS by using a crash oracle based on iMessage delivery receipts. An attacker can infer the base address of the dyld shared cache by sending crafted messages that either crash the imagent process or not, allowing the attacker to determine the shared cache base address within minutes.

googleprojectzero.blogspot.com

Published on googleprojectzero.blogspot.com

This post is the second in a series about a remote, interactionless iPhone exploit over iMessage.The first blog post, which introduced the exploited vulnerability, can be found here.

The author, on googleprojectzero.blogspot.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the vulnerability allows an attacker to probe memory addresses and cause a crash only if the address is unmapped or contains an invalid value, and the presence or absence of a delivery receipt leaks whether a crash occurred.

What the attacker needed

Victim uses iMessage; attacker can send iMessages; vulnerable iOS version

How it was found

  1. Send an iMessage with a crafted payload that triggers the vulnerability and probes a specific memory address.
  2. Observe whether a delivery receipt is received; no receipt indicates a crash, receipt indicates no crash.
  3. Use the crash oracle to perform a linear search over the shared cache address range to find a mapped region.
  4. Build a profile of the shared cache by running a custom app on a similar device to determine which addresses crash.
  5. Use the profile and oracle to compute candidate base addresses and perform a binary search to narrow down to the correct base address.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

ASLR is a security feature that randomizes where programs and libraries are loaded in memory, making it harder for attackers to predict addresses. This report shows how an attacker can remotely figure out the randomized address of a large shared library on an iPhone by sending messages and observing whether the phone sends back a delivery receipt or not, which reveals if the message caused a crash.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.