ie8 fix
madison

Zero Day

Ryan Naraine, Emil Protalinski and Dancho Danchev

Charlie Miller wins Pwn2Own again with iPhone 4 exploit

By | March 10, 2011, 2:50pm PST

Summary: Charlie Miller kept his Pwn2Own winning streak intact with another successful hack of an Apple product.

VANCOUVER — Charlie Miller kept his Pwn2Own winning streak intact with another successful hack of an Apple product.

Miller (right), renowned for his work breaking into MacBook machines with Safari vulnerabilities and exploits, took aim at Apple’s iPhone device here, using a MobileSafari flaw to swipe the phone’s address book.

Miller partnered with colleague Dion Blazakis from Independent Security Evaluators on the winning exploit.

The attack simply required that the target iPhone surfs to a rigged web site.  On first attempt at the drive-by exploit, the iPhone browser crashed but once it was relaunched, Miller was able to hijack the entire address book.

[ SEE: Pwn2Own 2011: IE8 on Windows 7 hijacked with 3 vulnerabilities ]

In an interview with ZDNet, Miller said the attack works perfectly against an iPhone running iOS 4.2.1 but will fail against the newest iOS 4.3 update.

Apple has quietly added ASLR (address space layout randomization) to iOS 4.3, a key mitigation that puts up an extra roadblock for hackers.

“If you update your iPhone today, the [MobileSafari] vulnerability is still there, but the exploit won’t work. I’d have to bypass DEP and ASLR for this exploit to work,” Miller said.follow Ryan Naraine on twitter

Miller’s winning exploit used ROP (return oriented programming) techniques to bypass DEP.

This is not the first time Miller has successfully broken into a fully patched iPhone.  In 2007, Miller exploited the new iPhone’s Safari browser to launch code that read the log of SMS messages, the address book, the call history, and the voicemail data.  Then in 2009, Miller teamed up with Colin Mulliner to exploit a memory corruption bug in the way the iPhone handles SMS messages.

[ SEE: Safari/MacBook first to fall at Pwn2Own 2011 ]

Over the years, Miller said the iPhone’s security posture has improved significantly.

“The first one [in 2007] was really, really easy.  They had nothing, no sandboxing.  Everything was running as root.  It was super easy.   The SMS one [in 2009] was harder because of DEP but there were no sandbox issues because the process that controlled SMSes wasn’t in a sandbox.”

“As of 4.3, because of the new ASLR, it will be much harder,” Miller added.

Miller and Blazakis won a $15,000 cash prize and kept the hijacked iPhone 4.

ALSO SEE:

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Topics

Ryan Naraine is a journalist and social media enthusiast specializing in Internet and computer security issues.

Disclosure

Ryan Naraine

The most important disclosure is of my employment with Kaspersky Lab as a member of the global research and analysis team. Kaspersky Lab is a global company specializing in anti-malware and secure content management technologies. I do not own stocks or other investments in any technology company.

Biography

Ryan Naraine

Ryan Naraine is a journalist and social media enthusiast specializing in Internet and computer security issues. He is currently security evangelist at Kaspersky Lab, an anti-malware company with operations around the globe. He is taking a leadership role in developing the company's online community initiative around secure content management technologies.

Prior to joining Kaspersky Lab, Ryan was Editor-at-Large/Security at eWEEK, leading the magazine's and Web site's coverage of Internet and computer security issues and managing the popular SecurityWatch blog, covering the daily threats, vulnerabilities and IT security technologies. He also covered IT security, hacker attacks and secure content management topics for Jupiter Media's internetnetnews.com.

Ryan can be reached at naraine SHIFT 2 gmail.com. For daily updates on Ryan's activities, follow him on Twitter.

Related Discussions on TechRepublic

Did you know you can take part in these discussions with your ZDNet membership?
52
Comments

Join the conversation!

Just In

RE: Charlie Miller wins Pwn2Own again with iPhone 4 exploit
talih Updated - 12th Aug
Well done! Thank you very much for professional templates and community edition
sesli chat sesli sohbet
0 Votes
+ -
Color me not surprised.
Hallowed are the Ori Updated - 10th Mar 2011
Not surprised at all.
0 Votes
+ -
Wow, Charlie looks kind of tired
UrNotPayingAttention 10th Mar 2011
I thought they were trying Droid and BB phones too? or is that another day?

