Slashdot Mirror


Apple Patches Security Flaw in Terminal.app

Currawong writes "Apple has posted Security Update 2002-09-20 for Mac OS X 10.2 and above in Software Update, fixing a security hole in Terminal.app which could 'allow an attacker to remotely execute arbitrary commands on the user's system.' Apple also has a useful page listing all the security updates with a short summary and links to what they patch."

25 of 83 comments (clear)

  1. Re:Apple patch installation? by xTina · · Score: 5, Informative

    It is done via the Software Update application. This app checks in certain intervals (default weekly) if new updates are available and lets the user choose the updates to install. Most updates are also available for download from Apple's website. Apple provides a security mailing list which will alert you to security updates. Since summer, all updates are signed and the signature is being checked by Software Update before installing.

  2. The test of this problem: by Anonymous Coward · · Score: 5, Informative

    I found this bug 2002/09/20, and start to make report for Apple.
    In fortunate thing, Apple fixed this bug and begin to distribute updater.
    Since Apple fixed this serious bug, I decided to open to the public.

    This is very serious security bug.
    All Jaguar user should update immediately.
    I prepared the test easy here.
    If link below is clicked, a Terminal will start and "ls -la" command will be executed by your authority.
    telnet://|ls -la

    Your use of updater vanishes this brittleness.

    name:Taiyo FUJII
    E-Mail:taiyo@vinet.or.jp
    Sorry, I don't have slashdot account.

    1. Re:The test of this problem: by Karma+Sink · · Score: 4, Informative

      Actually, I just clicked the link on multiple unpatched machines running OS X 10.2.1. The machine tried telneting to ls -la, to no effect. However, after giving it a good look, this is only because your link does not include the pipe. This is a pretty dangerous exploit, and could easily be changed to rm -rf * rather than a simple ls.

      It's a damned good thing that Apple is so quick on the draw with security fixes...

      --

      When encryption is outlawed, ?o'AZ-,++o+i++##4AoA+-/-C++bI+/.+~
    2. Re:The test of this problem: by Phroggy · · Score: 3, Informative

      Verified that before the patch, typing telnet://|ls%20-la in Internet Explorer's address bar gives me a directory listing, and after the patch it's fixed by turning the | into %7C which doesn't work. I couldn't get it to work by clicking your link though, or in Mozilla.

      Also verified that it launched in two bounces before the patch and one bounce after, on my 700MHz G4 eMac.

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

    This update replaces the entire Terminal.app.

    It is now 528kb in size, as opposed to the previous 439kb.

    I've also noticed that it launches noticably faster after the update. Perhaps Apple added some tweaks in addition to the security changes.

    (no, it isn't the updated prebindings. I just did that myself this morning).

    1. Re:The changes to Terminal.app by SlamMan · · Score: 2

      Hye, you right! It does open in 2 bounces now. Sweet! It doesn't take much to brighten up my day when i have to work on a Saturday.

      --
      Mod point free since 2001
    2. Re:The changes to Terminal.app by nevershower · · Score: 2, Interesting

      >(no, it isn't the updated prebindings. I just did that myself this morning).

      IIRC, you don't need to manually update prebindings anymore. It's done automatically on a weekly basis.

      --
      Look, ma! I'm a karma whore
    3. Re:The changes to Terminal.app by Anonymous Coward · · Score: 2, Interesting

      I assure you that no changes were made to the program, apart from a minimal fix of the bug.

      They didn't even remove the superflous NSLog's (console debugging output) even though they knew about them, since they wanted to touch as little as possible.

    4. Re:The changes to Terminal.app by norwoodites · · Score: 3, Informative

      not on a weekly basis but automatic when you launch the program and if it needs it, the dynamic library loader (dylib) will automatically do it for you, so the ext time it will launch faster.

      This is from reading the sources of dylib and the release notes of cctools which contains the sources.

    5. Re:The changes to Terminal.app by the+way,+what're+you · · Score: 2, Funny
      I concur. It launches for me in a single bounce. Cool.

      I see a marketing opportunity here:

      Faster than a speeding bullet! More powerful than a locomotive! Able to launch terminals in a single bounce! It's a bird! It's a plane! No, it's Mac OS X 10.2!!!
      --
      example.org - powered by Linux!
    6. Re:The changes to Terminal.app by DavidRavenMoon · · Score: 3, Interesting
      (no, it isn't the updated prebindings. I just did that myself this morning).

      I believe Jaguar updates prebindings automatically now at boot time.

      When I was running an old version of Classic Spy, OS X would write a log saying it couldn't update prebinding when I started up.

      --
      -- if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic - Lewis Carrol
    7. Re:The changes to Terminal.app by monolith25 · · Score: 2, Informative

      You can verify that this is happening by looking for 'fix_prebinding' in the process tree after you start up an app that needs prebinding.

      --


      "I'd give my right arm to be in Def Leppard."
      -- Andy Partridge

  4. Re:its sad by jtdubs · · Score: 4, Informative

    Simple solution.

    Use the Mac like it's supposed to be used, not like a damned windows box.

    When you close a terminal window, use Apple+W, NOT Apple+Q. Mac's are document-based, not application-based. Close the window, not the terminal app.

    Now, when you click on the terminal again it will open up a new window in a fraction of the time.

    Justin Dubs

  5. Yay Apple by zaren · · Score: 2, Interesting

    I didn't know a thing about this exploit until I heard there was a patch for it. Not to bash or anything, but if it was MS, it would have been all over the news before the fix came out. Guess there's something to be said for being the minority player after all :)

    --
    Come to the University of Mars! Classes starting soon!
  6. Re:its sad by MoneyT · · Score: 3, Interesting

    Like highlighting the text to copy then just middle clicking to paste

    If I recall correctly, this feature existed in the Sparc 2 which we had at our highschool which ran solaris. This is not a linux development. It may be a *NIX varient development, but not linux.

    Linux is completely customizable, you can change everything about the desktop, kde and gnome are very flexable. If you dont like something you can pull the src apart and change it. (I wrote a couple patches my self because I like to use the mouse scroll to shade and unshade windows on the top bar)

    All of this can be done with OS X too. You can even kill Aqua and just use it for apps that require Agua and use another windower in it's place for most of your work.

    We have also made our own freetype fonts. So we dont have to steal them from microsoft. But we can also install the microsoft fonts if we want our desktop to look like a windows box.

    Apple has their own fonts too, what's your point?

    Linux developers are very innovative we have more updates and enhancements than macosx and windows put together

    And how many of those updates were because they were nessesary to get a feature that has been availible in other OSes for a long time? Seriously, most of linux updates have just brought it closer to being comparable with the modern OSes, not major improvements.

    A good Itunes replacement would be xmms, yes its a clone of winamp, but there is nothing wrong with that, FREE THEMES!

    Themes don't replace functionality. You have no idea how useful something like a live search feature is untill you've become used to it iTunes is far superior to WinAMP

    I will grant that linux developers are innovative and that Linux is a fun system to toy arround with, but they are no more innovative than paid programmers and sadly do make most of their software from other peoples ideas (because otherwise no one would use Linux because people are too fricken dumb to learn a new OS, but that's an entirely differnt rant)

    --
    T Money
    World Domination with a plastic spoon since 1984
  7. Re:its sad by MoneyT · · Score: 2

    Because text OSes always launch faster than GUI OSes. Come back when you're using Gnome or KDE

    --
    T Money
    World Domination with a plastic spoon since 1984
  8. Re:its sad by MoneyT · · Score: 2

    Umm, tab complete is in the OS X terminal. I don't see what the problem is? If you just want to use the text based system log in as
    >console

    --
    T Money
    World Domination with a plastic spoon since 1984
  9. Re:its sad by MoneyT · · Score: 2

    I haven't tried it and unfortunately my iBook is in the shop, but does command Fkey work in OS X for switching to virtual terminals? That would at least give you 8 terminals

    --
    T Money
    World Domination with a plastic spoon since 1984
  10. Re:its sad by MoneyT · · Score: 2

    I wouldn't know specificaly, but I would be willing to bet you could get most of your costomizations from www.macosxapps.com Granted it's not a built in feature, but you have to consider that sometimes, espesialy when you're developing a system for new users. One of the big problems with Linux is the myriad of options. Sometimes you never know what to do. Linux should really have a simple GUI option, sort of like the mac OS Simple Finder option. That could potentialy bring more desktop users to the OS.

    As for your father, I'm not going to assume anything before I know the exact problem because that would be rude. But from what you described, all he would need to know how to do is to start the program, press play stop and skip and quit. Is there somethign else he needed because I know all of those are clearly marked buttons.

    --
    T Money
    World Domination with a plastic spoon since 1984
  11. Re:its sad by MoneyT · · Score: 2

    Are you certain that Xterm is not availible for OS X or that Fink will not compile it to OS X?

    I offer some possibly helpful information here:

    http://fink.sourceforge.net/doc/x11/x11.html

    http://macreviewzone.com/archive/hardcider/guest re views/01/stoton/xtools.shtml

    http://www.macosxapps.com/article.php?story=2002 01 10081658797

    http://www.macosxapps.com/article.php?story=2001 09 07082336916

    --
    T Money
    World Domination with a plastic spoon since 1984
  12. Re:its sad by Benley · · Score: 2

    No. The fkey-virtual-terminals thing is fairly unique to x86 PC clones, as it is a result of the way text mode works on the video cards (e.g. text being passed to the video board instead of a frame buffer arrangement like most other systems). It would certainly be possible to implement similar functionality on other systems, but it wouldn't be nearly so straightforward as on PCs. Linux, in fact, has already done this - the fbcon text consoles do provide exactly this functionality using a frame buffer, so it works on sparc, ppc, etc. Sadly, OS X doesn't. Then again, I wonder how useful it would even be...

  13. Re:its sad by Cadre · · Score: 3, Informative
    Linux developers have came up with alot of cool stuff. Like highlighting the text to copy then just middle clicking to paste. Of course you can do this on bsd or anything that runs X but its still cool.

    I think you mean "XFree86 Developers" and not Linux developers. XFree86 runs on many kernels, not just Linux. The functionality they developed was not specific to Linux, it was specific to XFree86.

    Linux is completely customizable, you can change everything about the desktop, kde and gnome are very flexable.

    I don't mean to nitpick, but once again, you're mixing the names up. The desktop customizability is a function of XFree86 and whatever desktop manager you use, not Linux (which I'll reiterate, is a kernel).

    --
    All editorial writers ever do is come down from the hill after the battle is over and shoot the wounded.
  14. Re:its sad by DavidRavenMoon · · Score: 2
    I cant use macosx because I am so used to the way my windowmanager controls windows. In macosx I really cant customize anything. For example, I like to be able to shade and unshade windows using my mouse wheel on the top bar of the window. This makes it so I dont have to minimize the window. Apple got rid of shading the window in macosx but you can get a plugin that will allow you to get the feature back. But the plugin still wont allow you to shade and unshade using the mouse wheel.

    So double clicking a window's title bar is too hard? I use WindowshadeX, I have it set so a double click shades the window, just as in OS 9, and the minimize button still minimizes. Are you using the mouse wheel as a button? You can do this with the software that came with the mouse. I have an MS Itellimouse Optical, and use USB Overdrive. If I wanted to I could program the wheel to do this. I have it set so when I click on the mouse wheel it opens a link in a new tab in Mozilla.

    Another thing I like to do is to move and resize windows using Alt+mouse button1 and mouse button 2. This is a must have feature for me, it makes navigating the gui alot easier on me.

    Once again, that's easier than dragging the window by the title bar? I can move and resize a window with one hand.

    You can do a lot of customizing in OS X, you just don't seem familiar with what's available.

    --
    -- if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic - Lewis Carrol
  15. Re:its sad by DavidRavenMoon · · Score: 2
    I like to be able to see all the terminals at once also.

    You can open as many terminals as you like in OS X. Just put their windows where you want.

    --
    -- if it was so, it might be; and if it were so, it would be; but as it isn't, it ain't. That's logic - Lewis Carrol
  16. Re:its sad by Van+Halen · · Score: 2
    That's fine if you're the only person who uses the machine. But when you share with someone else (my wife in my case), you find yourself logging in and out at least once a day, if not more. Waiting for everything to start up again each time can be a real drag if it takes more than a second or two per app. Especially when it's something as simple as Terminal, which by all accounts should open more or less instantaneously.

    But then again, an iBook with Airport is high on our Christmas wishlist, so perhaps this won't be a problem in the future. Instead of fighting over who gets to use the PowerMac, we'll fight over who gets to roam around the house instead of being chained to the desk. ;-)