Charles Miller is no stranger to Apple and its products.
In July, Miller and his colleagues at Independent Security Evaluators discovered the Mac OS. "Macs," he said, "are as easy to hack as they are to use.". They then worked with the Cupertino vendor to release a patch for the iPhone the day before the start of the annual Black Hat Briefings in Las Vegas earlier this month. But all that goodwill didn't stop Miller from talking about pending problems lurking deep within the
During a 20-minute talk at the conference, "Hacking Leopard: Tools and techniques for attacking the newest Mac OS X," Miller said that for some reason the Mac OS has over 50-plus suid root programs. Suid stands for "set user ID" and is used to temporarily elevate privileges to perform a specific task such as running executables. For example, Miller cited Locum, NetCfgTool and TimeZoneSettingTool." Given the root access provided by these tools, they provide at least one vector for attack.
Another vector is Safari, the browser from Apple. Safari, when opened, also opens several applications, including Address Book, Finder, iChat, Script Editor, iTunes, Dictionary, Help Viewer, iCal, Keynote, Mail, iPhoto, QuickTime Player, Sherlock, Terminal, BOMArchiveHelper, Preview and DiskImageMounter. A flaw in any one of these could be easily exploited over the Web. That's because Apple's operating system doesn't randomize the location of the stack, the heap, the binary image or the dynamic libraries, meaning an attacker would know where in memory these applications are loaded on almost every machine running Mac OS X.
Open source is yet another vector for new attacks on Apple Macs. Miller said that on July 31--but for the first time in two and half years, and the latest version still fell short of the current open-source version. To prove his point, he presented a slide showing the recent versions available in Mac OS X 10.4.10 and the latest open-source version of the same program.
|  ||Mac OS X||Open Source|
Miller said his formula for finding a zero-day flaw on a Mac is this: "Find an open-source package that they use that's out of date--there's, like I said, plenty of those." He then suggested reading through the change log for the current version of any of the above open-source software to find a useable bug that's been fixed in the newer version but still vulnerable to Mac OS X users. Miller said by doing this, "you won't have to worry about static analysis or fuzzing or any of that stuff."
Several attempts to contact Apple for comment on this story went unanswered.