interesting, though, that Apple was rather quiet about adding ASLR in the latest update; wouldn't they want to broadcast that a little louder? Especially with the iPhone + Enterprise talk?

Also interesting is this article refers to the phone Charlie hacked as a fully patched iPhone, which it's not. From what I understand, iOS 4.3 is out, but the phone submitted to CanSecWest was turned in before the patch released, hence it was tested with 4.2?

is this not correct?
@chmod 777 sshh... please be quiet. you are disturbing Apple's reality distortion field. Everything is great,,,, everything is perfect,,,, no viruses,,, no malware,,, no flaws of any kind,,, snafu
0 Votes
+ -
But that's exactly my point...this could go to Apple's credit
UrNotPayingAttention Updated - 10th Mar 2011
@pupkin_z

If Apple had released iOS 4.3 before they did, and the phone Charlie hacked was really fully patched, his exploit wouldn't have worked.

He admitted as much. I think implementing ASLR is a big jump for Apple and the iPhone; I don't understand why they would want an earlier version tested and/or why they aren't more vocal about implementing it in the o/s?

To save face? Yes, one could make the argument that "Apple is just now deploying ASLR to their phone o/s"...but what speaks stronger? That, or "Charlie Miller not being able to hack the phone, because it was running the latest update which implemented ASLR?"

I think Apple shot themselves in the foot on this one, waiting until the last minute. (And, trust me, I'm saying this as a non-fanboy. I've long questioned the security of the iOS devices as pertains to personal identity information.)

And...my question remains: How are Droid and BB going to fare?
@chmod 777

Wow! That is the greatest mind blowing distortion field that I have ever heard not come out of Charlie Sheen's mouth. Winning!!!

So Apple is a lagard in the deployment of ASLR and somehow that is a win? That Apple just now released their patch, yes 4.3 is a patch, after th event occurred and somehow that it is a win that it was not exploited. And, do not delude yourself, the 4.3 patch would have been equally exploited. After all, Apple is just now getting to things that Microsoft did years ago.
  • Flagged
0 Votes
+ -
distortion field? not hardly.
UrNotPayingAttention 11th Mar 2011
@pupkin_z

I am by all means not Apple fanboy, if anything I'm a linux fan.

I never said delaying 4.3 was a win for Apple, I didn't even imply that. What i said was if Apple had released 4.3 earlier, the phone submitted to CanSecWest wouldn't have had 4.2 on it.

And by Charlie Miller's own admission, the exploit he used wouldn't have work on 4.3: ?If you update your iPhone today, the [MobileSafari] vulnerability is still there, but the exploit won?t work. I?d have to bypass DEP and ASLR for this exploit to work,? Miller said.

As far as your statement: "After all, Apple is just now getting to things that Microsoft did years ago." Really? I thought Win Pho 7 was released back in Sept, 2010? and, does it use ASLR?

Oh, unless you were talking MS' desktop o/s and comparing that to Apple phone o/s? What were saying about a distortion field?

Sheesh, these talkbacks have gotten so bad one can't even be fair and objective without getting called a delusional fanboy
@chmod 777

Windows Mobile 6 has had ASLR. That came out in 2007. Windows XP, which is a decade old has ALSR.

And, yes, Charlie Miller, or someone else would have broken a 4.3 phone. Maybe not by that techinque, but by another. To imply that the 4.3 patch is somehow intrinsically secure misspeaks the truth. the 4.3 patch merely addresses some of these particular vulnerabilities.
  • Flagged
0 Votes
+ -
No, actually...
UrNotPayingAttention 11th Mar 2011
@pupkin_z

XP never had nor has ASLR (unless you utilize a 3rd party HIDS product). ASLR wasn't introduced in Windows until Vista. XP did have DEP, but wasn't released until SP2 in 2004.

However that's desktop o/s, we're talking phone o/s...

And I don't believe Windows Mo 6 has/had ASLR. Nothing I've read would indicate otherwise.

I would be interested if you could provide a link supporting your argument?
Bypassing ASLR is trickier, but not impossible. See Windows 7/IE 8 hack (and yes, Windows 7 does apply ASLR to IE 8, if that's what you're questioning)
@chmod 777

Its like when you have 10 errands to run you want to do the easy mindless ones first. work on the challenging one last in case you can't do it.
@chmod 777 Blackberry was owned pretty easily as well...
0 Votes
+ -
@chmod 777 In an interview with ZDNet, Miller said the attack works perfectly against an iPhone running iOS 4.2.1 but will fail against the newest iOS 4.3 update.

