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."

21 of 452 comments (clear)

  1. 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*

  2. 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!

  3. 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).

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

    write your own buffer overflow exploit

    --
    hooray! it's a sex wiki
  5. 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.

  6. 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;
  7. 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.

  8. 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/
  9. 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.

  10. 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.

  11. 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.
  12. Re:Wow. by andreMA · · Score: 3, Informative

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

  13. 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..."
  14. 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.

  15. 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.

  16. 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."
  17. 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."
  18. 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.
  19. 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.