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 Five New Products Today

Thursday November 5, 2026 12:59 am PST by
Apple is launching five new products on Friday, November 6, following pre-orders that opened last week, including its first touchscreen MacBook Pro models. The following new products will be available from today: iPad mini with OLED display and A20 Pro chip iMac with M6 chip 14-inch MacBook Pro with M6 chip 14-inch MacBook Pro with OLED touchscreen 16-inch MacBook Pro with OLED...
Apple Store Logo

Apple Store in UK Permanently Closing Later This Month

Tuesday November 3, 2026 7:34 am PST by
Apple today announced that its Festival Place store in Basingstoke, England will be permanently closing on Saturday, November 21. Apple Festival Place Apple had already announced that the store would be closing in November, but it had not provided the public with a specific date until now. Apple's store inside the Festival Place shopping center opened in 2011, so it had a 15-year run....
iPhone 18 Pro Burgundy Feature

MKBHD Switches Back to iPhone 18 Pro After Testing iPhone Duo

Tuesday November 3, 2026 5:10 am PST by
YouTuber Marques Brownlee has switched back to the iPhone 18 Pro after spending more than two weeks with the iPhone Duo. On the latest episode of the "Waveform" podcast, Brownlee said he missed the Pro's cameras and Face ID. He added that he would miss opening the iPhone Duo, using it in portrait, and reading on the larger screen. Despite strong initial demand for Apple's first foldable...

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
OLED iPad Mini, M6 iMac, and New MacBook Pros Available From Today
OLED iPad Mini, M6 iMac, and New MacBook Pros Available From Today
9 minutes ago
Apple Surveys iPhone Duo Buyers About Crease and Camera
Apple Surveys iPhone Duo Buyers About Crease and Camera
11 hours ago
Apple's First Touchscreen Mac is Now Arriving to Customers
Apple's First Touchscreen Mac is Now Arriving to Customers
12 hours ago
Claude Gets Personal Finance Feature With Bank Account Linking
Claude Gets Personal Finance Feature With Bank Account Linking
12 hours ago
Apple Arcade Adds Crossy Road Rush and NBA 2K27
Apple Arcade Adds Crossy Road Rush and NBA 2K27
13 hours ago
Apple's New HomeView Smart Home Hub: Here's How Much RAM It Has
Apple's New HomeView Smart Home Hub: Here's How Much RAM It Has
13 hours ago
iPad Mini vs. iPad Air Buyer's Guide: Now Just $50 Apart
iPad Mini vs. iPad Air Buyer's Guide: Now Just $50 Apart
14 hours ago
First iOS 27.3 and macOS Golden Gate 27.3 Public Betas Now Available
First iOS 27.3 and macOS Golden Gate 27.3 Public Betas Now Available
16 hours ago
Apple Announces a New Mac Sales Record
Apple Announces a New Mac Sales Record
17 hours ago
Paid $200 for Logic Pro? Apple Says You Won't Get This New Feature
Paid $200 for Logic Pro? Apple Says You Won't Get This New Feature
17 hours ago
Instagram's Edits Video Editor is Now Available on Mac
Instagram's Edits Video Editor is Now Available on Mac
17 hours ago
Prevent Siri and Search From Accessing Specific iPhone Apps
Prevent Siri and Search From Accessing Specific iPhone Apps
18 hours ago
Best Early Black Friday Deals on iPhone 18 Pro and iPhone Duo
Best Early Black Friday Deals on iPhone 18 Pro and iPhone Duo
19 hours ago
MacBook Pro PROLED XDR Reviews Are In: Is the Touchscreen Worth It?
MacBook Pro PROLED XDR Reviews Are In: Is the Touchscreen Worth It?
19 hours ago
Early Black Friday Accessory Deals at Amazon Include TVs, Headphones, and Charging Devices
Early Black Friday Accessory Deals at Amazon Include TVs, Headphones, and Charging Devices
20 hours ago
Apple Creator Studio App Updates Rolling Out, Starting With Logic Pro
Apple Creator Studio App Updates Rolling Out, Starting With Logic Pro
20 hours ago
Siri AI Waitlist Now Limited to Times of 'High Demand,' Says Apple
Siri AI Waitlist Now Limited to Times of 'High Demand,' Says Apple
22 hours ago
See Apple's Touchscreen MacBook Pro in Action
See Apple's Touchscreen MacBook Pro in Action
22 hours ago
MacBook Neo Shipments Expected to Double in 2027
MacBook Neo Shipments Expected to Double in 2027
23 hours ago
HomeView Code Suggests Future Support for AI Chatbot Apps, Anti-Spoofing Protection
HomeView Code Suggests Future Support for AI Chatbot Apps, Anti-Spoofing Protection
23 hours ago
Got an iPhone Duo on Launch Day? Today Could Be Your Last Chance to Return It
Got an iPhone Duo on Launch Day? Today Could Be Your Last Chance to Return It
2 hours ago
Apple Launching Five New Products Today
Apple Launching Five New Products Today
57 minutes ago
Apple Releases Safari Technology Preview 256 With Bug Fixes and Performance Improvements
Apple Releases Safari Technology Preview 256 With Bug Fixes and Performance Improvements
1 day ago
Apps Can Now Try to Stop You From Canceling Subscriptions
Apps Can Now Try to Stop You From Canceling Subscriptions
1 day ago
'Super Mario Odyssey' Can Now Run on Apple TV Thanks to AI
'Super Mario Odyssey' Can Now Run on Apple TV Thanks to AI
2 days ago
How 'Resident Evil' Director Zach Cregger Uses His iPhone to Make Movies
How 'Resident Evil' Director Zach Cregger Uses His iPhone to Make Movies
2 days ago
HomePod Mini 2's Amount of RAM Confirmed
HomePod Mini 2's Amount of RAM Confirmed
2 days ago
Apple TV's '12 Days of Snoopy' Special Arrives November 13
Apple TV's '12 Days of Snoopy' Special Arrives November 13
2 days ago
Apple is Putting Employees on an AI Budget
Apple is Putting Employees on an AI Budget
2 days ago
Apple Releases Xcode 27.3 Beta With Three New Features
Apple Releases Xcode 27.3 Beta With Three New Features
2 days ago