iPhone jailbreak exploit 'sweet' and 'scary,' says researcher
- — 04 August, 2010 02:51
The exploit used to jailbreak Apple's newest iPhone operating system is both "beautiful" and "scary," a noted vulnerability researcher said Monday.
"Jailbreak" is the term that describes the practice of hacking an iPhone to install apps not authorized by Apple.
Miller is a well-known security researcher with a reputation for hacking Macs and iPhones. A three-time winner at the annual Pwn2Own contest, and one of the three researchers who uncovered the first iPhone vulnerability in July 2007, Miller also demonstrated last year how to compromise an iPhone simply by sending a text message .
But he tipped his hat to comex, the Safari flaw comex found and the exploit the researcher crafted.
Miller said he does not know comex, or the researcher's real name.
JailbreakMe 2.0 can be installed by browsing to the jailbreakme.com site with an iPhone, iPod Touch or iPad running iOS 4.0.1 or earlier. Moving the slider to the right kicks off the jailbreaking process.
"Not only does this elevate to the root, giving you complete control of the iPhone, but it breaks out of the sandbox," said Miller in an interview Monday, referring to the isolation technology designed to block rogue code from escaping the mobile Safari browser.
"There's no shell on the iPhone, so [comex] had to do all that himself to get control," Miller continued. "He elevated to root, turned off all code signing, broke out of the sandbox...all in the payload of the exploit.
"And it works every time. Not just a few times out of a hundred. But every time."
As proof, several people, including Miller, have posted photographs of jailbroken iPhones in Apple's own retail stores, the devices hacked by customers who browsed to jailbreakme.com.
In one of his tweets, Miller added, "Scary how it totally defeats Apple's security architecture."
Miller said he had not reverse-engineered the exploit to see how it works -- "I don't have any motivation to do that," he noted -- but said that that was certainly "doable." Someone will figure out how JailbreakMe works, he said. And until Apple patches the vulnerability in Safari, iPhone and iPod Touch and iPad users will be at risk.
"Rather than download and install the jailbreak, it could just as easily be used to download and install malware," Miller said.
Others agreed. Marc Fossi, the director of Symantec's security response team, said his group is digging into the exploit. "While the only currently-known exploit for this issue is non-malicious, it is quite possible for an attacker to alter the existing payload for malicious purpose," said Fossi in an e-mail Tuesday. "As such, iPhone users should be cautious when browsing to unsolicited or suspicious websites."
Fossi's efforts have been focused on determining whether the desktop editions of Safari on Mac OS X and Windows are also vulnerable. So far, the risk to users of Apple's browser on the Mac or a Windows PC is unclear, he said in a follow-up instant message.
According to Fossi and other researchers, including those at Helsinki-based F-Secure, the JailbreakMe exploit is actually a multi-stage hack. Step one, said the experts, is a PDF font-parsing flaw in mobile Safari; step two, Fossi added, is a local exploit used to gain root privileges on the iPhone.
Although Adobe claimed yesterday that early testing indicated that the current edition of Adobe Reader, version 9.3.3 is not vulnerable, F-Secure disagreed.
"In our testing, the PDF files [used in the exploit] crash both Adobe Reader and Foxit on Windows," F-Secure said in a Tuesday blog post .
Miller warned that the exploit could be used to launch drive-bys that would compromise any Apple mobile device that browsed to a malicious site harboring the attack code. "A drive-by download would own your iPhone," he said.
According to F-Secure, the exploit's first stage relies on a corrupted font inside a PDF file to crash the Compact Font Format (CFF) handler.
Apple 's policy is to decline comment on security issues until a patch is available. The company also does not announce timelines for iOS updates, although iOS 4.1 is reportedly already in the hands of beta testers.