On TV.com: BEST and WORST New Fall Shows
BNET Business Network:
BNET
TechRepublic
ZDNet

July 18th, 2007

Mac worm rumors swirl; Dai Zovi ships unofficial Mac OS X patch

Posted by Ryan Naraine @ 3:11 pm

Categories: Apple, Botnets, Browsers, Data theft, Exploit code, Firefox, Google, Metasploit, Microsoft, Open source, Passwords, Patch Watch, Pen testing, Punditocracy, Rootkits, Spam and Phishing, Spyware and Adware, Vulnerability research, Wi-Fi security, Zero-day attacks

Tags: Apple Mac OS, Apple Macintosh, Vulnerability, Apple Mac OS X, Worm, Patch, Ryan Naraine

Amidst unconfirmed rumors that anonymous hackers have created a worm that exploits an unpatched code execution flaw in Mac OS X (Intel), a team of researchers have come up with a way to completely disable a buggy portion of the Mac code base.

Led by Mac security guru Dino Dai Zovi (of CanSecWest MacBook hijack fame), the researchers have created a third-party patch that removes the uPNP code from within mDNSResponder, the Bonjour system service that implements Multicast DNS Service Discovery for discovery of services on the local network.

Davi Zovi worked with his former employers at Matasano Security on the patch after looking at the worm claim and the recent mDNSResponder patch (and Bonjour exploit) affecting that portion of the Mac OS X code.

[ SEE: Ten questions for MacBook hacker Dina Dai Zovi ]

“If I were to guess about the vulnerability linked to the worm claim, I’d say it’s in uPNP. I won’t be surprised if there are others looking hard at that piece of code to find holes,” Dai Zovi said in a telephone interview.

The patch, which is buyer-beware (and unsupported), does not fix a specific vulnerability. Instead, it removes the LegacyNATTraversal code from mDNSResponder. Hackers consider mDNSResponder the primary client -> server attack surface on Mac OS X.

Matasano president Dave Goldsmith, a former @Stake researcher who has found/reported numerous Mac OS X vulnerabilities over the years, said that portion of the code contains lots of unbounded memory copies and a history of overflows and memory smashing bugs.

“This patch will hopefully prevent a certain code path from getting executed. No one knows for sure if there’s a vulnerability there but we think this (patch) could potentially stop some bad code from getting called,” Goldsmith said by telephone.

“The LegacyNATTraversal code is 1994-style C code,” Goldsmith said. “[There are known bad programming practices lurking in that particular file.”

On Matasano’s blog, Goldsmith warns that the patch is buyer-beware.

Standard disclaimers about this patch apply (including: may do nothing, may protection you form current/future vulns, may cause mDNSresponder to not work, may break support contracts). Also, this patch is unsupported, which is why I didn’t give step by step instructions on how to apply it.

In any event, Dai Zovi said the patch isn’t for non-technical Mac users. “There’s an opportunity for someone to make it more user-friendly but, right now, it’s not something the average user can use,” he said.

His advice to Apple: Rewrite the entire uPNP code base.

“It’s a feature that’s there for a reason but that entire bit of code needs to be rewritten. There are too many (potential) dangers there,” he added.

Ryan NaraineRyan Naraine is a journalist and security evangelist at Kaspersky Lab. He manages Threatpost.com, a security news portal. Here is Ryan's full profile and disclosure of his industry affiliations.


Email Ryan Naraine

For daily updates on Ryan's activities, follow him on Twitter.

Subscribe to Zero Day via Email alerts or RSS.

  • Talkback
  • Most Recent of 41 Talkback(s)
There are many things
Not in your nature. happy (Read the rest)
Posted by: xuniL_z Posted on: 07/23/07 You are currently: a Guest | | Terms of Use
This flaw means nothing to me .  Non_Zealot | 07/18/07
Means nothing to me either  tonymcs@... | 07/18/07
Like usual you are an idiot .  Non_Zealot | 07/18/07
Typical fruit...  fr0thy2. | 07/19/07
At least a "fruit" has worth  MacCanuck | 07/19/07
I take that...  Spiritusindomit@... | 07/19/07
actually  Badgered | 07/19/07
Wow!!! Think much of yourself?  MacCanuck | 07/19/07
who is sensitive?  xuniL_z | 07/19/07
Every time I see you do this  xuniL_z | 07/19/07
re:Means nothing to me either  Non_Zealot | 07/18/07
Ohhh good one!  Badgered | 07/19/07
At least the fix is available .  Intellihence | 07/18/07
Wow. You know how to roll out a list  YinToYourYang-22527499 | 07/18/07
Once again you show your child side...  fr0thy2. | 07/19/07
Correct sociological analysis sir.  Tigertank | 07/19/07
I demand a re-count!!!!  Laff | 07/19/07
moron  Spiritusindomit@... | 07/19/07
Idiot == you  Imaginos1892 | 07/19/07
Why I love these TalkBacks...  Freebird54 | 07/20/07
Thank you Zovi  YinToYourYang-22527499 | 07/18/07
Funny..We have an Unofficial Patch to a none varified claim of a WORM:)  Laff | 07/19/07
Indeed. Seems a bit silly doesn't it?  Badgered | 07/19/07
This isn't a 'patch' in the strictest sense  Ryan NaraineZDNet Moderator | 07/19/07
Well as my original post points out "stricktest sense"  Laff | 07/19/07
WAKE UP!!!  justanitguy | 07/19/07
and...  Spiritusindomit@... | 07/19/07
I don't know about you butt I don't get embarrassed:)  Laff | 07/19/07
There are many things  xuniL_z | 07/23/07
Please .. get a life!  blackRiver | 07/19/07
Read deeper into the story  BroGnorik | 07/19/07
Interesting...  fr0thy2. | 07/19/07
Even more to the point  Freebird54 | 07/20/07
Windows bugs.  BroGnorik | 07/19/07
Meow  Spiritusindomit@... | 07/19/07
Somebody is bored  MacGeek2121 | 07/19/07
Why must the alternative be a commercial offering?  NonZealot | 07/19/07
Wrong  vmaatta | 07/20/07
Maybe..  slam5 | 07/20/07
re: Wrong  joe6pack_z | 07/21/07
What a bunch of crap  JoeBob_z | 07/20/07

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement

Recent Entries

advertisement

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

Enterprise Applications

  • Check out some of the easiest and most powerful ways to boost productivity while saving money on your application infrastructure. See ZDNet's comprehensive Enterprise Application resource center, now!
  • New Online Dashboard
  • Read about top issues IT decision-makers face every day, plus get cost effective solutions to real life IT problems. Oracle Topline