On TV.com: Why Is Everyone in TV High School SO OLD
BNET Business Network:
BNET
TechRepublic
ZDNet

June 19th, 2008

Local root escalation vulnerability in Mac OS X 10.4 and 10.5 discovered

Posted by Dancho Danchev @ 2:15 pm

Categories: Apple, Black Hat, Hackers, Responsible disclosure, Vulnerability research

Tags: Security, Hacking, Mac OS X, ARDAgent, Apple Remote Desktop Agent, Leopard, Tiger, Local Root Escalation, Dancho Danchev

Yesterday, an anonymous reader released details on a local root escalation vulnerability in Mac OS x 10.4 and 10.5, whichLocal root escalation vulnerability in Mac OS X works by running a local AppleScript that would set the user ID to root through ARDAgent’s default setuid root state. Here’s how it’s done :

“Half the Mac OS X boxes in the world (confirmed on Mac OS X 10.4 Tiger and 10.5 Leopard) can be rooted through AppleScript: osascript -e ‘tell app “ARDAgent” to do shell script “whoami”‘; Works for normal users and admins, provided the normal user wasn’t switched to via fast user switching. Secure? I think not.”

Find out how to fix it.

You’ve got several possible workarounds, you can remove the Apple Remote Desktop located in /System/Library/CoreServices/RemoteManagement/, or you can go through the visual Workaround for the ARDAgent ’setuid root’ problem.

Moreover, the AppleInsider speculates on the potential for abuse :

The effects of malicious code run as root may range from deleting all the files on the Mac to more pernicious attacks such as changing system settings, and even setting up periodic tasks to perform them repeatedly. Not all Macs are vulnerable, however. If a user has turned on Remote Management in the Sharing pane of System Preferences under Mac OS X 10.5, or if a user has installed Apple Remote Desktop client under Mac OS X 10.4 or earlier and has activated this setting in the Sharing preferences, the exploit will not function. Mac OS X 10.5’s Screen Sharing function has no effect on this vulnerability.

And even though the vulnerability can also be executed via a remote connection under specific circumstances based on the configuration, physical security to prevent the unauthorized local access is as applicable as it’s always been.

Dancho DanchevDancho Danchev is an independent security consultant and cyber threats analyst, with extensive experience in open source intelligence gathering, malware and cybercrime incident response. He's been an active security blogger since 2007, and maintains a popular security blog. See his full profile and disclosure of his industry affiliations.

Email Dancho Danchev

Subscribe to Zero Day via Email alerts or RSS.

  • Talkback
  • Most Recent of 16 Talkback(s)
RE: Local root escalation vulnerability in Mac OS X 10.4 and 10.5 discovere
It's been a while since anyone with half brain tried to
(seriously) claim that Apple's OS or related software was
"bug free". Or even (possibly) exploit free. Fact is, neither
is true. Ye... (Read the rest)
Posted by: dlmeyer@... Posted on: 06/23/08 You are currently: a Guest | | Terms of Use
Surprise surprise  voska1 | 06/19/08
RE: Local root escalation vulnerability in Mac OS X 10.4 and 10.5 discovered  exxtraz | 06/19/08
I'm surprised  frgough | 06/19/08
The problem is not with Applescript but rather...  ye | 06/19/08
There is a better solution  NonZealot | 06/19/08
The Mac is riddled with code flaws  progon | 06/19/08
Huh?  cabdriverjim | 06/19/08
And before someone says...  cabdriverjim | 06/19/08
Well not sure what you want to call it...  mrOSX | 06/20/08
Finally  Mectron | 06/19/08
really?  russguill | 06/20/08
right...  poeticg33k | 06/20/08
not ALL security vulnerability posts are about windows!!!  jjarman | 06/20/08
Market Share  rkuhn040172@... | 06/20/08
Not Surprised, Still Impressed  jjarman | 06/20/08
RE: Local root escalation vulnerability in Mac OS X 10.4 and 10.5 discovere  dlmeyer@... | 06/23/08

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement

Recent Entries

advertisement

Archives

Favorite Links

ZDNet Blogs

White Papers, Webcasts, and Downloads

SmartPlanet

  • Thought-provoking progressive ideas on diverse topics that intersect with technology, business, and life, and matter to the world at large. Visit SmartPlanet
  • More from IBM
  • Innovate your business' process model, play against the market, compete against others on our scoreboards and WIN! Try INNOV8 2.0: A BPM Simulator
  • Enabling Real-World Business Transformation through IBM Service Management Read the EMA Analyst Report
Click Here