Slashdot Mirror


Screensaver Bug in Mac OS X

dave1212 writes "Still too early to tell, but there seems to be a screen saver password exploit in Mac OS X. It was discovered and postedon the Full Disclosure list earlier today. Theories, personal tests, and rumours abound, with some success stories, and the possibility that it could affect all Cocoa programs. Speculation points toward a 2048 character buffer, with people using the emacs shortcuts Ctrl-K and Ctrl-Y to fill the text field in under half a minute."

113 of 452 comments (clear)

  1. Why... by Anonymous Coward · · Score: 5, Insightful

    Is it always buffer overflows? :/

    1. Re:Why... by gnurb · · Score: 3, Informative

      write your own buffer overflow exploit

      --
      hooray! it's a sex wiki
    2. Re:Why... by Dirus · · Score: 3, Informative
      Is it always buffer overflows? :/

      No, IIRC the last story on slashdot about a vulnerablity was this one. The exploit it mentioned was an integer underflow vulnerablity.

      This message has been doubly encrypted with rot13 for enhanced security.

    3. Re:Why... by Waffle+Iron · · Score: 4, Funny
      Is it always buffer overflows? :/

      Because extensive user testing has shown that some people can type their passwords so fast that even a GHz-class RISC processor can't keep up unless the password capture program is written in C. The system can fall behind if it takes more than a handful opcodes per character in the inner loop. Unfortunately, these performance constraints preclude checking array bounds between each typed character.

      It's regrettable that we have to live with risks like these, but we have little choice when dealing with data input at these kinds of speeds.

    4. Re:Why... by Alsee · · Score: 4, Funny

      a GHz-class RISC processor can't keep up unless the password capture program is written in C.

      How the hell did you get it to work in C? I had to hand roll the code in assembler and optimize the register allocations. You can also save a byte and a cycle on the loop if you take the branch-prediction microcode into account.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    5. Re:Why... by Anonymous Coward · · Score: 2, Funny

      Yep. Seconf only to typos that make you look like an idiot.

    6. Re:Why... by LittleBigLui · · Score: 3, Funny

      you can't imagine how much the resource usage can be optimized by constraining the password to 4 letters max, only caps, and only letters from A to D, no numbers or other symbols. By imposing those limits on the passwords you could implement range-checking and avoid any and all buffer overflows, hence making the system WAY MORE SECURE!

      --
      Free as in mason.
    7. Re:Why... by kasperd · · Score: 2, Informative

      Is it always buffer overflows?

      Because it is easy to introduce such bugs in your program. And they are often easy to exploit. It has been claimed (I haven't seen any statistics though) that 50% of all security problems are buffer overflows. I think that next to buffer overflows, the most frequent class of security problems are caused by race conditions.

      --

      Do you care about the security of your wireless mouse?
  2. Hey! I'm famous. by DarkAurora · · Score: 5, Informative

    I was the one that posted about the address bar in Safari. I am using 10.2.6. This is a problem for ALL cocoa apps.

    It'll probably be trivial for Apple to fix, though. So I'm just waiting for the patch to arrive.

    *taps finger on desk*

    1. Re:Hey! I'm famous. by CoolVibe · · Score: 2, Interesting
      And, when, pray tell, are they going to fix this?

      [loki:~] coolvibe% setenv EDITOR %p
      [loki:~] coolvibe% chsh
      chsh: 0x1: No such file or directory
      chsh: /etc/master.passwd: unchanged
      [loki:~] coolvibe% uname -a
      Darwin loki.ipv6.hackerheaven.org 6.6 Darwin Kernel Version 6.6: Thu May 1 21:48:54 PDT 2003; root:xnu/xnu-344.34.obj~1/RELEASE_PPC Power Macintosh powerpc

      Hmm? Smells like a formatting bug

    2. Re:Hey! I'm famous. by joeykiller · · Score: 5, Insightful

      Well, perhaps you would be patching your machine if OS X were open source, but let's face it: 99,9% of Linux users never patches their OS manually (i.e. edit source code and recompile). They're waiting for binary upgrades trough something like RedHat's update program.

      So in that respect I don't think the vast majority of OS X users are worse off then most Linux users.

    3. Re:Hey! I'm famous. by Lev13than · · Score: 5, Funny

      If OS X was truly open source, we'd probably be patching our machines right now, instead of impotently discussing this on slashdot.

      True, except you wouldn't be able to run Fink to download the screensaver patch until you figure out why your computer crashes every time you type with your hardware-hacked keyboard. You suspect that it's because your version of OpenAqua is creating conflicts with GND (GND's Not Darwin), but you can't go online to check because the web forum doesn't support OnSafari 0.1.2.33a.

      --
      When you have nothing left to burn you must set yourself on fire
    4. Re:Hey! I'm famous. by alienw · · Score: 2, Insightful

      Well, yes, but his point was that we would already have a patch available in binary form by now were it open-source. Since it isn't, we have to wait for Apple to cough up a patch when it feels like it.

    5. Re:Hey! I'm famous. by dwillden · · Score: 2, Funny
      Well, perhaps you would be patching your machine if OS X were open source, but let's face it: 99,9% of Linux users never patches their OS manually (i.e. edit source code and recompile).

      What????, You mean there are other ways to update my Linux distro, other than manually retyping every line of code each time there is an update?

      --
      I'm too lazy to compose a creative sig.
    6. Re:Hey! I'm famous. by Kashif+Shaikh · · Score: 2, Interesting


      99,9% of Linux users never patches their OS manually (i.e. edit source code and recompile)


      Because you run abc-2.2-9rh9.i386.rpm. A patch is available for abc-2.2-1, but it doesn't apply cleanly to abc-2.2-9rh9.src.rpm.

      Now you have two choices: download abc-2.2-1 original tarball, apply patch and recompile(thus tainting your 'prestine' rpm and possibly screwing dependencies). Or be like me and just wait for redhat to release an updated package.

      Now suppose you were adventurous and proceeded to download abc-2.2-1.tar.gz. Then it complains you don't have foo-devel headers. @#$ OK so you get foo-devel. Next thing you know the source tree is 100+ megs and compiling takes 5+ hours. If you're lucky and the package compiled, then "Welcome to the Next Level!" and pray you didn't break anything...

      [Insert your source-code adventure here]

  3. Finally, there's no objection! by HomerNet · · Score: 5, Funny

    A full, easily exploitable security hole in MacOS X. Now all those windoids will have no reason not to switch, as MacOS X now provides all the features of Windows, including a security hole.

    --
    I have no tag line
    1. Re:Finally, there's no objection! by Anonymous Coward · · Score: 3, Insightful

      You just dont get it.

      Mac OS X doesn't have a UNIX layer like Cygwin.

      It IS a true, blue UNIX.

      see, cygwin can be removed from windows, there is absolutely no way to remove the UNIX CORE from Mac OS X.

      Use it, and you'll see.

    2. Re:Finally, there's no objection! by GlassHeart · · Score: 5, Insightful
      Sounds like MacOSX can be called UNIX in a same way as Windows-95

      What are you talking about? A screensaver password vulnerability requires physical access to the machine. Most Unices will not protect against a malicious user with physical access, either.

      at least [Linux and NT] has a general design idea of what is a protection of user sessions.

      That's even more ridiculous. This is a bug, not something there by design.

    3. Re: Finally, there's no objection! by Black+Parrot · · Score: 3, Funny


      > A full, easily exploitable security hole in MacOS X. Now all those windoids will have no reason not to switch, as MacOS X now provides all the features of Windows, including a security hole.

      And think how much faster the exploits will run on a G5!

      --
      Sheesh, evil *and* a jerk. -- Jade
    4. Re:Finally, there's no objection! by Alsee · · Score: 4, Funny

      Now all those windoids will have no reason not to switch, as MacOS X now provides all the features of Windows, including a security hole.

      I'm sorry but you're going to have to provide support for more than a single security hole before you convince me to switch. Windows has a proven track record of reliable security holes in almost every portion of the system, everything from E-mail to wordprocessors to Plug-N-Play and more.

      -

      --
      - - You can't take something off the Internet! That's like trying to take pee out of a swimming pool.
    5. Re:Finally, there's no objection! by cscx · · Score: 4, Interesting

      Reminds me of that old local root exploit in SunOS where you could just hold down the enter key at the login: prompt and get root.

    6. Re:Finally, there's no objection! by chrome · · Score: 3, Informative

      I just tested it on my G4 17" running 10.2.6.

      Its verified.

      Setting a lock password, and starting the screensave, when I move the mouse the authentication dialog pops up. I type some 'a' characters, select the text with shift-left, ctl-k it then hold down ctl-y until the box stops scrolling.

      Hit enter.

      Screensaver crashes back to desktop, not typed my real password at all.

      I don't know why it didn't work for you, but you must have done it differently.

    7. Re:Finally, there's no objection! by fireman+sam · · Score: 5, Funny

      The real reason that Apple didn't go with Linux is because they had a conversation with RMS. The outcome of which would have resulted in the calling of the product GNU/Linux/OSX/Aqua. Apple just couldn't bring themselves to share the product name with any other company/entity.

      --
      it is only after a long journey that you know the strength of the horse.
    8. Re:Finally, there's no objection! by LittleBigLui · · Score: 3, Funny

      yeah, but you wouldn't call SunOS a UNIX. I mean, its name doesn't even end in an "x"!!

      --
      Free as in mason.
  4. Didn't work for me ... by wtmcgee · · Score: 4, Interesting

    using 10.2.6 - not saying it's not a real bug, just can't get it to crash my screen-saver.

    --
    *** For a better tommorow, change your life today ***
    1. Re:Didn't work for me ... by gnuadam · · Score: 2, Informative

      I didn't at first either, but did using the ctrl-a, ctrl-k, crtl-y method others have described.

      --
      You say :wq, I say ZZ. Why can't we all just get along?
  5. 5 Point Defacing to be lowered? by LaptopZZ · · Score: 2, Interesting

    Does this mean when all the script kiddies have their defacing party OSX will be worth less than 5 points?

    --
    -=LaptopZZ=-
  6. THe bug is bigger than the article lets on by fiftyvolts · · Score: 5, Informative

    First of all, the ctl-k ctl-y macros work in just about any Cocoa field. I pointed that out earlier on macslash. What I also pointed out was that this bug will crash just about every Cocoa app with a text field. I've crashed the login panel with it. It's not pretty. I really hope apple takes heed to this bug and fixes it at the core. Unfortunately the original bug report was.... well... not too elegantly written. We'll see what happens.

    In the meantime security savvy users should logout rather than trust the screen saver and use an Open Firmware password on their machine. That way you prevent people from logging in using single user mode. Hit command+O+F during boot to get into open firmware, then type in password. After that type reset-all. You should be good to go. And don't forget the password or you will be totally screwed!

    1. Re:THe bug is bigger than the article lets on by tbmaddux · · Score: 5, Insightful
      In the meantime security savvy users should logout rather than trust the screen saver and use an Open Firmware password on their machine... don't forget the password or you will be totally screwed!
      The open firmware password can still be circumvented with physical access to the machine. Change the amount of RAM and then zap PRAM 3 times and you're in. Or just yank the hard drive and go to work on it at your leisure. So 1) you won't be totally screwed, and 2) you can't count on it to protect you. If someone can get to your machine, they don't need the exploit described in the original article to compromise it (though it does make things convenient).
      --
      Can't you see that everyone is buying station wagons?
    2. Re:THe bug is bigger than the article lets on by Arker · · Score: 2, Insightful

      You can't secure a computer if the attacker can physically pick it up and cart it away for an extended period of time. That's a given.

      But the point is that taking reasonable precautions like this can make sure no one can get into your puter and ftp all your files off while you're in the bathroom.

      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-
      Friends don't let friends enable ecmascript.
  7. 2 words by amanpatelhotmail.com · · Score: 2, Insightful

    log out!

    1. Re:2 words by __aafkqj3628 · · Score: 2, Funny

      This can be disabled in OpenFirmware,

      Doesn't that mean that it can also be re-enabled in OpenFirmware But if they've got physical access to the machine, it's over pal.

      and the user will never suspect you were there, because everything is just as they left it.

      Until you change their background, trash their home directory and fill their dock with millions of useless files.

  8. Earlier Today.... by casings · · Score: 2, Funny

    Today meaning July 4th at 3:00 pm, this bug made its rounds on every major vulnerabilty database before slashdot even posted it... Why doesn't slashdot get its own vuln db? Or maybe a link to bugtraq: http://www.securityfocus.com/archive/1

    then we wouldn't have to get our vulnerabilty news a day late and a dollar short.

    1. Re:Earlier Today.... by Anonymous Coward · · Score: 2, Insightful

      Because /. is about bitching about problems, not fixing them. With it's own list, there'd be one less thing to bitch about.

  9. Wow. by Duncan3 · · Score: 2, Funny

    Wow, a bug, who would have guessed software has bugs, oh, the horror.

    It's only news becasue OS X doesn't have heaps of bugs like everything else.

    I'd paste the list of current problems with glibc, but I only have DSL and it would take too long.

    --
    - Adam L. Beberg - The Cosm Project - http://www.mithral.com/
    1. Re:Wow. by andreMA · · Score: 3, Informative

      New? The undated linked article appears describe a vulnerabilty that was promptly patched nearly a year ago.

  10. What, like this is the first security issue? by binaryDigit · · Score: 2, Insightful

    I don't see what the big deal with this is. It's not like Apple hasen't released other security patches to OSX. Or are we "forgiving" them for stuff that is found in the non Apple specific parts (e.g. sendmail), if so, why should we, they ship it, they charge for it, right? Anyone out there honestly believe that there aren't a whole host of other issues just waiting to be found?

  11. Still no evidence... by idiotnot · · Score: 4, Insightful

    ....that it's remotely exploitable.

    Any machine you can get physical access to is insecure.

    It shouldn't be that difficult to prove, though, if there's a cocoa-based network app where you could dump more than 2048 characters (Camino, perhaps?).

    1. Re:Still no evidence... by dadams · · Score: 2, Informative

      Camino doesn't use Cocoa text field widgets. Otherwise, it would have spellchecking built-in, wouldn't it?

      --
      --"In dreams begin responsibilities" - Delmore Schwartz
    2. Re:Still no evidence... by Sunnan · · Score: 4, Insightful

      I'm getting kinda tired of hearing "Pah! It wasn't a remote exploit, anyway..." followed by "Any machine you can get physical access to is insecure." as an excuse when there's a security hole. Sure, network exploits are worse but local exploits are still problems.

      As for "Any machine you can get physical with..", how about a machine with good security measures before and during the boot loading (to avoid stuff like bios/OF-tricks or the classic "passing /bin/sh to lilo"-trick) as well as encrypted filesystems to prevent someone just taking your disks and mount them in another computer?

      Or I dunno, maybe any machine you can get physical with is insecure. That won't make me take this bug any less seriously. The unfreeness of many prominent cocoa objects, including end-user-widget ones, does seem like quite a risk to me. Relying on a single source of fixes has never been a good idea.

  12. This is NOTHING by SeanTobin · · Score: 4, Interesting

    This is nothing to be upset about. Heck, windows users have had this feature since windows 95. 3-finger salute and end the screen saver task :)

    Security via screensavers should never be trusted. I'm not quite sure why its still being put in place. WindowsXP has a slightly better idea in that it will quick log you off if you ask it to... Of course gnome/kde stole that idea before MS was able to integrate it into XP/2k :)

    Now, if this can be used as a buffer overflow attack as stated in the second link, that can be a problem. Not so much that a local user will overflow thier own system and gain local root, but the fact that this is the same throughout multiple cocoa apps shows the possibility of one of those being remotely exploitable.

    Of course that's only for the 4 people running OSX as a server.

    --
    Karma: SELECT `karma` FROM `users` WHERE `userid`=138474;
  13. I've tried it before on the screensaver ... by locohijo · · Score: 2, Funny

    and was able to crashed it, dropping me into the desktop, now I've tried it too on the Log-in and was able to crash it, sending me into a full Darwin/BSD console, you'll have to login again for you to be able to access the console though ... but full screen console Mac ... this you've gotta see. w007!!!!

    1. Re:I've tried it before on the screensaver ... by TheMicrosoftH8r · · Score: 2, Informative

      try ">console" at the login panel. no password.

  14. Once again... no response from the company? by kylef · · Score: 2, Insightful
    here is the mail that i've sent to apple security people, they didn't replied :(

    I'm not trying to blast Apple in particular here or anything, but it seems that all companies have had a poor record lately responding to security holes pointed out by email users. Recall the Microsoft Passport security vulnerability.

    Granted, I would guess that the email volume these receive claiming discovery of new exploits is daunting, but doesn't this deserve top priority for response?

  15. Re:Hot on the heels of... by Jeffrey+Baker · · Score: 2, Interesting

    Well, to be fair Debian Linux suffers from the same problem. Trusted update is a more difficult problem than solving some buffer overrun in xlock or whatever.

  16. Oh my god! by sageFool · · Score: 5, Funny

    Someone with physical access to your machine can access it!! WHO KNEW?! Call in the army reserve and physically secure access to all your machines!

  17. Re:Hot on the heels of... by mlyle · · Score: 4, Informative

    This was fixed July 16, 2002. Old news. Move along.

    (It wasn't even that bad of a vulnerability, as it required end-user cooperation to exploit and also excellent timing/sustained penetration of the target network (software update runs once a week by default-- you need to guess when to arpspoof/dnsspoof properly. Still, it's not a good thing, and Apple fixed it promptly).

  18. Good Grief! by computerme · · Score: 2, Insightful

    If you have access to any machine, you can override security. Can anyone say, "boot up with a cd-rom"? I thought you could. These are the droids you are looking for, move along... move along...

  19. I writed this commented.. by banal+avenger · · Score: 5, Interesting

    It's no wonder why Apple didn't reply, look at the subject of the email sent to Apple: "forgot your screensaver password ?? Hackit anyway." Must have been Jeff K reporting the bug.

    In other news, a similar bug has been an issue on the Mac OS X version of Folding@Home. The screen saver crashes when lock screen is activated, and it's been months since I first noticed it, and I've seen it mentioned on the Folding boards, and it still hasn't been fixed. I agree with some of the people on the Macslash forum: Don't rely on screen savers if you have truly sensitive data within in reach of scrupulous characters.

  20. So...my cat by Spoticus · · Score: 5, Funny

    can hop up on the desk and crack OS X?

  21. Yawn.... by Anonymous Coward · · Score: 2, Insightful

    Wintel fanboys/Apple haters who are having your fun because (finally!) there's a security hole in Mac OS X, take note: This bug requires PHYSICAL ACCESS TO THE COMPUTER to exploit. Compared to the network security holes Windows is famous for Nimda, Code Red, IE-buffer-overflow-of-the-week, this bug is about a serious as a typo in a dialog box.

  22. Re:Full Text by slamb · · Score: 4, Insightful
    An AC wrote: Oh, and OT, but this idiot can't write a sentance, there's no doubt he discovered this after falling asleep on the keyboard. fucking kids these days. :)

    About a message containing:

    Delfim Machado - dbcm@xpto.org
    XPTO:: Portuguese OpenSource Community - http://lab.xpto.org

    He's Portuguese. Could you have written that report as well in his language? I'm all for basic literacy, but I can speak English and a tiny bit of Spanish. I think anyone who can communicate in a language other than their native one is doing pretty well, even if the readers do have to struggle a bit.

  23. Doesn't X have and even easier exploit? by LtFiend · · Score: 2, Interesting

    It's always found this mildly annoying but since I've never had that much to protect and the people around me really arent that smart anyway I haven't gone in search of the fix.

    But in X at least on slackware when the screensaver is on I can Ctrl-Alt-F1 and Ctrl-X to kill X windows and get myself to prompt.

    1. Re:Doesn't X have and even easier exploit? by Phroggy · · Score: 4, Informative

      But in X at least on slackware when the screensaver is on I can Ctrl-Alt-F1 and Ctrl-X to kill X windows and get myself to prompt.

      Unless you're using xdm/kdm/gdm, which will automatically start X without you logging into the console first. If you kill X, it'll just restart X for you, and give you a graphical login prompt.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  24. Unable to reproduce by Phroggy · · Score: 5, Informative

    I just pasted about 2.7MB of text into Safari's address bar, and it didn't crash at all. I pressed return, and it attempted to load the page; Squid aborted the connection but Safari's still trying to load it. I'm typing this in another Safari window. No problems. Process Viewer shows Safari is using 25% of my RAM.

    This will probably make a pretty ugly entry in ~/Library/Safari/History.plist.

    I also tried crashing the screen saver login window. It hung with the SPOD trying to manage that much data being pasted all at once, but it did not crash. After several minutes, I killed the processes remotely, but even killing the process did not return me to the desktop - I just got another login prompt, and was able to log in.

    I'm running 10.2.6, the latest available version.

    --
    $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
    $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    1. Re:Unable to reproduce by Graff · · Score: 4, Informative

      Just like you, I'm running MacOS 10.2.6. On my first attempt to reproduce the screen saver crash I had the screen saver pause for a second, fade to black and then the login window came back up again. I tried it for a second time and this time it did crash and I was able to get to the desktop. This was repeatable several times.

      I then logged out and tried the same trick with the user login window. This time the login window greyed out the buttons and it refused to let me enter any password or take any action. I had to reboot the machine externally. Once I did so and the system restarted I was presented with the login window again, even though I have the machine set to auto-log me on. I tried the trick again with the same results, had to reboot. This time I entered in my normal user password and had no problems logging in.

      I tried the trick on several other programs without being able to use it to circumvent security. It looks to me like this is a problem with the screen saver only. That being said, you should NEVER use a screen saver as a way to protect sensitive data. If you are that worried about your data then log out from the account when you leave your desk, it only takes a few seconds to log back in. If you are really worried about security then keep your computer behind lock and door - no matter what the machine it is so easy to bypass any security measures once you have physical access to the machine.

  25. buffer overflow ? by Anonymous Coward · · Score: 2, Informative

    If this is a buffer overflow, in theory it could let you run any code (though you would have to type it, restricting the instructions you can use...).

    Running code with the screensaver privileges is not very interesting, but isn't the loginwindow runned as root ?

    Defeats openfirmware password protection...

  26. Is this a true "buffer overflow" attack? by Thaidog · · Score: 2, Interesting

    It sounds as if all you need to do I type in enough charaters in to the imput field fast enough, and bamm the screensaver or whatever app "crashes" and now you're as the desktop or in single user mode. I thought a true buffer overflow attack was something different than this.

    --

    ||| I still can't believe Parkay's not butter.

    1. Re:Is this a true "buffer overflow" attack? by HeghmoH · · Score: 2, Insightful

      A buffer overflow just means that you overflow a buffer. This results in writing to memory beyond the buffer. Most buffer-overflow exploits involve using a buffer overflow to write interesting things to the memory beyond the buffer, resulting in having the program execute code the attacker sends it. But even if writing to that memory just crashes the program, it's still a buffer overflow.

      --
      Mod down posts with a "Free Mac Mini/iPod" sig, they're spam!
  27. ok people wtf by carpe_noctem · · Score: 5, Interesting

    I saw this "exploit" on full-dis, where it started a rather large thread, given how silly this bug actually is (a screensaver breaker...ooooh now I'm quaking in my boots). I thought it was excessive that -anyone- responded to his thread, and now it got posted on /. ? What gives?

    Probably going to get modded down for troll, but I had to vent. Excuse me. ;)

    --
    "Quoting famous computer scientists out of context is the root of all evil (or at least most of it) in programming." - K
    1. Re:ok people wtf by Lukey+Boy · · Score: 3, Insightful
      I disagree; in a work environment where there's a server room with a bunch of machines with a KVM attached but no physical access, this opens up the machines to attacks from insiders that don't have access.

      I mean, shit, when it comes to security it's always better to be safe than sorry.

    2. Re:ok people wtf by Phroggy · · Score: 2, Informative

      because I could just as easily reboot the machine and root it.

      Not without the user knowing when they got back.

      --
      $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
      $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
    3. Re:ok people wtf by Orion_ · · Score: 2, Insightful

      If the root user leaves the machine screen-locked then anyone can access the system. How is this not bad?

      Agreed that this is bad, but the root user is disabled by default on OSX. If you enable the root account in Netinfo, log into the GUI with it, and then leave it logged in with a screen saver running, you're a fucking idiot anyway, and you really deserve what you get.

      That said, this will be a good test of Apple's response time for security issues. My understanding is that they've been pretty good about that; I guess we'll see.

  28. Physical access != physical access by yerricde · · Score: 3, Insightful

    Any machine you can get physical access to is insecure.

    Not all physical access is the same. Many demo machines in stores are left in screensaver mode, so that they show the computer is "doing something" without allowing users to write dirty messages in Notepad (or whatever Apple calls its version; I haven't used a Mac since Mac OS 8.1, when it was called "SimpleText"). It's easy to interact with the keyboard of a floor model, but it's often not feasible to turn off the machine and insert a boot disk, and it's definitely impossible to open the machine's case without getting caught, kicked out of the store, and possibly arrested for attempted vandalism.

    --
    Will I retire or break 10K?
  29. Re:Oh shit by Phroggy · · Score: 2, Informative

    I believe this to be the first "public" exploit of OS X, or any OS 9, in quite some time....

    Apple Security Updates

    There have been more than you think. Apple, however, does release patches fairly quickly, and many of the holes are in 3rd-party code (e.g. OpenSSL) which affects Linux users too.

    --
    $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
    $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  30. I believe this is no longer true... by igabe · · Score: 5, Interesting

    If I am not mistaken, this was on Slashdot a while back. Apple was quick to correct this.

    The only problem(an ironic one) is that they updated the flaw through Software Update =)

    --
    tilTrue.info contechtext.info prettypowerful.info twitter.com/frets fb.com/prosody
  31. emacs in a password box... by ceswiedler · · Score: 5, Funny

    Hah! I knew it! Mac OSX isn't based on Mach or BSD at all! It runs on top of emacs!

    Actually, the thing that surprises me is that they managed to trim emacs down so it's only an operating system.

    1. Re:emacs in a password box... by evilviper · · Score: 2, Funny
      Mac OSX isn't based on Mach or BSD at all! It runs on top of emacs!

      And they even managed to run a decent editor on top of it!
      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    2. Re:emacs in a password box... by Jon+Abbott · · Score: 3, Informative

      Indeed -- it's nice being able to move the cursor around using Ctrl-P/N/F/B/A/E in any text form... I can do it while typing a Slashdot post, typing an email, etc. etc...

      There are some apps that don't properly handle these key combos (the iApps and Office X seem to all ignore them), but I think this is because they are using a slightly different part of OS X (perhaps Carbon instead of Cocoa)... The nice part about Office X though is that you can reconfigure the key combos so that they do work -- it just takes time to do it.

  32. Since you need physical access... by crispy1083 · · Score: 3, Interesting

    ...you can probably just boot using a CD or external hard drive, which results in a much worse security problem, since it'll give you access to Mac OS 9. You can use that to trash the Mac OS X system, since you can destroy all the normally hidden files and not worry about permissions.

    1. Re:Since you need physical access... by Thaidog · · Score: 3, Interesting

      There is a firmware password program that you can dowload from apple to make sure that only the system selected gets booted into... otherwise you need a password to boot from a CD or another boot folder. You have to hold option down at boot time and a password field comes up. There is also a password screen for the mulitple users option for OS 9 that secures booting into it. The only question is Are there any problems with the security of the security system in OS 9 like this bug in OS X? For that reason OS 9 should still be patched and support for another couple of years just like micrsoft was still supplying patches for NT untill a few weeks ago.

      --

      ||| I still can't believe Parkay's not butter.

  33. Re:Cool... I'm trying it on the boss tomorrow.. by cioxx · · Score: 2, Informative

    There is MonitorerX Pro

  34. Just tried this exploit by 2nd+Post! · · Score: 3, Informative

    It doesn't seem to work for me.

    You sure it's real? Have you verified it?

    I'm running 10.2.6 on a 933MHz Quicksilver with SuperDrive

    Tried entering another users's login and password at the screensaver prompt and could not get access.

    When I used Folding@Home, however, I *could* crash the screensaver, and thus forcing the user back into the desktop, but that has nothing to do with the bug you're mentioning, but with the fact that Folding@Home crashes.

  35. Re:LP by Phroggy · · Score: 4, Insightful

    Okay now...Apple is swiftly closing the gap with Microsoft in the amount of holes it has.

    Compare:

    Microsoft

    Apple

    Notice how many of Apple's security holes are actually holes in things like Sendmail, BIND, Samba, Apache and CUPS, all of which are off by default, and affect Linux and FreeBSD as well.

    --
    $x='S24;r)>63/* h@<5+oZ)32"5cz';$me='phroggy'x$];
    $x=~y+ -xz+\0-Tx+;print$_^chop$me for split'',$x;
  36. The screensaver was never meant to be secure by Carthag · · Score: 2, Insightful

    It's a screensaver. It's not a lock-out mode. Hopefully, though, the new switch-user thingie in Panther will be what you're all thinking the screensaver is.

    1. Re:The screensaver was never meant to be secure by steeviant · · Score: 5, Insightful

      For the purposes of this post, I'll assume that we are including unix work alikes like Linux under the umbrella of Unix

      I don't think you understand much about this subject. Mac OS X is a multi user system from the ground up, as much as any other Unix system, the only thing that is NOT multi user about it at the moment is the GUI.

      If you go into /etc/inittab on any other Unix and comment out all of the lines that start virtual terminals except one, that doesn't stop it from being a Unix system, nor does it stop it being multiuser.

      You are confused about what makes a system into a Unix system. The architecture of Mac OS X is a lot like every other Unix system (but for a few technical changes to abstract the OS from the hardware, and make it easier to write low level OS plugins, and binary device drivers) until you reach the GUI level.

      If I take Linux or BSD or Solaris or HP/UX or AIX or Tru64 and put a GUI on it that is not the X Window System, it doesn't stop being a Unix machine.

      It seems like you think Apple took Mac OS 9, stuck a Unix layer like Cygwin on top and are trying to call it a Unix system, This is not the case. If anything, compatibility with Mac OS 9 is the thing that is tacked on and "not supposed to be there".

      If you want to read all about Mac OS X's history, so that you can fully understand it, and not seem like an idiotic troll when posting on the subject try reading something like these two O'Reilly articles on the history of Mac OS X.

      http://www.macdevcenter.com/pub/a/mac/2002/05/03 /c ocoa_history_one.html
      http://www.macdevcenter.com /pub/a/mac/2002/05/10/c ocoa_history_two.html

      Anyway, rest assured that Apple didn't take their old OS and tack on new features to make it Unix, they took Unix, and tacked on new features to make it compatible with Mac OS.

  37. Win95 Screensaver Security by Fred+Ferrigno · · Score: 3, Informative

    I can't remember if ctrl-alt-del worked to bypass the screen saver in Win95 (though I doubt it), but I know it never worked in Win98. The more effective way to do it is to burn a CD with a simple program that kills the screen saver. Unless the user actively searched out and disabled autorun, which is a much bigger safety/security hole that comes enabled on all Windows systems, it works flawlessly.

    Of course, as others have mentioned, if you've got physical access to a machine, it's insecure. While I'm thinking about it XP and 2k have autorun enabled by default; I wonder how they handle autorun security when the computer is locked.

    1. Re:Win95 Screensaver Security by bmetz · · Score: 3, Informative

      Autorun does not occur until you log back in under XP.

      --
      What did you eat today? http://www.atetoday.com/
  38. Quick summary of article. by Anonymous Coward · · Score: 5, Funny

    It's been discovered that someone with physical access to your computer can access it.

  39. Very Good News for Me! by Doctor+Sbaitso · · Score: 4, Funny

    My local computer store has password-protected screensavers on all its demo Macs - now I'll be able to surf the web for... ahem... "those" sites... when the store employees aren't looking!

    --

    ---
    Hello, Slashdot user. My name is Dr. Sbaitso. I am here to help you.
    1. Re:Very Good News for Me! by Lord_Dweomer · · Score: 4, Funny
      "My local computer store has password-protected screensavers on all its demo Macs - now I'll be able to surf the web for... ahem... "those" sites... when the store employees aren't looking!"

      Yes, but please be thoughtful of other people who might happen to see the screen while you're on the site....Besides, you can go to www.msn.com from home anyways.

      --
      Buy Steampunk Clothing Online!
    2. Re:Very Good News for Me! by NotAnotherReboot · · Score: 4, Funny

      Type in goatse.cx links in a Safari window and put the screensaver back on. Allow unsuspecting employees to turn off the screensaver and hit enter.

    3. Re:Very Good News for Me! by Trurl's+Machine · · Score: 3, Funny

      I think they will be rather happy about that. How many times visitors call them with this annoying "sir, can you unlock this screensaver, please"? (and then the inevitable "damned, where did I stuck this post-it note with our current password"). I bet the whole instruction "how to crash the screensaver in 3 easy steps" will be pasted right at the entrance!

  40. Bug Sure, Security bug no by zenyu · · Score: 5, Informative


    Personal computers and workstations make no attempt to be secure against physical access. I just changed two Mac OS X root passwords so I could create an account for myself on some pc's last week. I'm not a regular mac user, I just did a google search and found three or four ways to do it, the easiest was to just boot into single user mode, turn on the standard password authentication mechanism, and then type passwd... I've never met a Sun workstation that didn't give you fully fledged debug console at Meta-A.. Lilo lets you enter single user mode with just a kernel parameter to linux... You can overwrite the password files in Windows, etc.

    You could encrypt the root filesystem, then on boot authenticate the machine (to make sure someone didn't just clone the startup to harvest your decryption key) and then enter the decryption key based on a one time response from the computer. That level of paranoia would justify caring about this "exploit." Even so someone could just install a sniffer inside the computer since our hardware is not hardened in the least.

    1. Re:Bug Sure, Security bug no by Blondie-Wan · · Score: 2, Funny
      You could encrypt the root filesystem, then on boot authenticate the machine (to make sure someone didn't just clone the startup to harvest your decryption key) and then enter the decryption key based on a one time response from the computer. That level of paranoia would justify caring about this "exploit." Even so someone could just install a sniffer inside the computer since our hardware is not hardened in the least.

      Maybe you could, like, lock the door to the room with the Mac in it...

  41. Reproduced by Anonymous Coward · · Score: 2, Informative

    I crashed both the login panel and the screensaver. I typed in some characters, ctrl-a/ctrl-k/ctrl-y, hold it down for a few seconds, then repeat the process. The text control fills up pretty quickly. Hit enter, and the application crashes.

    For the login panel, it dropped me into console mode, but I wasn't logged in. Crashing the screensaver took me to the desktop. Not a big deal, in either case, but it could be a big deal with a different application.

    Weird how some people can reproduce this and others can't. I have a PowerMac G4 (mirrored drive doors) running 10.2.6.

  42. The Postedon by sharkey · · Score: 2, Funny

    Mortal enemy of the Mastodon!

    --

    --
    "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
  43. Confirmed for me by coolmacdude · · Score: 4, Informative

    I was able to reproduce it on my Powerbook. Here is the crash log.

    2003-07-05 23:25:41.258 ScreenSaverEngine[9993] Exception raised during posting of notification. Ignored. exception: *** -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0) Jul 6 00:10:42 localhost crashdump: Crash report written to: /Users/jonathan/Library/Logs/CrashReporter/ScreenS averEngine.crash.log

    --

    -You may license this sig for only $6.99.
  44. Yet another triumph for irony against stupidity... by Ho-Lee-Chow · · Score: 2, Funny

    Oh, and OT, but this idiot can't write a sentance, there's no doubt he discovered this after falling asleep on the keyboard.

    Once again, our intrepid hero, known to his legions of fans as "Slashdot Grammar Nazi", fails to check his own grammar and spelling as he ruthlessly tears apart another post for...poor grammar and spelling.

  45. The tone of the original letter to apple by ultrapenguin · · Score: 4, Insightful

    Was so immature, its no wonder it got ignored.
    I would be surprised if the mail didnt get deleted after just looking at the subject of it :)

    Seriously, people reporting security bugs need to start working on their english and sentence structure, and stop sounding like 10 years old script kiddies.

  46. It's not a bug.... by ebbomega · · Score: 2, Informative

    It's a feature!

    Seriously, all software produces exploits of some kind, even the beloved Linux and its considerably more stable cousin OpenBSD. The difference between an open source project like Linux or OpenBSD and more proprietary software like Cocoa and Windows is that more often than not if there's an exploit, the sooner it's discovered the sooner someone patches it, and as a result the sooner it gets fixed. I remember /. reported a samba security hole about three months ago that I had patched about an hour before the article was even posted, thanks mainly to Mandrake's Security Update.

    --
    Karma: Non-Heinous
    1. Re:It's not a bug.... by swordgeek · · Score: 2, Interesting

      That's quite an interesting statement. Do you have any evidence whatsoever that open source security bugs get fixed faster than closed source ones? Compare Linux with Solaris, if you want a level playing field.

      Not a troll--I've heard this statement tossed out so many times as absolute fact, and yet I don't know if it's ever been tested.

      As for Samba, you might have had good luck with a security patch, but we had a bug that caused a prouduction system to crater (12 CPUs and about 8GB of RAM) completely. It existed for TWO YEARS after being reported because no one on the Samba team felt like dealing with it. Sometimes you really do get what you pay for.

      --

      "People who do stupid things with hazardous materials often die." -- Jim Davidson on alt.folklore.urban
  47. Doesn't matter by itistoday · · Score: 5, Insightful

    This requires "5 minutes" to hold down the key long enough. If one has access to a machine for 5 minutes then security doesn't matter. On any version of OS X one can simply launch up single-user mode when restarting and have Root access in under a minute.

    1. Re:Doesn't matter by mslinux · · Score: 2, Informative

      I wonder if you can nuke an OF password with the pram-clear spock pinch...

      Yes, you can do this. Change the amount of RAM in the system (either add or remove a RAM chip) and then clear the pram. Bingo... no OF passwd.

  48. Re:X isn't :0 only by Jeremiah+Cornelius · · Score: 5, Informative
    Uhhhh.. OSX doesn't use X. It has a native, non-netrwork display renderer called "Quartz": interactive PDF based, with OpenGL acceleration.

    The buffer exploit is a Quartz problem, and entirely local.

    There is an X implementation for OSX - it runs on Quartz, like Exceed or CygX run on Win GDI. It may be possible to send events to Quartz via the Aplle X server - but this is not shipped by Apple as a production code, and won't be until Panther. That is several months and many bug-fixes away!

    --
    "Flyin' in just a sweet place,
    Never been known to fail..."
  49. HERE's an even simpler hack by goombah99 · · Score: 3, Funny
    got physical access? good. then put in a install CD. boot it, and select change password from the menu. Ta Da.

    Oh you dont want to change the password? well then boot in single user mode and you dont need one. Ta Da

    Oh they left open firmware on?. open the case and remove one of the memory cards. reboot. ta da!

    --
    Some drink at the fountain of knowledge. Others just gargle.
  50. i saw this in a movie by cyberrodent · · Score: 3, Funny

    that's how Mystique hacked into that government computer in Xmen 2 -- and I'm pretty sure that's how Jeff Goldblum hacked into the alien ship too - only we didn't know it at the time because os X was only released to celebrites at that time.

    (and that's why he did those commercials too!)

    cyberRodent

    --
    Talk is cheap. Supply exceeds demand.
  51. Revenge of the drinking bird by gotr00t · · Score: 4, Funny
    Like how Homer Simpson got his "drinking bird" to cover for him by constantly pressing 'y' while he went to the movies, you could do the same thing. Have one of those drinking birds continually tap a single key over and over again while the Mac is in screensaver mode, and EVENTUALLY, it will terminate due to this bug.

    It probably didn't work for you because you didn't type enough stuff. Go buy a drinking bird.

  52. Get root access by gotr00t · · Score: 5, Interesting

    On any computer using OSX, it is possible to change the root password with 6 easy steps:

    Reboot the computer
    Hold down appl ctrl + S
    Type "mount -uw /"
    "su" (it dosen't ask for a password)
    "/sbin/systemstarter"
    "passwd"

    1. Re:Get root access by usr122122121 · · Score: 4, Insightful
      On any computer using OSX, it is possible to change the root password with 6 easy steps: [snip]
      This suggestion wouldn't work if the computer was secured with the Open Firmware Password method.

      Yes, the OF Password is also circumventable, but not if the machine is physically locked :-)

      If you want your machine to be secure, you can take steps to ensure that it is, regardless of platform, but when there is physical access to the machine it generally takes a lot more security to do so.

      --

      -braxton
    2. Re:Get root access by tesmako · · Score: 3, Informative
      For those who have missed it here is the classic get-root-in-3-steps for Linux;

      * reboot
      * at lilo/other obscure bootloader load linux with -init /bin/sh
      * run passwd
      Of course easily avoided with a BIOS password or mean bootloader, just like on a mac where you can avoid this problem with an OpenFirmware password.
    3. Re:Get root access by Huge+Pi+Removal · · Score: 2, Informative

      It's rather easier just to boot from the installer CD and select "change password" from the Installer menu. Change an admin's password, and away you go...

      --
      - Oliver

      The right to bear arms is only slightly less stupid than the right to arm bears...
  53. Because Panthers run faster by igabe · · Score: 5, Interesting

    Just FYI Panther seems immune to this exploit.

    Tried doing the procedure ~10 minutes in the Screen Saver and nothing happened. Then tried again in few other cocoa apps. Still nothing. Just worked like normal(for once this is a good thing).

    My only question is if Apple acknowledged this flaw in Jaguar and then fixed it in Panther, or if Apple just ended up fixing it quite accidentally.

    And yes, I realize most people can't just upgrade to Panther yet to fix this rather major oversight on Apple's part.

    Yea and I think that you should be able to use Exposé as a screensaver =)

    --
    tilTrue.info contechtext.info prettypowerful.info twitter.com/frets fb.com/prosody
    1. Re:Because Panthers run faster by kasperd · · Score: 4, Insightful

      My only question is if Apple acknowledged this flaw in Jaguar and then fixed it in Panther, or if Apple just ended up fixing it quite accidentally.

      Or perhaps somebody realized there was a bug and fixed it without ever considering how bad the bug was.

      --

      Do you care about the security of your wireless mouse?
  54. Re:Mac OS X technology names by scrod · · Score: 2
    Its a BSD kernel, its a BSD kernel, its a BSD kernel, its a BSD kernel.

    Kernel? No, that would be Mach. FreeBSD 4.4 is the reference platform for the rest of the command line environment, however.

    And its nearly impossible to say 'cocoa' without smiling? Seriously, try it.

    Yeah, four years ago when the "Yellow Box" environment was renamed that I thought it was funny for maybe a day or two.
  55. Re:Graphical login screen by Trusted+Content · · Score: 2, Funny

    Right, because, you know, OS X uses X11 as its windowing system and to log in users.

    I almost forgot.

    STFU, n00b. You're way out of your league on this one.

    --
    OMG OMG LUNIX OMG
  56. There are worse... by FooGoo · · Score: 2, Funny

    But everytime I try and type it into my Mac Steves head fills my 23" cinema display and tells me I need to listen closer to the next keynote. I think it's a security feature.

    --
    People who bite the hand that feeds them usually lick the boot that kicks them
  57. Doesn't work at all! WTF? by EvilStein · · Score: 5, Funny

    I got drunk last night and passed out at the keyboard and came 'round *six hours later* - a lot longer than the 5 minutes needed for this "exploit" and I STILL couldn't get into my Mac OS X box.

    Couldn't find any more beer, and I couldn't find my pants, either.. but that's another story.. grrr

  58. Set an Open Firmware Password. by Anonymous Coward · · Score: 5, Informative

    You could always set an Open Firmware Password, if you're afraid of people rebooting your system to exploit it.

  59. No, it's not. by jcr · · Score: 3, Informative

    This exploit requires physical access to the machine, and if you have physical access, it's a lot simpler to just kill the power, and reboot while holding command-S.

    I haven't been able to reproduce it on my machine, but even assuming that the original report is completely accurate, it's still not a big deal.

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."
  60. Re:Graphical login screen by jcr · · Score: 4, Informative

    Any host that can ask for a login window on the machine can then use the buffer overflow exploit to potentially pass executable code to the server, to be executed as root.
    Time to check your Xaccess file and make sure it doesn't allow any remote hosts, whether by query or broadcast.


    Dude, none of this pertains to Mac OS X. There is no way for any other host to "ask for a login window" on a mac OS X host.

    -jcr

    --
    The only title of honor that a tyrant can grant is "Enemy of the State."
  61. Re:Try Xlock! by swdunlop · · Score: 2, Funny

    Invest in a safe. The only way to properly control access to a computer is to airgap it, lock it in a container, then post several rabid animals to guard the container. Even then, this is no guarantee, but the annoyance factor should be high enough to protect grandma's secret cookie recipe.

  62. This is a pain in the sphincter by Foxone · · Score: 2, Insightful

    You guys keep saying that since people have physical access they can rest the password anyway... that is not the issue. I have tons of apps that are open at the same time at work. (Photoshop, quark, Golive) Golive is linked to more than 4 network servers mounted on the desktop. When I log in it takes more than 5 minutes to load all apps and files. I can t log off everytime I go to grab some water or leave my desk for a meeting. Our webserver has more than 25 thousand pages and they all need to be loaded/parsed by Golive on launch. What I need is to protect the machine from temporary access from co-workers/consultants etc. looking for personal/confidential stuff. They will not reset the password because that would raise eyebrows, what they need is stealth. This needs to be fixed very very quickly since login out all the time is NOT an option for me.