eWeek Security Watch
Advertisement
Advertisement
April 20, 2007 6:32 PM

Mac Hacked Via Safari Browser in Pwn-2-Own Contest



A zero-day vulnerability in Safari, the default browser for Apple's Macintosh operating system, allowed two MacBooks to crumble before the onslaught of a CanSecWest security conference attendee's hacking, aided as he was by a New York buddy with years of experience hacking Macs.

Shane Macaulay, a developer of binary security analysis tools, is going home with a 17-inch MacBook and sending $10,000 in prize money to his friend, Dino Dai Zovi. Dai Zovi told eWEEK in an interview from his apartment in New York that he was up since 10 p.m. on Thursday, following a phone call from Macaulay asking if he could help him in the CanSecWest Pwn-2-Own contest. By 7 a.m. he had the exploit in hand.

"I was up all night. I haven't slept yet," Dai Zovi said around 5:45 PST. "I sat down at 10 last night and by 7 a.m. I had a working vulnerability."

Dai Zovi said he "had some ideas" of where to attack. "I have my notes about what I've looked at, and what I haven't. I have little notes about something over here looking fishy, so check it out."

As a matter of fact, he investigated and reported to Apple a similar Safari vulnerability some two years ago.

Macaulay pwned the Mac by sending it an e-mail that directed a user to a malicious site. Upon visiting the site, the user—a CanSecWest organizer perched on the machine to protect it from physical assault—was infected with malware, without clicking on anything within the site.

On this, the last day of the security conference, none of the attendees had yet managed to convincingly molest the two laptops as of the morning. At first, the terms of the contest only stipulated that a remote attacker had to gain user access on a 15-inch MacBook or administrative privileges on a 17-inch MacBook.

On Thursday, TippingPoint sweetened the deal by pitching in $10,000 to hackers who manage to pwn the systems, in answer to hackers who shrugged off the idea of swapping a lucrative zero-day Apple vulnerability for a mere MacBook.

The value of such a vulnerability is reportedly around $20,000.

The MacBooks have been set up on their own Wi-Fi network, separate from that of the conference at large. The conference's Wi-Fi network has been suffering almost continuous denial-of-service attacks since the beginning of CanSecWest, with connectivity breaks coinciding mostly with morning hours before 10 a.m., before the bulk of hackers had managed to drag their (often hungover) bodies out of bed.

Dragos Uiri, the conference's M.C., announced on Friday morning that the contest had been opened to hackers to try their malicious Web page exploits against the systems. To do so they had only one new avenue opened to them: the ability to e-mail the machines at pwn2own@cansecwest.com.

"We first put the machines out, with the only option [being] to actively connect and try to remotely exploit [them]," said CanSecWest organizer Sean Comeau. "Nobody did it. So we expanded the attack surface by allowing them to send us e-mail. [Macaulay] supplied the URL."

The URL appears to lead to a blank page, but that's where the dirty work happened. Comeau described the hack as being similar to hacking Internet Explorer: With some IE flaws, all that has to happen is for a user to visit a Web site.

Macaulay was furiously typing away at his own Mac on a table adjacent to the Mac he was pwning when the successful hack was announced. He told a flock of reporters that the malicious Web site serving up the malware was not being hosted on his machine.

When answering questions while simultaneously typing at the keyboard, he would occasionally reach over to slap a plastic "Easy!" button from Staples.

"It was super easy," he said. [I used] client-side JavaScript, it does [code] execution, just arbitrarily executed a command, and that was it."

The rise of malicious JavaScript has actually been one of the hot topics at the conference this year, with Dr. Jose Nazario from Arbor Networks giving a presentation on the first day regarding how much more offensive and defensive JavaScript attack code has become.

Once he had gained access to the machine, Macaulay could escalate privileges via different paths, Comeau said, and of course could access any files on the machine with his local user access privileges.

The flaw for which Dai Zovi wrote an exploit exists solely in Safari, not in other browsers. Indeed, if the machine in the pwn-2-own contest had been running Vista, Macaulay wouldn't have bothered to try a remote IE exploit, he said.

"[IE flaws] are worth way more money—more people use them," he said.

Dai Zovi has been doing Mac research for awhile. Macaulay called him "the real center of research for the Popcorn frame." He wrote shell code for TCP for older generations and has written at least one wireless driver.

At that Theta44.org site, his bio reads as follows:

"I am a transient set of particles, constantly changing and exchanging some with everything that I come in contact with. Yet I ascribe some continuity and self-consciousness to the past, present and future of this amorphous being. This illusion engages daily in a megalomaniacal exercise, attempting to project the abstract into physical existence."

He told eWEEK that he's been working on Mac security in his spare time for about four years.

The $10 million question for both the hackers, of course, is an old one: Which is more secure, Windows or Macs?

That's the question I get hung with," Dai Zovi said. "My general sense is everything has vulnerabilities. There's nothing special about one platform that makes it impervious to vulnerabilities. Someone who knows what they're doing ... can find these vulnerabilities. Apple's been putting out [patches monthly for awhile]. Anybody who knows what's going on can develop exploits for these. There are many things the platform does security-wise that are somewhat better than Windows, but Windows has other security strengths, as well.

"I like Macs," he said. "I use Macs for everything."

Macaulay said he uses both, but on the whole he finds Macs "a little" more secure.

The hacking duo are firm believers in responsible disclosure: i.e., taking bugs to a software vendor before going public with them.

"We're trying to make computing more secure for everyone," Dai Zovi said. "Responsible disclosure is the best way to do that."

He said that he's found Apple "very responsive" to bug reports.

"Basically they reply within the day," he said. "The one thing they've tried to do, once they've fully investigated the issue is they'll let you know they're patching it now. Their stance is to take information, work with you to identify the cause, and converge it into the development process."

As for what he'll do with the $10,000 cash prize, Dai Zovi said he's thinking of buying a MacPro.

"I think Apple will get a large chunk of that money," he said. "It makes sense for them to fund themselves."

Depending on configuration, a MacPro can cost from $3,000 up to around $8,000. The balance of the funds will go toward drinks with friends, he said—what will constitute "ample celebrating" before he manages to get some sleep tonight.

"This was a great, fun exercise," he said. "I hope people are generally rational about these things. Vulnerabilities: You have them."

Create, Communicate, Collaborate with IT Professionals at Ziff Davis Enterprise IT Link

TrackBack

TrackBack

http://securitywatch.eweek.com/cgi-bin/mte/mt-tb.cgi/10819

Comments (5)

Hopefully this will clear up alot of lies & fact-spinning on the subjest of Mac's security. The fact that security exploits happen to ALL software (even Macs) is just a fact of life.

Lately, Mac's supporters have been unusually active in boasting that they CAN'T be hacked, which will only bring more published attacks on Apple products as a whole.

Firefox tried to take this stance at one time, boasting that they don't need updates, they can't be hacked, etc., etc. and shortly after, they had many exploits published and then came the updates and then the performance (speed) of the browser dropped.

At least the Mac attackers at the CanSecWest security conference admitted that Apple puts out monthly patches, which is mostly denied by the Mac users posting in the forums & blogs.

I have long said that all software can be hacked...including Apple's wares. This should be a moot point by now, but the Mac community spends a fair bit of time promoting & selling Macs by using these very lies.

If you want a Mac...buy a Mac, and if you want windows...buy windows. Either way, you will need regular updates, virus & firewall software, malware protection, along with concerns for bogus websites, internet exploits and malicious content via email.

THE TRUTH SHALL PREVAIL!

J. M. :

http://secunia.com/advisories/25011/

"A vulnerability has been reported in Apple QuickTime, which can be exploited by malicious people to compromise a user's system.

The vulnerability is caused due to an unspecified error within the Java handling in QuickTime. This can be exploited to execute arbitrary code when a user visits a malicious web site using a Java-enabled browser e.g. Safari or Firefox."

Also, other news has been updated to say that Windows is also affected.

This is not really a Mac exploit solely, anyone with Quicktime installed and Java enabled is at risk.

- Jordan

Dan :

Micaman: What are you on about? Show me posts where people have said that Apple products don't have vulnerabilities, and I'll be glad to join in on the "you're a moron" rants you are probably on.

The fact is, Apple vulnerabilities get fixed more efficiently.

For reference:

Windows XP: http://secunia.com/product/22/?task=advisories - Unpatched 16% (30 of 183 Secunia advisories) - The most severe unpatched Secunia advisory affecting Microsoft Windows XP Professional, with all vendor patches applied, is rated Highly critical

Mac OS X: http://secunia.com/product/96/?task=advisories - Unpatched 5% (5 of 101 Secunia advisories) - The most severe unpatched Secunia advisory affecting Apple Macintosh OS X, with all vendor patches applied, is rated Less critical

I'm not saying that Apple is invincible, just that it fixes what it knows about.

ITTommy :

Dan:

How about the Mac commercial where the guy supposed to be a PC falls over from a virus and the guy who is supposed to be a Mac states that he cant get a virus.

Dan: Check out the C-net Forums and you will see endless Mac-Fans saying this very fact. They say stuff like Mac does not put out monthly patches...Mac's do not need regular maintenance...Mac's do not need Malware tools...etc.

FYI, I do not join in on any "your a moron" rants, nor do I think people are morons...just mis-lead by stupid commercials and "Mac-antics" that ultimately will HURT APPLE. When consumers go out and buy a Mac and run it without security measures in place and quit performing regular updates...they WILL HAVE BIG PROBLEMS!

Again, let me say...THIS IS NOT A WINDOWS or MAC issue...it is a software issue...period! Software can be hacked, and it will - EVEN the Mac.

I believe in promoting the truth and nothing but the truth...regardless of the subject.

Post a Comment

 
 


RSS Syndication
Advertisement
Advertisement
Security Watch     Contact Us | Advertise | Site Map
Ziff Davis Enterprise

Ziff Davis Enterprise Home | Contact Us | Advertise | Link to Us | Reprints | Magazine Subscriptions | Newsletters
RSS Feeds | White Papers | ROI Calculators | Tech Podcasts | Tech Video |

Baseline | Careers | Channel Insider | CIO Insight | DesktopLinux | DeviceForge | DevSource | eSeminars |
eWEEK | LinuxDevices | Linux Watch | Microsoft Watch | Mid-market | Networking | PDF Zone |
Publish | eWeek Security | Strategic Partner | Web Buyer's Guide | Windows for Devices

Developer Shed | Dev Shed | ASP Free | Dev Articles | Dev Hardware | SEO Chat | Tutorialized | Scripts |
Code Walkers | Web Hosters | Dev Mechanic | Dev Archives | IT Marketplace | igrep

Use of this site is governed by our Terms of Use and Privacy Policy

Copyright ©1996-2007 Ziff Davis Enterprise, Inc. All Rights Reserved. Security Watch is a trademark of Ziff Davis Enterprise, Inc. Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise Inc. is prohibited.

Ziff Davis Enterprise