I'd say the assumption is that he hacked into an iPhone 4 running iOS 4.2.1 based on that statement.
@chmod 777 no because they need to keep the illusion that their software isn't hackable and that there aren't any viruses or malware on any of their platforms.
0 Votes
+ -
Message has been deleted.
SonofaSailor Updated - 14th Mar 2011
0 Votes
+ -
@SonofaSailor Crackberry was cracked a lot easier than the iPhone ..... and they did it without even using a debugger.
@wackoae The only reason BB got hacked was due to the open-source vulnerability present in the open source WebKit engine.

The exact same WebKit used in OS X 10.6.6 fully patched with Safari and Java, yet still got hacked in 5 seconds!!!

And you think iOS is different uh? As in better? Duh to the power 100!

~~~~~~~~~~
Never underestimate the power of human stupidity.
~ Robert A. Heinlein
0 Votes
+ -
@WinTard
It was not hacked in 5 seconds. It took many weeks to do it. When at the show it was their turn they did it in 5 seconds. No matter how good they are they will not be able to hack any device by picking it up then in 5 seconds hack it. It takes much time to figure how to get around the security. Then a rigged site was setup to test it on. Where is your 5 seconds?

Much the same as for weeks studying electrical schematics to find what be might causing an electrical glitch. When found and tested you then walk in turn one screw, fixed. Folks say 'oh wow you are good it took you 5 seconds to fix it'. Wrong, it took quite a while to find the fix, test the fix, then a few seconds to physically apply the fix it.
0 Votes
+ -
@RicD_
Don't be confused by the length of time. You are right that it takes significantly more time to discover these bugs and devise exploits - - but we recognize such a quick exploit like this is significant because traditional brute force attacks might take minutes, hours, days and are not as worthwhile to hackers.
@oblak@
Thank you for your explanation.

Because of WindTard's comment, "...yet still got hacked in 5 seconds!!!..." I felt complelled to make my comment. My thinking is many folks forget the time it took to find then develop a workaround. They see 5 seconds then hang their hats on that.

Again, thank you for your response.
0 Votes
+ -
@SonofaSailor You are deluding yourself if you think *any* device is uncrackable. It sounds like you are a salesperson for BB. Only someone intimately involved with BB would be so emotional involved to be this excited about one more exploit.

BBs used to be so expensive and a PITA without BES. Competition is good for all consumers!
flaws in webkit (including the blackberry exploit). Webkit is open source. Why hasn't the community found all these exploits already and patched them?
@frgough@... The community finds several of these exploits. This is an example of the community finding an exploit and sharing it. What exactly is your point? Oh wait, in light of what I just said you have none.
0 Votes
+ -
an exploit and sitting on it until he could win a contest. Miller could have patched it immediately and checked his changes in for review and inclusion into the repository.

My point is that open source is no more secure than proprietary software.
Apple products is getting lesser respect nowadays.
@iluvmsft
Not sure if I would say less respect but rather more and more folks are getting tired of the same rhetoric...

;|
@iluvmsft
I would say that their products are getting *MORE* respect from Apple (meaning that AAPL is putting real effort into security), which will *EVENTUALLY* garner more respect from the community. For now, they're cute (and magical).
0 Votes
+ -
RE: Charlie Miller wins Pwn2Own again with iPhone 4 exploit
alsobannedfromzdnet Updated - 10th Mar 2011
Question is did he do it before or after iOS 4.3 was released?

If before, he won it fair and square, if after, the contest was rigged because the iPhone wasn't "fully patched".

The same question could be posed regarding Safari on Mac OSX, was the update that was released yesterday applied before the contest?

If you dragged a Windows 98 box in and cracked it with the I love you virus, would that be a win?

Any way the exploit he used has been patched BEFORE the news came out.
0 Votes
+ -
@alsobannedfromzdnet

I'm pretty sure that all of the devices had to be turned in to CanSecWest a week ago, or maybe more, and after that they could not be updated with any patches released from that point on.

Which is why the iPhone Charlie Miller cracked was running iOS 4.2. He even states that iOS 4.3 is not susceptible to the exploit he used. (However, this also applies to Chrome, IE8, and anything else that was cracked. I believe they were cracked before being patched)
0 Votes
+ -
@chmod 777

