OS X Vulnerability Can Allow Superuser Access to Unauthorized Users - MacRumors
Skip to Content

OS X Vulnerability Can Allow Superuser Access to Unauthorized Users

FilevaultUsers looking to exploit a vulnerability in the Sudo Unix command, originally reported back in March, have received some assistance, reports Ars Technica.

The developers of Metasploit, software that makes it easier to misuse vulnerabilities in operating systems and applications, have added the Sudo vulnerability to their software suite. All versions of OS X from OS X Lion 10.7 through the current Mountain Lion 10.8.4 remain vulnerable.

Mac users should realize that an attacker must satisfy a variety of conditions before being able to exploit this vulnerability. For one, the end-user who is logged in must already have administrator privileges. And for another, the user must have successfully run sudo at least once in the past. And of course, the attacker must already have either physical or remote shell access to the target machine. In other words: this exploit can't be used in the kind of drive-by webpage attacks that last year infected some 650,000 Macs with the Flashback malware. This doesn't mean it's a non-issue though, since the exploit can be used in concert with other attacks to magnify the damage they can do.

Most of the recent exploits in Mac OS X have been related to Java, which Apple completely blocked earlier this year over security vulnerabilities, though Apple did release a standalone malware removal tool to help clean machines that were affected by a number of Java vulnerabilities.

OS X has been targeted more in recent years as it has gained in popularity. The Janicab.A malware was discovered last month, while another program called macs.app was discovered in May. That app captured and stored screenshots.

Popular Stories

apple pro tell logo

Apple Launching Two More New Products This Friday

Monday November 9, 2026 4:22 am PST by
The Apple launches keep coming! The company is set to release two new products on Friday, November 13: the all-new Apple HomeView and the fourth-generation Apple TV 4K, both of which have been available to pre-order since mid-October. Apple HomeView: Apple's new smart home display, powered by Apple Intelligence with Siri AI, for entertainment and managing the home. Available in tabletop and...
imac video apple feature

November 20 to Mark the End of an Era at Apple

Wednesday November 11, 2026 7:51 am PST by
Apple has announced that the long-running Apple Support Community discussion forums for user-to-user tech support will be permanently closing on Friday, November 20. The forums have existed in some form for nearly 30 years, so it is the end of an era. Effectively immediately, the Apple Support Community forums are in a read-only state, with new posts no longer being accepted. The final...
iOS 28 AI

Apple Taking New Approach to Developing iOS 28 and macOS 28

Sunday November 8, 2026 7:42 am PST by
Apple has made a change to its development process for iOS 28, macOS 28, and corresponding software updates, according to Bloomberg's Mark Gurman. In his Power On newsletter today, he said Apple separates development of each year's new operating systems into three major stages. Typically, he said each stage consists of four weeks of coding followed by a four-week "convergence" period where...

Top Rated Comments

172 months ago
Since this is a "flaw" (to the extent it has been described) in sudo, it's not Mac-specific. Other flavors of UNIX are also affected. But it's more fun and gets more hits and attention when you call it an "OS X Vulnerability", as if it's Apple's mistake or fault and not due to an issue (if that's what it is) in one of several hundred non-Apple projects (http://www.sudo.ws).
Score: 10 Votes (Like | Disagree)
sjinsjca Avatar
172 months ago
"I'm not too sure why a user who already has admin access would bother using an exploit to gain admin privilege - an access level he already has.

Admin != root
Score: 8 Votes (Like | Disagree)
172 months ago
I'm not too sure why a user who already has admin access would bother using an exploit to gain admin privilege - an access level he already has.
Admin and root are two different levels of access. You can do some things with root that you cannot do with admin. Root is the deepest access one can have - but it's not really the goal of most hackers. An administrator account is probably the most that an attacker really needs since they can pretty much do anything they need with that account.

So an exploit that needs admin rights access and one that rehires you to have used sudo isn't one that is high priority. The number of users that run sudo at all is really small, and from a security standpoint, if you have admin rights, all security goes out the window. In other words, you don't have security.
Score: 8 Votes (Like | Disagree)
mikethebigo Avatar
172 months ago
Sudo make me a sandwich.
Score: 6 Votes (Like | Disagree)
172 months ago
You don't need to run metasploit to exploit this bug.

The following command should give you root if you are logged in to OS X as an Administrator and have used the "sudo" command at least once in the past. It will also set your system clock to 01/01/1970.

sudo -k
systemsetup -setusingnetworktime Off -settimezone GMT -setdate 01:01:1970 -settime 00:00
sudo su

To set your system clock back to normal, go into the System Preferences and set the time and time zone back to the way it was.

To prevent somebody from abusing this attack, you will need to run the following command after every time you use the sudo command, until it gets patched.
sudo -K
Score: 6 Votes (Like | Disagree)
Dalton63841 Avatar
172 months ago
"For one, the end-user who is logged in must already have administrator privileges. And for another, the user must have successfully run sudo at least once in the past."

I'm not too sure why a user who already has admin access would bother using an exploit to gain admin privilege - an access level he already has.
What it is saying is that if an attacker already has access to your machine, AND you are on an administrator account, AND you have opened Terminal and used sudo, THEN they could maybe gain root access to your account.
Score: 6 Votes (Like | Disagree)
Latest Stories
Apple on Fatal Vehicle Crash Near Apple Park: 'Our Hearts Are Broken'
Apple on Fatal Vehicle Crash Near Apple Park: 'Our Hearts Are Broken'
3 hours ago
Apple Invites App Updated With Two New Features
Apple Invites App Updated With Two New Features
3 hours ago
Google Says Gemini App Rolling Out on Apple CarPlay Starting Today
Google Says Gemini App Rolling Out on Apple CarPlay Starting Today
4 hours ago
Is It Worth Buying a Ceramic Apple Watch?
Is It Worth Buying a Ceramic Apple Watch?
7 hours ago
Samsung Early Black Friday Event Brings Major Sales to Frame TVs and More
Samsung Early Black Friday Event Brings Major Sales to Frame TVs and More
9 hours ago
iPhone 18 Pro Max Wins Battery Test Involving 32 Smartphones
iPhone 18 Pro Max Wins Battery Test Involving 32 Smartphones
9 hours ago
AirTag 2 4-Pack Hits Record Low $69.99 Price Ahead of Black Friday
AirTag 2 4-Pack Hits Record Low $69.99 Price Ahead of Black Friday
10 hours ago
Rumored Apple Smart Glasses Mentioned in Supplier's Earnings Briefing
Rumored Apple Smart Glasses Mentioned in Supplier's Earnings Briefing
10 hours ago
Make Apple Watch Listen for Sounds Like the Doorbell
Make Apple Watch Listen for Sounds Like the Doorbell
14 hours ago
Apple Chip Supplier TSMC Approves $1 Billion AI Investment
Apple Chip Supplier TSMC Approves $1 Billion AI Investment
14 hours ago
'Apple Support Community' Permanently Closing on November 20
'Apple Support Community' Permanently Closing on November 20
20 hours ago
Apple's Holiday Gift Guide Highlights iPhone Duo and More
Apple's Holiday Gift Guide Highlights iPhone Duo and More
23 hours ago
Three Workers Die at Tata iPhone Parts Plant in India
Three Workers Die at Tata iPhone Parts Plant in India
23 hours ago
iCloud Mail, Calendar, Contacts and More Experiencing Outage [Updated]
iCloud Mail, Calendar, Contacts and More Experiencing Outage [Updated]
1 day ago
Apple's Claris Testing 'Harbor' App for Local AI on Macs
Apple's Claris Testing 'Harbor' App for Local AI on Macs
1 day ago
iFixit's PROLED MacBook Pro Teardown Reveals Logo LEDs
iFixit's PROLED MacBook Pro Teardown Reveals Logo LEDs
1 day ago
10 Free iPhone Duo Apps Worth Downloading
10 Free iPhone Duo Apps Worth Downloading
1 day ago
Apple Releases New AirPods Firmware
Apple Releases New AirPods Firmware
1 day ago
Amazon Begins Early Black Friday Sale, Featuring Sitewide Discounts on Tech and Decor
Amazon Begins Early Black Friday Sale, Featuring Sitewide Discounts on Tech and Decor
1 day ago
Apple Announces Swift Student Challenge Ahead of WWDC 2027
Apple Announces Swift Student Challenge Ahead of WWDC 2027
1 day ago
Next iPad Air Likely to Have These 10 New Features
Next iPad Air Likely to Have These 10 New Features
1 day ago
iPad Mini 2021 vs. 2026 Buyer's Guide: Is It Worth Upgrading?
iPad Mini 2021 vs. 2026 Buyer's Guide: Is It Worth Upgrading?
1 day ago
New Apple TV Sign Language Feature Announced
New Apple TV Sign Language Feature Announced
1 day ago
Disable Touch on MacBook Pro PROLED XDR and When Using Sidecar
Disable Touch on MacBook Pro PROLED XDR and When Using Sidecar
1 day ago
Anker's Early Black Friday Sale Surprises With Mystery Boxes and Big Discounts
Anker's Early Black Friday Sale Surprises With Mystery Boxes and Big Discounts
1 day ago
Apple Arcade Adding These Four Games in December
Apple Arcade Adding These Four Games in December
1 day ago
OLED iPad Air Rumored to Launch in Two Sizes in Early 2027
OLED iPad Air Rumored to Launch in Two Sizes in Early 2027
1 day ago
The Original iPod Went on Sale 25 Years Ago Today
The Original iPod Went on Sale 25 Years Ago Today
1 day ago
Apple Maps Could Factor Parking Into Your Arrival Time
Apple Maps Could Factor Parking Into Your Arrival Time
2 days ago
Waze Now Alerts Drivers to Nearby Cyclists Using Garmin LiveTrack
Waze Now Alerts Drivers to Nearby Cyclists Using Garmin LiveTrack
2 days ago