• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cocoa can be used to execute arbitrary (privileged) code !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa can be used to execute arbitrary (privileged) code !


  • Subject: Re: Cocoa can be used to execute arbitrary (privileged) code !
  • From: Andrew Farmer <email@hidden>
  • Date: Thu, 19 Jun 2008 18:40:08 -0700

On 19 Jun 08, at 07:22, Jerry LeVan wrote:
Last night while browsing Slashdot I found this:

http://it.slashdot.org/it/08/06/18/1919224.shtml

It gives a simple command that can be used to
basically execute code as root.

osascript -e 'tell app "ARDAgent" to do shell script "whoami"'

The above will print "root" and replacing "whoami" will other
commands will cause the commands to be executed as root.

Looks like a job for NSTask...

Don't - seriously, just don't. This is a bug (and a rather serious one, too) - using it as an alternative to Authentication just means that your code will stop working on the next security update.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa can be used to execute arbitrary (privileged) code !
      • From: Jens Alfke <email@hidden>
References: 
 >Cocoa can be used to execute arbitrary (privileged) code ! (From: Jerry LeVan <email@hidden>)

  • Prev by Date: Re: Add item to NSSavePanel sidebar
  • Next by Date: Re: NSReponder chain and controllers
  • Previous by thread: Re: Cocoa can be used to execute arbitrary (privileged) code !
  • Next by thread: Re: Cocoa can be used to execute arbitrary (privileged) code !
  • Index(es):
    • Date
    • Thread