So this makes this a flawed contest and the results are worthless.
0 Votes
+ -
RIM doesn't have a fix yet.
wackoae 10th Mar 2011
@chmod 777 The guys who cracked the Blackberry used a vulnerability that is not fixed even on the soon to be released version of the RIM software.
@chmod 777 Actually, it is susceptible, he said that he would need an additional exploit to do the same to 4.3 to deal with ASLR.
@alsobannedfromzdnet
Updates were frozen two weeks before the event to provide a static test environment and level set for all participants.
Participants could utilize all patches/updates up to the date of the test (ex: Safari on OS/X) if desired.

Charlie's hack was accurate under the terms of the contest.

wink
But what they really mean is a fully patched system two weeks prior to the actual contest.
@zenwalker ONE week.
@alsobannedfromzdnet The rules of the contest are all software is frozen 1 week prior to the contest. You get to keep the device if the device is hacked, you get a 10,000$ cash prize if the latest version of the software still contains the exploit (which 4.3 does, but 4.3 would require a third exploit due to implementing ASLR).
@Brick Tamland I agree!!! I have a bunch of academia snobs working in my office who say MAC are the best because they are hack and virus proof... I try to explain that any machine running any OS can be hacked. Keep in mind I am the It guy they are not... I love how they know more than I. This entire topic needs to be put to rest and everyone needs to work together to make systems and networks more secure!!!
@apetti

You also missed the part where Chrome has not been hacked yet !
@fourthletter Only technically... 1 hacker was a no-show, 1 withdrew. I'm a chrome fan, but it's gonna happen.
0 Votes
+ -
So mr. IT guy
fr_gough 11th Mar 2011
how many Macs have you had to re-image because of a virus. Now how many Windows machines have you have to re-image because of the same?
@frgough@... The thing is, how many machines run Windows compared to Macs? Hackers develop way more viruses for Windows than Macs because they can get way more information. Why take all the time to develop a virus for a Mac when in reality how many people is it going to affect in comparison to machines running Windows?
0 Votes
+ -
@frgough@... I think his point was that ANY OS can be hacked regardless if it's Mac OS, Windows, or Linux. Windows does have more due to the fact that it is used in businesses more than Mac or Linux so more effort is put into hacking it.
@etdrain,

So, what you are saying is that the Mac will have fewer viruses. The reason is irrelevant. The result is what counts.
@etdrain I don't buy that. Why do virus writers do what they do? Publicity and the challenge. Can you imagine the headlines for the person who writes the first Mac virus that does some real damage in the wild?
0 Votes
+ -
@apetti Look up bayes' theorem. Given a random person in your population has a windows or mac laptop, what is the probability they have malware/security problems? Disregarding all explanations and rhetoric, simply check your empirical data. If you have a lot of users it should be easy to check either way and then you have an answer.
0 Votes
+ -
Chrome!
fourthletter 11th Mar 2011
@Brick Tamland

Apart from Chrome or did you miss that part of the competition because you were to busy eating a coaster ?
@Brick Tamland
or did you insult MS and the people who use their products, only to change now that your beloved iPhone was hacked?

I'm thinking of changing my name to Steve Carell, what do you think?
@Will Farrell
LMAO!!! do it!!!
There are a few good comments here from people with real experience, and then a few from those that always want to pick a bone. We probably need a detector for the emotional infants that seem to scream "fan-boy" and "a$$" at everything here. Now that would be technology! I personally felt rather depressed that someone that quotes Heinlein can be so crude.
To the topic: there is no such thing as a secure AND connected device. The complexity of getting that done includes smart users, and we know we need to make things simple for most and super safe for the majority. Hacking of a modern OS or any embedded software is not as simple as the media makes it out to be. It is Charlie's job to search for gaps! He gets paid good money to fiddle with these things.
Let's rather look at the whole ecosystem of platforms and see how we can make these things work in a way that enhances the lives of people. This includes Pwn2Own sessions, so that the majority of us can go about our lives in relative peace. For those that missed my position on this, off you go...
booo hooo apple fans. Those phones are hype man. A lot of stink'n hype!
0 Votes
+ -
@rob.sharp@... I see you missed the article about Blackberry also being hacked. I'm waiting to see Android get hacked...

Like I've said before any OS can be hacked.
Well done! Thank you very much for professional templates and community edition
sesli chat sesli sohbet

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix
Click Here
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix