Engineer Demonstrates iPhone Hack After Acknowledging Apple's Patch

By Scott M. Fulton, III | Published August 3, 2007, 11:26 AM

Though security consultant Charlie Miller went through with a scheduled demonstration late yesterday afternoon of how he and his colleagues discovered how to hack the Apple iPhone to obtain personally identifiable information from it, he and his company's Web site both acknowledged that Apple had patched the vulnerability.

The demonstration took place at the BlackHat convention in Las Vegas, where apparently Miller used an unpatched iPhone. Though the specific hole Miller discovered was apparently sealed over, the techniques he demonstrated for uncovering those techniques, and the information he learned along the way, indicate that this may not be the only hole to emerge from what could be characterized as a design flaw.

The problem is an ironic one, according to Miller's slides: The open source library WebKit upon which the iPhone's Safari browser is based, uses "unpatched" code - specifically, a much earlier version of the Perl Regular Expression Library (PREL 6.2) than the current one (7.2). Since the change logs and bug fixes for open source projects are...well, open, it's an academic matter for someone to visit a Web site to read up on the fixes that a library's own developers made to its own software in the process of updating it.

From there, Miller showed, someone out to hack a device that still uses the older, unfixed version of the library can simply employ "fuzzing" - a trial-and-error method of finding sequences of characters that "annoy" a vulnerable portion of the code" - to find out what sequences trip up the code.

In the case of PREL, the change log which listed the discrepancy that developers addressed during the fix, was dated July 2006. Miller pointed out that this could lead to vulnerabilities in Mac OS X versions of Safari as well.

But the iPhone's problems in this case were exacerbated by two fundamental design decisions, he went on, which cannot be changed with mere patches: One is that code appears to be executable from the stack - from the register that's supposed to point to elements of data, not executable instructions.

The other is that internal code addresses are not randomized at boot time, so it's possible to execute system code using memory addresses rather than address names - the latter of which could have been secured.

Last May, Miller raised some eyebrows with the release of a white paper for a Carnegie-Mellon University security workshop, entitled, "The Legitimate Vulnerability Market: Inside the Secretive World of 0-day Exploit Sales" (PDF available here).

As it turned out, he actually demonstrated through experiments with buying and selling exploits on the black market that such a market has yet to become "legitimate," due to the fact that there's no commoditization process with which to establish an index of relative value for any one exploit for sale, with respect to another.

Comments

View comments by with a score of at least

Some might label this effort as futile, but it actually puts more emphasis on the importance of applying updates. Maybe word will get around to the iPhone community to keep their phones updated.

Score: 0

|

Google Chrome 4: Yes, it's fast, but is it usable?

As Betanews readers have responded to our stories about Chrome's JavaScript superiority...Does that mean we'd actually use this browser? Well...

Video: Netflix on PlayStation 3

Netflix has come to the PlayStation 3 via Blu-ray and BD-Live.

Verizon Wireless launches new Android, Chocolate, and ruggedized phones

The lower-priced Eris joins the Droid, while the Chocolate gets a touchscreen and more music playback.

Early sales figures for Windows 7 nicely high, but do we know why?

Fans of triple-digit surges in figures quoted by Betanews will love this one, as it appears Microsoft rediscovered how to pull off a software launch.

Myka announces its latest Linux-based 'net top box'

Myka's ION brings Boxee, XMBC, and much more to HDTVs.

What hath Mac wrought? A remembrance after a quarter-century

The reason there's a Macintosh today is not because of some brilliant flash of engineering genius, but because Apple had the audacity to learn from its mistakes.

Early build of Moblin 2.1 improves connectivity, but not device support

The Linux Foundation's Atom-centric OS yesterday received a major overhaul with the project release of Moblin 2.1 for netbooks and nettops.

The iPhone's China syndrome: Sales of 5,000 and climbing

There's actually a country where Apple's device is not a godsend, where sales can be measured in the dozens.

New European counterpart to FCC will ensure 'a more neutral net'

Late Thursday night, the ruling telecom administrators of the EU's member nations signed away their final authority to a new entity overseen by the EC.

Sophos study suggests Windows 7 UAC's default setting is self-defeating

Without any anti-virus installed, a Sophos test showed, User Account Control was only capable of thwarting just one malware package out of ten samples chosen.

Indiscreet tweet trips awareness of Web SSL vulnerability

A group of high-level security engineers had been making progress on thwarting a low-level threat to the Web, until somebody blurted it all out on Twitter.