Slashdot Mirror


Linux Kernel Bugs

Armin Herbert writes: "According to this mail from Rafal Wojtczuk and a german article on Heise Online, there's a new severe bug in all Linux Kernels, from 2.2.0 up to 2.4.10, which allows users to become root on your system. Kernel 2.4.12 fixes this problem, and RedHat, Caldera and other distributors already supply patches for their Kernels. See Bugtraq for more information." Important notes for anyone running a multi-user system. Update: 10/19 16:12 GMT by J : If I'm reading Nergal's writeup correctly, 2.4.10 is still vulnerable to the local DoS, but not to the local root exploit. Separate issues. And as pheared points out, there is one unverified report of a custom 2.4.12 being vulnerable as well; please try the exploit on your system and let us know what you find. This is a big one, you can expect the kiddies have already added this to their rootkits. Update your systems now!

99 of 307 comments (clear)

  1. open source by recursiv · · Score: 2, Interesting

    I always hear people saying how great open source software is, because they can look through the code and fix any bugs themselves.
    But I've always wondered exactly who's looking through all this code? Apparently not enough people if a bug this big has lasted this long.

    --
    I used to bulls-eye womp-rats in my pants
    1. Re:open source by Peaker · · Score: 2

      But I've always wondered exactly who's looking through all this code? Apparently not enough people if a bug this big has lasted this long.

      So enough people is defined as the minimum amount of people required to eliminate bugs between two kernel releases, aka, a few weeks?

      Mathematically speaking, the less time you allow for bug discovery, the more, a lot more, people looking at the code you need. As you limit to 0 time for every bug discovery, you limit to infinity of people required, its asymptotic

      Ofcourse there'll be undiscovered bugs, until all code is mathmetically proven correct.
      Ofcourse undiscovered bugs will remain dangerous, for as long as we use dangerous languages (C, C++, etc.)

    2. Re:open source by zensonic · · Score: 2, Informative
      Do you realize just how MANY lines constitute a typical linux kernel?? When that's said, a couple of points:

      • The bug was found at last.
      • YOU can join the BUG hunting team today no questions asked.
      • Atleast you know that the bug was found and fixed. I wonder how many bugs exists in closed source OSes that aren't fixed because of money and/or time.
      • I find it to be proof of concept that the open source moment works as intended. Some day, somebody will look trough the code. Either as part of his/her job, or for pure pleasure/fun. Thats when bugs and/or performance enhancements are fixed/made.
      • You actually HAVE the oportunity to go bug hunting in the code before you install it on you production system --- obviously not many does review the code (because there aren't that many bugs?).


      For me personally, I sleep well at night knowing that I run Opensource OS'es at home and at work. What about you? I for one do not trust that the money a commercial OS costs give me peace at mind with respect to security.
      --
      Thomas S. Iversen
    3. Re:open source by leviramsey · · Score: 2
      Ofcourse undiscovered bugs will remain dangerous, for as long as we use dangerous languages (C, C++, etc.)


      What other languages would you suggest for kernel development?



      And Java is not immune to these issues. Consider for a moment what languages Java's VM is implemented in. How many bugs are lurking in the Java VM (or the Lisp interpreters, or Perl interpreters, or PHP/Pythn/Tcl/Tk)?



      Blaming the language is a cop-out. It's akin to blaming the failure of legislation on the English language.

    4. Re:open source by Peaker · · Score: 2

      What other languages would you suggest for kernel development?

      Common LISP (Vapour), Java (JavaOS), etc.

      And Java is not immune to these issues. Consider for a moment what languages Java's VM is implemented in. How many bugs are lurking in the Java VM (or the Lisp interpreters, or Perl interpreters, or PHP/Pythn/Tcl/Tk)?

      A lot less. The number of bugs in a N systems written in C, is at least a function of N.
      The number of bugs of N systems written on top of a LISP, Java, or other interpreter is a function of 1 (Constant). This means that eliminating dangerous bugs is constrainted, and is a finite process.

      Blaming the language is a cop-out. It's akin to blaming the failure of legislation on the English language

      Blaming the language for allowing expressability of illegal things is not a cop-out, its legitimate criticism. The best/cleanest/most-powerful way, is often to not allow the mere expression of illegal/unauthorized things. As safe languages don't even let you express illegal (crashing) code, and pure capability systems don't let you even express unauthorized requests.

    5. Re:open source by Peaker · · Score: 2

      C++ is a lot more powerful at writing safe code, granted.
      But most modern C++ code does not do bounds checking, and still uses a lot of char*'s.

      In theory, a C++ library that does bounds checking and a lot of other safety-measures can be written, but it can never garbage collect (in a real way, not conservative), and manage memory automatically, meaning that dangling/illegal pointers will always exist in C++.

      C++ is still unsafe, deal with it.

  2. This is so typical by Caine · · Score: 3, Funny

    This happens all the time? When will people realize that Linux is inferior and unsecure. Everyone knows that open-source peer-review is a lousy tool for security-audits. No, why doesn't everyone run Microsoft products? They're completly secure and doesn't have any problems at all. Because that's the power of closed source.

    Hope the irony isn't lost on you...

    1. Re:This is so typical by sien · · Score: 2

      I can't believe this has been modded down. This made me laugh. Will the moderators please think just a bit, and then smile.
      I completely agree with this post, and think that no doubt in the next few days Linus will make a posting like MS have and tell everyone how they shouldn't be looking for security weaknesses in Linux and how publishing them is completely naive in the same way that MS so wisely have.
      If only the Open source community could learn from MS - and their wonderful server MS IIS ( Internet Infection Server ), codename Swiss Cheese the world would be a better place.

  3. 2.2.x where x=19 also vulnerable by geschild · · Score: 3, Informative

    Additionally the 2.2 'superstable' series are also vulnerable. Better get out those patches on multi-user systems and be snappy too. Don't want to look like an M$-admin now do we? :D

    Karma? what's that again?

    --
    Karma? What's that again?
  4. Curious... by Dimensio · · Score: 3, Interesting

    I'm aware that the exploit is within ptrace and not newgrp itself but...

    ...the SecurityFocus notice uses newgrp as an example of a program from where the hole can be exploited and it states that most Linux distributions default with newgrp suid root and world-executable. Call me odd, but I'm not sure I understand why a sysadmin would want newgrp to be world-executable.

    1. Re:Curious... by Fluffy+the+Cat · · Score: 3, Informative

      Because you need root privileges to change the real group ID of a running process to an arbitrary group (therefore suid) and arbitrary users may wish to run it (therefore world executable)? You're not confusing it with addgroup, are you?

  5. Okay, okay.... by tomknight · · Score: 2, Insightful
    Yes, it's open soyrce, where the fact that everyone can review it for themselves ensures that problems like this never occur. Yes, this is a cock-up....

    Strangely, I think that this is a good thing. It will hopefully make Linux users a little less complacent (and smug) than before. Okay, the avaerage user isn't going to trawl through the kernal source (hell, I wouldn't!), but maybe they'll get more involved with the full develoment of Linux - that includes QA, bug-fixing, not just writing of crappy Tetris clones.

    One thing I'm looking forward to is finding out how many lazy people there are out there who don't patch their systems..... much like with NT and the easily fixed holes that lead to Code Red.

    Tom.

    --
    Oh arse
    1. Re:Okay, okay.... by quartz · · Score: 3, Insightful

      It will hopefully make Linux users a little less complacent (and smug) than before.

      In your dreams. As a Linux user, I'm smugger than ever. How can that be? Well, let's see: a huge bug is found in Linux kernel. Did anyone write an exploit that pur millions of Linux computers in jeopardy? No. Did a malicious worm get released and wreaked havoc on the Internet? Um, no. Did this bug cause ANY inconvenience AT ALL thus far? Um, no. And it never will. Why? Because 1) a patch was made instantly available, and 2) generally, Linux people have enough common sense to stay up to date with kernel patches. Sho why the hell shouldn't I be smug?

    2. Re:Okay, okay.... by tomknight · · Score: 2, Insightful
      No inconvenience? Well it's no more inconvenient than having to patch all your NT/W2K boxes (actually very easy with a decent bit of scripting). The average user won't be affected that badly - all they have to do is apply a patch. The pain in the arse is when you have a whole load of machines (which may as it happens be running different flavours of Linux), and you spent a fair while ensuring that they all work ncely. Along comes a patch, and you have to start working out which machines tou can take off-line to test the patch, which machines are most vulnerable (when you have a fair few users with shell accounts...)


      Anything like this, on NT or Linux or whatever OS you use is a pain, and a definite inconvenience.


      Certainly, as it's a local exploit, the danger level is lower, but what if there's a Linux admin who hears about this a day after their users do? Think of the average student faced with the opportunity to become root. I'd have taken that chance!


      The reason you shouldn't be smug is because people who care found this first, and this isn't a remote exploit.


      Tom.


      What the hell is this invalid formkeys crap??

      --
      Oh arse
    3. Re:Okay, okay.... by mandolin · · Score: 2
      Did anyone write an exploit that pur millions of Linux computers in jeopardy? No.

      That's as Far As You Know. Anybody could have acquired this information and used it w/out your knowledge. What was that story a couple of days ago where the german government was considering moving to linux partially because they feared backdoors in MS code?

      (/steps off conspiracy theorist soapbox)

  6. Hooray! by Reality+Master+101 · · Score: 2, Offtopic

    This means there is at least a year's moritorium on stupid "Microsoft-is-insecure" jokes. :)

    --
    Sometimes it's best to just let stupid people be stupid.
  7. 2.4.12-ac3 by Defiler · · Score: 4, Informative

    If you're going to run 2.4.12, I suggest adding the latest Alan Cox patch to it, as well as Rik van Riel's "hogstop" and "eatcache" patches.
    First, start with the base 2.4.12 kernel: (Use a patch to save Kernel.org's bandwidth, if you have a recent 2.4 kernel lying around.)
    2.4.12
    Next, patch it up to 2.4.12-ac3:
    2.4.12-ac3
    Finally, apply these two patches to 2.4.12-ac3 to yield 2.4.12-ac3+hogstop+eatcache
    Hogstop+Eatcache

    This is currently the ultimate in Linux VM performance.

    1. Re:2.4.12-ac3 by macinslak · · Score: 2, Interesting

      As long as we're going for broke, how's about a little preemption too?

  8. Re:Huh? by Dimensio · · Score: 3, Insightful

    Well it's not exactly a remote hole. The user still needs to have execute privs on the system they want to root out.

    The "laughing" at MS's security holes isn't necessarily about how easiy it is for a user to gain administrative priveledges, but how easy it is for anyone anywhere to gain remote admin privs.

    Not that I'm saying your comments are completely without merit; a hole like this should have been spotted sooner IMO (though I don't know how obvious it was). I'm also not blind to the fact that remote exploits have been found on Linux systems/services.

  9. "Only" a local root exploit by Baki · · Score: 5, Insightful

    Before screaming, please remember that this is only a local root exploit, that is you must already have logged in on the machine as non-root before using this exploit.

    Most Unixes have had dozens of (sometimes known) local root exploits for years, and while most of them have been ironed out, some surely remain. They are much much harder to eradicate as exploits directed to network services (i.e. from the outside) are. Every once in a while one is discovered in most UNIXes (often obscure race conditions etc).

    Till a few years ago the saying was that you should never give a local login to someone who you would not trust to be root, i.e. one could assume that sooner or later those that really try to become root shall succeed. Any mission critical servers should not have any user accounts for untrusted people; therefore, local root exploits have never been considered to be a big deal.

    If you want to compare to Windows: up till Windows XP it wasn't even possible to be logged in as multiple users at the same time, so the equivalent of a local root exploit was not really possible. Still, Windows managed to have multitudes of the way more stupid and serious class of remote exploits. With the advent of Windows XP the concept Windows kind of becomes multi-user for the first time (though in a very crude way, since unlike UNIX/Linux each login session almost starts a new instance of larger parts of the operating system). While this new concept is 30 years old in UNIX, only now Windows (XP) starts having the possibility of local exploits. Surely many of them will exist and it will take decades to kind of iron them out.

    1. Re:"Only" a local root exploit by cloudmaster · · Score: 2

      Precisely the point I was goint to make. We've got several linux boxes here, but only one has user accounts on it that could be used for this kind of exploit. The other boxes have several accounts, but the only ones that can be logged into are me (the admin), root (also me), and, on a couple of them, the guy who was the admin a few years ago (who I would trust with root and who still works for the company in a different capacity).

      Guess what, I'm not real worried about this bug. I suppose it's time to upgrade the kernel anyway, though - it's been a few months. Wake me up if someone finds a *remotely* executable bug with any of my customized Linuxen. 'Till then, Windows' are *still* less secure than Linux.

    2. Re:"Only" a local root exploit by Telek · · Score: 4, Informative

      (I have to retype this comment because I got a "form keys error" while trying to submit the first one. I find it so ironic how the /. community continuously bashes MS for their stupid bugs and can't keep /. running for more than a week without some sort of error)

      If you want to compare to Windows: up till Windows XP it wasn't even possible to be logged in as multiple users at the same time, so the equivalent of a local root exploit was not really possible.

      Incorrect on both counts.

      Since at least windows NT server 4.0 you have had something called Terminal Server which gave remote users the ability to log on to your server and run applications (and with recent incarnations it is in a manner much faster than xwindows too). Windows NT 4.0 (regular) also had the ability to run programs as different users (through a bit of a trick), and this trick was turned into a real feature in Windows 2000 with the "run program as a different user" option. Windows XP was just the first one to allow a logged in user to keep all of his programs running while he is "logged out". I had a utility that I used to run on Windows NT 4.0 called "su" (and you can guess what that does) which allowed me to run any program as a different user.

      And besides, being able to have multiple simultaneous logged in users has no relevance to the ability to have root exploits. As long as you have user privilege levels you can have root exploits.

      --

      If God gave us curiosity
    3. Re:"Only" a local root exploit by dillon_rinker · · Score: 2

      This is EXACTLY the same attitude that MS has towards security. An exploit was discovered once upon a time that gave the administrator access to all user's passwords. "What's the big deal?" said MS. "Surely you trust your administrators! They could change the passwords if they wanted to, anyway!" The correct answer would have been "Oh no! An exploit, which combined with others could allow a bad guy to do terrible things!"

      So, your response is "What's the big deal? Surely you trust the people you allow onto your box!" The correct answer is the same as above.

      Never underestimate the creativity of the bad guys. Someone will take this exploit and combine it with others and gain remote root. We will all look back and smack our heads for missing his obvious combination.

  10. Just another reason by bhhenry · · Score: 2, Offtopic

    not to use Microsoft software ... oh, but wait

    --
    signature not found
  11. Re:Huh? by Fluffy+the+Cat · · Score: 2

    Read the thing. The ptrace hole is very similar to one in *BSD last year. Pretty much everyone screws up when it comes to this sort of volume of code.

  12. Not a good reason. by jawtheshark · · Score: 2, Interesting
    Admins "starting out" on linux may not know how to upgrade their kernels

    Well, I only "Admin" of a very small network and when I started out with Linux (nearly 2 years ago) I thought: updating a kernel?!? Oh, no! I'm sure I'll never be able to do that!
    Ehm, well, some nice evening, when I had a lot of spare time, I downloaded the latest kernel and only read the README (or was it INSTALL???) and compiled/installed and was running my own custom compiled kernel.
    No, an Admin worthy of the name should at least be able to read the (provided) docs and type at the command line. The Linux-kernel people really made it easy to compile your kernel IMNSHO. Honestly, even an NT-Admin must be able to read the docs otherwhise he woudn't know that, for example, after Windows asks it's original CD you have to re-apply your service-packs. :-)
    I admit, between Linux and Windows the environment changes, but the ability to read the instructions is needed everywhere as an Admin (and dare I say, as a normal user too!)

    Besides, any sane admin has a production and testing environment....so compiling the kernel on prod machines should only be done after extensive testing.

    --
    Ahhh...the great dumpster continuum. Many a free computer will be found there. -- sowth (748135)
    1. Re:Not a good reason. by cloudmaster · · Score: 2
      You don't even have to do *that* on most systems. All you do is
      1. install the kernel-source package from your distrib
      2. copy ".config" from the distrib's kernel-source dir (/usr/src/linux-dist or similar) somewhere (like $HOME)
      3. download the new kernel source and unpack it
      4. copy the .config file back into your new kernel source tree (probably /usr/src/linux/
      5. type "make dep; make bzLilo; make modules modules_install" in the new kernel directory

      Viola. :) New kernel with the same options that your distrib's kernel came with - and if your distrib doesn't suck, lilo will have been set up for you too. That seems pretty darned easy to me. Even if you have to change /etc/lilo.conf around a little bit to pick up the new kernel, that's *still* pretty easy, and something that anyone adminning a box important enough to worry about should already know how to do (or should know how to find out how to do).
  13. Linux 2.4.12 conspiracy by Anonymous Coward · · Score: 2, Offtopic

    Warning !
    This is not true !
    Don't upgrade to Linux 2.4.12.
    Linux 2.4.12 is a satanic linux version which will control your mind and your computer.
    You can easily see this on the version number,
    for 2.4.12 means 2+4 . 2*6 = 6 6 6 - THE NUMBER OF THE BEAST.

    DON'T UPGRADE.

    If you scan the kernel sources you will see other satanic messages like "Inode" an anagram for DEOIN the 32. commander of baalzebubs forces, "semaphore" an anagram for SHAPOMER the 6. servant of azmoziel and "kernel threads" an anagram for "LAD SHENK RETER".

  14. So, do we get a 2.2.20 from this? by devphil · · Score: 4, Interesting


    Or do I need to deploy these patches myself? What's the policy for ass-nasty bugs in superstable kernels which have already reached their official end-of-development?

    --
    You cannot apply a technological solution to a sociological problem. (Edwards' Law)
    1. Re:So, do we get a 2.2.20 from this? by kisak · · Score: 2, Informative

      I am sure Alan Cox will deliver a 2.2.20 soon, as he is still in charge of maintaining the 2.2.* kernel series. I saw a while ago an 2.2.19-ac*, but Alan has not been in a hurry to reach 2.2.20. But now, he definitely will be.

      --

      --- guns don't kill people, people with guns kill people ---

  15. Why this is(n't) funny by TheMMaster · · Score: 3, Flamebait

    To all the people that feel really good about this because they are sick of microsoft being attacked about this: Good for you, you deserve it, enjoy because it won't happen again this year ;-)

    Now to all the linux zealots here: To make sure that this doesn't become a problem we NEED to patch EVERY machine we can find and tell EVERYONE that has a linux box to patch it, why? because NOW it's funny, there isn't a worm out with a remote exploit of GPM that triggers an error Identd to give away your "Games" password so you can log on and become root ;-)

    but we must make sure that this disappears ASAP or else this sure as hell won't be funny anymore. PLEASE make sure that we won't get staroffice macro virusses, sircam 4 linux etc... THAT we will be the laughing stock of the entire software world... I'll bet that microsoft competetion management (r) is already producing FUD on this....

    --
    Fighting for peace is like fucking for virginity
    1. Re:Why this is(n't) funny by shanek · · Score: 2

      Could you even make a worm to exploit this? My understanding is that the exploit requires you to be connected already as a nonprivileged user.

    2. Re:Why this is(n't) funny by TheMMaster · · Score: 2

      I have no idea, it was just an example. The problem is that we DON'T know what might happen if we leave this unpatched, my point was that it is possible and that we shouldn't wait for something to happen because we can't afford to.
      Code Red was based on an exploit discovered almost six months before it came out... that was the point I was trying to make...
      According to the rating I guess that I wasn't quite clear on this....

      --
      Fighting for peace is like fucking for virginity
  16. Re:Huh? by tmark · · Score: 3, Insightful

    Well put. If a comparable NT exploit were available you can bet the Slashdot
    editors and readers would have been quick to drag MS over the coals. But since
    this is a Linux love-fest, we just get a pointer to the fix, and probably later
    some rationalizations as to how this points to the Linux's superiority, or how
    this is really minor anyways. Reminds me of arguments I used to foolishly
    engage in with creationists; anything that supports their argument is treated
    as scientific evidence, while anything contradictory is dismissed out of hand
    or ignored completely.

  17. More info on the matter. by pheared · · Score: 3, Informative

    In case many of you don't subscribe to bugtraq, there was a follow-up posted to the original advisory. I have replicated it here for your convenience. It raises an important issue, suggesting that kernels up to 2.4.12 may be affected as well. I don't claim to know, just forwarding the facts. Note that, he is using a patched kernel which could introduce any number of flaws, but I'm willing to give him the benefit of the doubt.

    Original Message:

    From: Demitrious Kelly
    To: bugtraq@securityfocus.com
    Subject: RE: Flaws in recent Linux kernels

    The description of the second problem is accurate, but I don't think the
    assessment of the kernels which can or cannot be affected by this exploit
    is... I'm using a newly compiled kernel Linux 2.4.12-grsec-1.8.3.

    ( Linux 2.4.12 with the Grsecurity Patch
    http://www.grsecurity.net/features.htm )

    # /* begin shell session */
    [12:52:11][apokalyptik@home:~]: ./epcs_ptrace_attach_exploit
    bug exploited successfully.
    enjoy!
    sh-2.05$
    # /* end shell session */

    1. Re:More info on the matter. by Rotten · · Score: 2, Informative

      Did not worked on a std 2.4.3 (linus, not ac).

      Maybe I'm kinda stupid but running the exploit did nothing, even changing the sample code to be more 'expresive'....

  18. Re:sucks to be a guy named Torvalds right now... by mattdm · · Score: 3, Informative

    Huh. Lookit that. The "boys at Red Hat" put out an update before this story even appeared on Slashdot.

    And I think you're seriously underestimating Mr. Torvalds.

  19. Mac OS has never been exploited over a network by Anonymous Coward · · Score: 2, Offtopic

    The MacOS according to bugtraq has never had a single exploit over a network.

    Running Webstar on MAc OS 9.2 or older, any versions, is the safest most secure platform.

    Instead of a backdoor every month or two like competing OS's, it has never had a discoverred exploit, or been hacked.

    It is because the mac has no command line, no paths, no concept of root (all code is root, except micro kernel), no way to exec code from data files based on file name or file suffix, no way to corrupt stack easily (call chain different than intel), no way to creat buffer overruns from strings because most ac people and the ROMS, and OS, use length delimited pascal style strings instead of null terminated.

    There are many more secure things dealing with CGI, alias paths, etc.

    But in summary, the US ARmy uses MAc web servers and most experts agree, that the most secure server, if price is not an issue, is a mac from a local store and Webstar.

    1. Re:Mac OS has never been exploited over a network by CyberKnet · · Score: 2

      Odd. What's this? Hrmmm. I thought it was an exploit over a network... and I thought it was on bugtraq too. I guess I must be wrong...

      --
      Video meliora proboque deteriora sequor - Ovidius
    2. Re:Mac OS has never been exploited over a network by Peaker · · Score: 2

      The MacOS according to bugtraq has never had a single exploit over a network.

      Yes it has, according to some different posts here. In any case, a server with 0 market share will probably not attract many exploit-writers.

      Running Webstar on MAc OS 9.2 or older, any versions, is the safest most secure platform.

      It may be safe and secure exploit-wise, if there really are no exploits, but is the false sense of security worth moving to a distant OS with few advantages and a large amount of disadvantages? I say false sense of security, because different less-used code is just as exploitable, the only difference is the motive.

      Instead of a backdoor every month or two like competing OS's, it has never had a discoverred exploit, or been hacked.
      Actually, OpenBSD doesn't have a backdoor every month or two.

      It is because the mac has no command line, no paths, no concept of root (all code is root, except micro kernel)

      That's quite a contradiction.
      all code is root is probably the worst security set up one could conceive, and as far from the principle of least privelege as possible.

      no way to exec code from data files based on file name or file suffix

      As if this is the problem with Windows security :P

      no way to corrupt stack easily (call chain different than intel)

      That's a system platform issue, not an OS issue. Linux can run on the same stack.

      no way to creat buffer overruns from strings because most ac people and the ROMS, and OS, use length delimited pascal style strings instead of null terminated.

      That doesn't resolve the problem at all. In fact, probably most buffer-overruns do NOT result from null-terminated string usage.

      There are many more secure things dealing with CGI, alias paths, etc.

      You're confusing different with secure. Different software will have different types of exploits, unless it is truly secure. Last time I checked, Macs were not an orthogonal persistent pure capability system, so they're not really secure.

      But in summary, the US ARmy uses MAc web servers and most experts agree, that the most secure server, if price is not an issue, is a mac from a local store and Webstar.

      Just like a lot of people use Slackware with their own compilations and compilation flags, so their software is different. Its not security, its a difference. It means exploting it takes some specific work, rather than exploits for the masses, that's all.

    3. Re:Mac OS has never been exploited over a network by CyberKnet · · Score: 2
      Oh, really?
      The MacOS according to bugtraq has never had a single exploit over a network.
      MacOS 9.2 came into the picture after this statement. It was a blanket statement that was wrong.
      Admittedly the bug was found quite recently, but I would expect that if a person adds "according to bugtraq" that they would at least do a little research on bugtraq.

      Read before you post. Preferrably comprehend too...

      --
      Video meliora proboque deteriora sequor - Ovidius
  20. Re:Corps moving back to NT, then? by ichimunki · · Score: 2

    Admin may not know how to upgrade a kernel? How the hell did a person who cannot download the updated .rpm or .dep file and type in a simple package management command get to be an admin of anything other than an Atari 2600 or a Vic-20?

    Even a dolt like me knows how to do 'chmod 700 newgrp' as superuser-- which will make one of these exploits a lot harder to do since it requires a SUID binary to be world-exec. And as soon as patched kernels show up, I'll be able to type 'apt-get update' on all my Debian systems, and 'pftp ftp.domain.com; get new-kernel.rpm; rpm -uv new-kernel.rpm' on my RH/YDL systems.

    --
    I do not have a signature
  21. I may be wrong but... by Kailden · · Score: 4, Insightful

    Somewhere deep inside the comments on both sides that start comparing linux to microsoft are missing the fact that most linux users are on average more technically savvy, expecially if they are connected to the big old net. So obviously, when linux announces a security hole a majority of users who are attached to the web get concerned and go out immediately and update thier system.

    But when companies and home users are running a COTS that they prolly didn't even install and don't even no what say IIS is, they don't get real concerned about updating thier systems.

    For an example, look at Code Red Infections that occured after the security hole had been announced.

    --
    I need a TiVo for my car. Pause live traffic now.
  22. Re:Difference between this and the IIS holes by Fluffy+the+Cat · · Score: 3, Informative

    Does this mean if you have a shell account on the server that this exploit can be used?

    Yes.

    If this exploit is run, can it be traced back to the user who ran it?

    If process accounting is being used, yes. On the other hand, the user could just "fix" the logs after gaining root.

    Does the ptrace command come installed as default on all distro's?
    It's a system call, not a command, so yes - it's part of the kernel.

  23. Re:sucks to be a guy named Torvalds right now... by teg · · Score: 4, Informative

    Oh well, looks like the boys at RedHat are gonna be putting in some overtime this weekend.

    We released updated kernels yesterday:



  24. Thank goodness.. by Anonymous Coward · · Score: 2, Funny

    And here i am trying to remember my password for root..

  25. Re:Tell that to university sys admins by Mr.+McGibby · · Score: 2, Informative

    Any good University setup doesn't allow regular users login-level accounts on critical servers. Students should have accounts on lab machines, and servers used for remote access, email, etc. but not on the web server, database servers, etc. While you may think that your ability to logon to the the "server" is a great honor, realize that the only use for that server is so people can login remotely to a common machine, the real servers are (or should be) locked up real nice like.

    --
    Mad Software: Rantings on Developing So
  26. NT Terminal server by Otis_INF · · Score: 2
    If you want to compare to Windows: up till Windows XP it wasn't even possible to be logged in as multiple users at the same time, so the equivalent of a local root exploit was not really possible.

    Errr? Terminal server? Telnet? Stuff available since NT4. Which is already phased out. Bashing is fine, as long as it is done by the facts, not by made up poop.

    --
    Never underestimate the relief of true separation of Religion and State.
  27. it still isn't possible by QuantumG · · Score: 2
    From here:

    In the Log On to Windows dialog box, type your user name, password, and domain (if required), and then click OK. The Remote Desktop window will open and you will see the desktop settings, files, and programs that are on your office computer. Your office computer will remain locked. Nobody will be able to work at your office computer without a password, nor will anyone see the work you are doing on your office computer remotely.

    What WinXP are you talking about?

    --
    How we know is more important than what we know.
  28. Hardly..... by SomeoneGotMyNick · · Score: 2

    I understand that you may have intended your post to be funny. I can't mod it up as so, but I still want to say my piece just in case you were actually serious.

    The ratio of M$ insecurities to Linux insecurities is still quite high. I still stand by the fact that "Microsoft-is-insecure".

    This insecurity appears to have been discovered before it was largely exploited. Unlike M$ insecurities which are exploited and systems compromised before M$ figures out that the exploit even existed.

    Once again, the open source peer review system works as it should.

    1. Re:Hardly..... by tshak · · Score: 5, Informative

      Name one exploit of late that was compromised (read: actual cases, not NTBUGTRAQ "COULD HAPPEN" reports) before M$ released a patch. Most all exploits occurred on unpatched machines when the PATCHES WHERE AVAILABLE well before the script kiddies got ahold of the exploit.

      Now, don't get me wrong, some of these holes should be an embarassment to the respective development teams. Hopefully with XP and in the future Microsoft will step up on security issues from a software design level. However, from a response level, they are doing an incredible job.

      --

      There is no longer anything that can be done with computers that is nontrivial and clearly legal. -- Paul Phillips
    2. Re:Hardly..... by Jace+of+Fuse! · · Score: 2

      Once again, the open source peer review system works as it should.

      Yup. And now that most boxes will probably go unpatched - there will be thousands of systems for which the exploits work exactly as they should as well!

      Oh yeah, SURE, --YOU-- might have already applied the patch, but anybody reading Slashdot is part of a vastly outnumbered minority.

      Luckily this isn't remotely exploitable... (...but then again...)

      Still. I have these little rules...

      Any bug in software is there forever.
      Patches only fix systems that get patched.
      Assume your software is dangerous; I keeps you aware and it's probably true.

      --

      "Everything you know is wrong. (And stupid.)"

      Moderation Totals: Wrong=2, Stupid=3, Total=5.
    3. Re:Hardly..... by SpeelingChekka · · Score: 2

      "Hopefully with XP and in the future Microsoft will step up on security issues from a software design level"

      You know, replace "XP" in that statement with "[latest MS OS]" and you get something people have been saying for close to ten years now (right up there alongside "hopefully the next version of Windows will be stable". Ten years. I remember people saying it when Win95 came out. And when Win98 came out. And when WinMe came out. How patient should consumers be??!? Is it OK to wait ten years for "the basics" like stability and security? There comes a time when people need to stop saying "hopefully the next version...", realise the pattern, and just give up on the company. Microsoft has had a LONG time now to "prove themselves", and they still haven't. The fact that people have been saying that for so long and not given up on the product is evidence of a distinct lack of alternatives.

  29. Re:Huh? by cloudmaster · · Score: 2

    (remark aside: why do I get these 'key' errors?)

    I got that on an earlier post, too. I figured it was a result of the flood of postings to a "something wrong with linux" message from the over-zealous linux fans and the over-excited linux-bashers. The new slashcode seems to have been buckling just a little under the tremendous loads that are placed on it... (not that I could quickly write anything better, mind you)

  30. Re:Where's the Gartner Group? by hAkron · · Score: 2, Funny

    I am working on a project to port IIS over to this effected kernel

  31. "Only a local root" by petrov · · Score: 3, Insightful

    I'm seeing a lot of comments like "This is only a local root exploit", or michael's "Important for anyone running a multi-user system."

    That's crap. This is a big deal. Don't try and downplay this. If you leave this unpatched, it turns every remote login hole into a remote root hole. There's plenty of code running remotely: mail, cgi, etc. Good security isn't foolproof. Good security is defense in depth. That means that you are patched against remote holes, and patched against local holes, so that escalation of privileges is difficult.

    --sam

    --
    --sam
    Any technology distinguishable from magic is insufficiently advanced.
    1. Re:"Only a local root" by Peaker · · Score: 2

      No! Good security is fail-closed security: Thus good security is a pure capability system.
      In *nix (and Windows, ofcourse), there are millions of requests one can request, and a bug in any of each will open security holes.
      In pure capability systems, the only requests you can express, are the ones you are authorized to perform.
      This means that security is a lot more fail-closed, because bugs do not escalate your authorization, except for specific capability-handing logic bugs.
      This narrows down the amount of code that can damage security by orders of magnitude, and simplifies the system a lot. No longer will race conditions, ACL test failures, buffer overflows, or other cryptic bugs grant authorization escalation. Now it would have to be high-level capability-granting logic bugs. In a much smaller, well-debugged system, of a fixed-code-size (rather than the ever-larging *nix trusted codebase).

  32. It's been an off week for open source. by dave-fu · · Score: 3, Interesting

    Mac OSX also got a remote root exploit of its own.
    I don't know whether it's ironic or not that the introduction of open source software led to the first Mac-based remote exploit that I can remember in a long, long time. I'm leaning against it as code's still made by humans and humans still make mistakes. You'd be well-advised to remember this and temper your flames against Any OS That Isn't Mine next time.

    --
    Easy does it!
    This comment has been submitted already, 276865 hours , 59 minutes ago. No need to try again.
    1. Re:It's been an off week for open source. by Peaker · · Score: 2

      This is so typical to ACL systems.
      It is explained well in "The Confused Deputy" article.
      Mac/Win/*nix security systems are truly a failure.

  33. Re:What is a Good Mailing List for this Info? by teg · · Score: 5, Insightful

    Can someone recommend a good mailing list for linux issues? I am using mostly RedHat boxes, but they don't seem to have any free mailing list that I can find (perhaps they have one i don't know about).

    Go to our mailing list server, and sign up for redhat-watch-list.

  34. Re:local DoS is no big deal, is it? by szo · · Score: 3, Funny

    If you have stupid and malicious users, ulimit is your friend. And process accounting. And a baseball bat.

    Szo

    --
    Red Leader Standing By!
  35. Re:Tell that to university sys admins by Chris+Mattern · · Score: 2, Informative

    As it happens, *I'm* a sysadmin for a university.
    If you think students have login accounts on our
    database servers, you are frickin' insane.
    Students get accounts on the academic systems,
    which are set up solely for them to play on.
    They are not let into the administrative systems
    that actually run the school; we keep tight
    control over who gets to log into those.

    Chris Mattern

  36. Not quite by radish · · Score: 4, Informative


    NT boxes have different types of user. Sure, only one can be logged in at once, but an exploit which allowed a normal user to gain Administrator privilidges is _exactly_ the same as a local root exploit. And yes, these have existed in the past, and probably still do.

    --

    ---- Den ene knappen er powerknapp, den andre er Bender voice knapp "Bite My Shiny Metal Ass"

  37. Interim Fix? by BadBlood · · Score: 2

    I am currently running 2.2.18 out of necessity (VPN patch that's not available for 2.2.19). From the article it would seem that until patches are available for your kernel, you can remove the suid (chmod -s) from the newgrp binary. Granted, you won't be able to add any new groups, but I think it would temporarily remove the exploit. Am I correct here?

    --


    Praying for the end of your wide-awake nightmare.
    1. Re:Interim Fix? by sshore · · Score: 2, Informative
      From the article it would seem that until patches are available for your kernel, you can remove the suid (chmod -s) from the newgrp binary.

      It's actually a kernel bug, and I'm told that any suid binary can be a vector. The temporary fix is to chmod -s all suid binaries on the system until it can be properly fixed.

    2. Re:Interim Fix? by Sircus · · Score: 2, Informative

      Only on the assumption that this is your only world-executable suid binary. If you've any others, they're also vulnerable. To check:

      cd /
      find . -perm -4001 -uid 0

      (this isn't quite complete - if you had a file which was suid root, owned by a non-root group and group-executable, that would also be vulnerable)

      --
      PenguiNet: the (shareware) Windows SSH client
  38. 2.4.12-aa1, or even better 2.4.12-pre3aa1 by On+Lawn · · Score: 5, Interesting

    Hmmm, according to the LWN that you linked to, aa patches have the best performance.

    For those that don't know aa stands for Andrea Archelangi who one of the very importent kernel hackers. It was a large part of his effort that stabalized the 2.2 VM. Although it is debated on which VM is better, over 90% of the benchmarks I've seen have pointed to AA being the better choice.

    AC even mentioned that the AA-VM was the right way to go, just too wild of a change for a stable kernel series. There is too much conspiracy theory going on that AC is hijacking the kernel for RedHat, or that the RedHat crew has a not-invented-here phobia for not including the better VM.
    Now on to a more editorial comment.

    There seems to be quite a war on this right now, but I think it will settle down in about 6 months or so like the ReiserFS wars have. I also think that we'll see a new order established in the stabalizing of kernels.

    I have no political say, but I expect that Linus will run a kernel that will be considered the "experimental, quicker evolving" kernel where things change violently. AC and others job will may to pull out pieces to salvage a semblance of stability, essentialy forking the stable branches from Linus's more exotic cutting edge kernel.

    This seems to be how things run in any case when there is a developmental kernel, and they run pretty well. The question that may be asked is "Does Linus need to slow down his effort to stabalize at all?" Its arguably true that the answer is "yes", but only to a degree that suits his own needs for order in his life-long persuit of the sexy kernel.

    Linus himself mentioned that AC does a better job of it, maybe its time to give him the whole forking-a-stable-kernel job.

    1. Re:2.4.12-aa1, or even better 2.4.12-pre3aa1 by On+Lawn · · Score: 2

      Got a reference for some benchmarks on LKML? I don't follow it directly, too much for me to do in a day. My TurboFestiva news group already gives me plenty to handle.

      As an aside, I think that competition and in-fighting is very healthy for Linux. I think OSS is like Winston Churchill. In war it stands out as a very adaptive and competant leader. In peace it meanders about from one faux-pax to another.

    2. Re:2.4.12-aa1, or even better 2.4.12-pre3aa1 by Defiler · · Score: 2, Informative

      There were some benchmarks posted recently, but I seem to recall that the subject lines weren't particularly "on topic." Makes them harder to find.
      In the meantime, here's one post..
      Success report..
      aah.. here's the one I was thinking of:
      VM benchmarks..

    3. Re:2.4.12-aa1, or even better 2.4.12-pre3aa1 by On+Lawn · · Score: 2

      Glad to hear the patches are doing so well!

      I do note that the aa patches weren't included except as Linus's iterations, but I am glad to hear the news.

    4. Re:2.4.12-aa1, or even better 2.4.12-pre3aa1 by Ryandav · · Score: 2

      consider the occasional glance at the Kernel Notes:

      http://kt.zork.net/kernel-traffic/latest.html

      These are well-written summaries of the kenel traffic, posts to the linux kernel developers mailing list. archived, searchable, and fully linked. Quite the handy shortcut to useful content on getting those kernels up to date....

      --
      Check my Go-related blog for beginners: DGD
  39. Re:well... Duh... by Stonehead · · Score: 2

    This is not a distribution bug, but a kernel one. From the article: "In order to exploit this kernel vulnerability, one needs a setuid root binary which execs an user-defined binary (or a shell). Newgrp is appropriate on most distributions." There are other programs that match this description. It doesn't make sense to make only newgrp non-suid and then think that you're safe.
    By the way, does anyone know in what kernel version (-pre,-ac) *exactly* the bug is fixed? I can't find relevant "ptrace" fixes or Rafal Wojtczuk's name anywhere in the changelogs.. I guess I should run the exploit to find out whether I'm vulnerable.. (another good example that full disclosure is useful..)

  40. Work-around without rebooting (2.2 kernels) by pp · · Score: 4, Informative

    There's a loadable kernel module that
    replaces the ptrace() function call with
    a wrapper that makes it impossible to exploit
    this bug. It can be found from
    http://c.home.cern.ch/c/cons/www/security/.
    Works on 2.2.19, not tried to use it with 2.4.x yet (should be pretty easy).

  41. Linux to hackers: Don't publish code by Mr.+Sketch · · Score: 2, Funny

    In a recent article on CNet:

    This week, Linus Torvalds, manager for Linux's security response center, published an essay on the company's site decrying the information and example code released by some companies and independent security consultants as "information anarchy."

    "It's high time the security community stopped providing the blueprints for building these weapons," Linus wrote in the essay. "And it's high time that computer users insisted that the security community live up to its obligation to protect them."

    "The state of affairs today allows even relative novices to build highly destructive (malicious software)," he wrote in the essay. "It's simply indefensible for the security community to continue arming cyber criminals. We can at least raise the bar."

    "(We) don't purport to have the answer to the problem," he said in a Wednesday interview. "But we believe that these practices are harmful."

  42. Re:well... Duh... by BMazurek · · Score: 5, Insightful
    You should not have world exec programs set suid, especialy on a system that you expect to be completely secure.

    'Cause no local user ever needs to run passwd.

    Or df.

    Or ping.

    Or xterm.

    Or rlogin.

    Or su.

    Or top.

    Or traceroute.

    A completely secure machine is a painful thing to work on. Yes, it may be necessary in some circumstances. Banning world executable setuid programs is a securing technique, but it's not the blessed saviour you're making it out to be.

    Parallels a situation many governments are facing right now: How much security do you implement to protect your population while still maintaining some semblance of freedom?

  43. Re:sucks to be a guy named Torvalds right now... by teg · · Score: 2

    If you find bugs, please put them in bugzilla.
    - make sure to add details on your hardware, as it's not a generic Tulip problem (I've just tested mine - no problems).

  44. Windows NT has always been multi-user by Earlybird · · Score: 2
    • If you want to compare to Windows: up till Windows XP it wasn't even possible to be logged in as multiple users at the same time
    This is incorrect.

    Windows NT, of which Windows 2000 and XP are but new iterations, has been multi-user from the start, even though it has lacked the shell counterparts to easily exploit it without resorting to C or C++. For example, the Windows NT Resource Kit comes with a "su" program.

    The NT user API design is heavily based on ACLs, which means, for example, that you can create threads, pipes, files, synchronization objects, etc. and restrict access to users with certain permissions. I'm no Windows fan, but they got this part right.

  45. local exploit is enough by bockman · · Score: 2
    • to turn a buffer overflow of a non-privileged nework daemon into a remote root exploit;
    • to allow unprivileged users to sniff the LAN;
    • to allow 'viruses' (.i.e. executables from an unknown source which a luser run without checking) to have full access to your machine
    This is a serious bug (though not a new kind of bug: as you said, local exploit have been with us for years), because it undermines the basics of Linux security model (every user stays in its box).
    --
    Ciao

    ----

    FB

  46. Disturbing Disparity in tone of News Posts by Multiple+Sanchez · · Score: 2, Interesting

    I find the tone of this post to be part of a disturbing, if subtle, trend.

    I know this isn't new ground to tread in these forums, but the respective tones of posts about Microsoft bugs and Linux bugs are worthy of change.

    When there's an MS bug, the posts generally read something like... "User writes, "Here's a big surprise. There's a bug in IIS that lets any six year old root the box. Excuse me while I gasp in surprise. Exploits are here and here. Cnet has the whole story." It's amazing that people still rely on IIS... I wonder when people will stop making their software choices entirely based on FUD."

    When there's a bug that eluded many major kernel revisions, the post reads: 'Apparently there's been a bug in the kernel for months that yields unauthorized remote access to root. Huh. Users of multi-user systems might want to patch this when they get a chance.' -- and it's on to the next story.

    Disparities such as these, subtle as they are, affect Linux communities' credibility. It makes us look immature because we appear to apply a double standard. It's a chink in our armor we should patch ASAP.

    1. Re:Disturbing Disparity in tone of News Posts by SuiteSisterMary · · Score: 2
      Sure there is a disparity in the tone of the reporting, but I doubt it that it was consciously intentional.
      That's what makes it all the worse.
      1. You will note that while there is a report, there is already a fix for the linux 'bug'.
      Well, as a counter example, code red's patch was out a month before code red. And why do you put the word 'bug' in quotes? Are you intimating that it's not actually a bug?
      There are about 8 thousand (note artitrary figure) times more exploits on the Windoze platform. The normal reaction from M$ is to first disclaim and deny its existence, then proclaim that either it is not a bug at all or that it has no known security risks associated with it. Exploits by script kiddies go on for about 8 months before a patch might be out. By then it's too late.
      Yeah, ok. Goes to character of the witness, your honor. Makes up figures and expects them to stick.
      3. Note that outside of NT (and 2k server), there exist no privileged role to protect system resources. So you don't even have to go thru the trouble of a 'root' exploit to kill the computer. You can just do it thru an email. ;-)
      What? What does this have to do with how Linux bugs are reported versus Windows 2000/XP/NT bugs? Try to at least compare fruit to fruit, as opposed to comparing fruit to animals. Apples to oranges is a luxury, however.
      --
      Vintage computer games and RPG books available. Email me if you're interested.
  47. Re:well... Duh... by Fluffy+the+Cat · · Score: 3, Informative

    You should not have world exec programs set suid

    This is plainly not true. Programs like newgrp (and passwd, chsh, chfn, login, ping, su and others) require root privileges but are there to be run by users. The alternative is to either remove huge swathes of functionality or let arbitrary users switch their UID without any sort of authentication, have /etc/passwd world writeable, let normal users construct their own IP packets and so on. Removing functionality in the name of security is not an acceptable option, especially when the functionality is this basic.

  48. Re:Why not try the following! by Fluffy+the+Cat · · Score: 2

    The above is not informative. newgrp does not add new groups - it allows a user to switch their current group, asking for a password if necessary. It is explicitly designed for users to run, but also requires root privileges. In other words, of course it's SUID and executable by all, you idiots. That's the entire point. People will be calling for passwd to be non-SUID at this rate...

    (Of course, this becomes less of a problem once capabilities are present at the filesystem level and we can explicitly launch applications with certain capabilities rather than launch them as root and then drop any they don't need)

  49. Re:What, no bias? by Peaker · · Score: 2

    That's odd... I've grown used to any Slashdot posting about privilege elevation exploits being condescending and insulting.

    Perhaps people complained about dozens of them a month being such, but their existence in ACL systems is recognized as inevitable.

    Where are the accusations of carelessness on the part of the programmers?

    Again, nobody would bash Microsoft programmers for an occasional bug. But that's simply not the case at Microsoft.

    How about the shots at the intelligence of the administrators?

    Now that's utter bull. Shots at the intelligence of admins? How is it relevant here?
    People refer to the stupidity of Windows admins after a second worm using the same exploit successfully spreads itself, even though a patch has existed long before the first one.
    When a successful worm uses this exploit successfully, then it would be relevant to call Linux admins idiots.

    Oh, this is a Linux bug? How convenient....

    How rare, too :)

    I'd continue to rant, but I have a worm to write.

    Yeah, and how will it spread, exactly?
    Anyhow, if you could, it would be a nice test of Admin stupidity, and my guess is that Linux admins would pass the test - thus your worm would Fail.

  50. Ahem by 4of12 · · Score: 2

    My name is Scottissue Pulp and I'm the Manager of the Linux Security Response Center and I'd like to take this opportunity to decry this

    "practice of deliberately publishing explicit, step-by-step instructions for exploiting security vulnerabilities, without regard for how the information may be used."
    --
    "Provided by the management for your protection."
  51. Oh shit... by ryanvm · · Score: 2

    Oh shit! Now Gartner is going to recommend that I switch all my servers back over to NT.

  52. Re:well... Duh... by BMazurek · · Score: 2, Insightful
    There is absolutely NO REASON for you to have passwd suid-root. NONE

    How about accessing shadow password files? Since you don't want your /etc/passwd (or your shadow password file) writable by your average user, how does a non-suid passwd program work?

    All that would allow you to do is set root's password from a normal user's account.

    Please refer to documentation that explains the difference between real and effective user ids.

    Ping??? Ummmm.... NO. It can send and recieve packets fine and dandy as an unpriveleged user.

    The message to which I was replying made no indication what OS he/she was speaking in reference to. I was examining my FreeBSD, HP-UX and Solaris machines. My point was not Linux-specific (if that is the OS to which you are referring).

    Unless you want to ping-flood, which it will only let root do.

    XTERM???? Goodnight, that's most insecure thing I've ever heard! When an xterm starts, it opens up a shell for whatever user it's running as. Even if that means opening up a root shell.

    Once again, I believe you're confusing real and effective user ids. Furthermore, this (AFAIK) depends on the restrictions the OS places on the access to system resources.

    Top has no need for suid-root.

    Once again, I think this point depends on the OS and the implementation of top, and the permissions on devices such as /dev/mem and /dev/kmem (depending on your OS).

    Security is your friend.
    Finally, something we can agree on.

    As I indicated in my first post, depending on your circumstances removing world executable setuid binaries may be an option. For example, on my firewall. This doesn't necessarily make for the most user-friendly system.

    I look forward to your response...

  53. What am I missing? by skajohan · · Score: 2, Interesting
    Maybe it's because I'm not a 31337 h4X0r, but I can't get this exploit to work.

    $ uname -a
    Linux limbo 2.4.0 #8 sat jul 21 14:24:48 CEST 2001 i686 unknown
    $ id
    uid=1001(johan) gid=1001(johan) groups=1001(johan)
    $ gcc insert_shellcode.c -o insert_shellcode
    $ gcc ptrace-exp.c -o ptrace-exp
    $ ./ptrace-exp
    attached
    exec ./insert_shellcode 24982
    $ id
    uid=1001(johan) gid=1001(johan) groups=1001(johan)

    So what's up?

  54. Re:will a preemptible kernel solve the dos problem by spitzak · · Score: 2
    This is a good question, I was wondering about this with with the previous discussion about pre-emptiable kernels.

    It would seem that preemptible kernels would allow kernel functions to be written to take arbitrarily long times, and only the calling process is hurt by this. This would avoid the DoS attack, but more importantly I would think it would make a lot of kernel stuff much easier to write and the code much easier to read and debug.

    So do any experts in kernel design think this, or am I totally wrong?

  55. Re:local DoS is no big deal, is it? by ENOENT · · Score: 3, Funny

    And a baseball bat.


    Shh! Not so loud! My boss still thinks that a LART is a sophisticated piece of network analysis hardware. I never told him that the bills we get for replacing broken LARTs come from the Louisville Slugger Company.

    --
    That's "Mr. Soulless Automaton" to you, Bub.
  56. What a piece of shit! by Wonko42 · · Score: 2, Funny
    What a shitty OS this is! They release an OS full of holes and then patch them all up afterward, and they expect us to see this as secure? Ha! Just goes to show why nobody in their right mind would ever use a shitty OS like Windo...er, Linux...

    (sarcasm, you fool)

  57. Terminal server is something different by Baki · · Score: 2

    Terminal server can't be compared to a multi-user system like UNIX. It may look the same at first sight, but in fact it is more like VMWare, in the sense that a large part of the operating system is instantiated for every user that "logs in", that is each user has almost a private copy of the operating system (which explains the huge amount of resources required per user). This is a gross hack, and WinXP multi-user logon is based on the same technology. It can't be compared to a true multi-user operating system such as UNIX.

    Indeed (as someone also remarked in another response) one could compare getting admin-right on a flie as equivalent to a local root exploit. Still, it is not the same. It only applies to file-access rights, not to executing processes with other permissions.

    1. Re:Terminal server is something different by Telek · · Score: 2

      It may look the same at first sight, but in fact it is more like VMWare, in the sense that a large part of the operating system is instantiated for every user that "logs in",

      You obviously have no idea what you're talking about. Terminal server is no such thing. The entire kernel of the O/S is loaded once, and once only. For example on Windows XP The only program that is loaded per user is explorer.exe (I just checked). On terminal server the only things that are loaded per user is rundll32.exe, display.dll and explorer.exe. Where did you get the idea that it's reloading the entire OS?

      (which explains the huge amount of resources required per user).

      It's best to use things before giving wild accusations. Having another logged in user on Windows XP here just took a whopping 6MB of more resources...

      Indeed (as someone also remarked in another response) one could compare getting admin-right on a flie as equivalent to a local root exploit. Still, it is not the same. It only applies to file-access rights, not to executing processes with other permissions.

      Have you ever used any Windows NT system? What do you think Administrator rights are for? Have you ever run policy manager? group policy manager? There are more than a hundreds rights that you can configure in the system. That's far more than I can recall every seeing in any *nix based system, but I don't make wild accusations about things that I don't know about...

      --

      If God gave us curiosity
    2. Re:Terminal server is something different by Telek · · Score: 2

      What are they?
      (etc)

      When I talk about rights I should rephrase, I'm talking about security settings.

      There are many, many things.

      Check out gpedit.msc (just type it in like that to run it), secpol.msc (overlaps with gpedit.msc), rsop.msc (has/creates a redundant backup of the master policies). You can check out secedit (just run "secedit") that'll explain about security policies and how to give an easy way to tighten down your system. There are also under the registry just about everywhere, and also every single object in the system has an ACL (access control list) attached to it (including every registry key). So you could, for example, say that you are the only user allowed to use the second IDE channel or the first USB port, or even the CMOS timer. IT's pretty cool. Go to sysinternals and checkout the winobj program that shows you all objects in the system and you can change policies on them and do more stuff (be careful, you can royally fsck up your system!)

      These are in all Windows NT/2K/XP systems and some are even in the 95/98/ME series as well (but not many).

      --

      If God gave us curiosity
    3. Re:Terminal server is something different by Telek · · Score: 2

      I think he meant that they are instantiated as new threads in existing processes. Just because you don't see more than one process running doesn't mean it didn't recreate a user specific part of the kernel.

      You are correct, I just did another check. However the act of just logging in a second time causes a commit increase (this measures everything) of just 4.5MB, running your shell causes an increase of about 8MB in top of that. Point is that the majority of the system is not recreated for every login, and it is nowhere near a gross hack.

      And perhaps those 100+ rights in Windows NT are the cause of all the insecurities

      (soap box mode on)

      I don't doubt that the fact that NT is far more complicated then linux (and perhaps more complicated than it needs to be) is part of the reason for the bugs, but as was just proven Windows is not the only OS that has bugs. They all do, to varying levels of severity. Without being able to see exactly what the cause of everything is I cannot comment furthur, however having a more complicated system is not much of an excuse for bugs, IMHO, you should just have more complicated testing measures.

      And the majority of those rights/security settings are set secure from the start and have absolutely no need to be looked at, much less modified.

      Don't forget that Windows was designed from a pleasing-the-user point of view. Things were setup lax because if they were setup more tightly users would have compained that they couldn't do things without changing settings. You're never going to please everyone. People said that they wanted to be able to install, run this, click 3 buttons and host a website, so that is what was created. I'm not absolving them of responsibility, I'm just saying that a lot of it is unwarranted. You don't get to be the biggest software company, one of the biggest companies, and the richest person in the world by unfair business practices alone. And lest you all forget, everyone's friend and linux's last-best-hope for survival 30 years ago was in almost exactly the same position that MS is in now. And why do you think they are doing it? Do you think they are doing it because they love linux or hate Microsoft? No. They're doing it because it makes buisiness sense. They believe that they can make money off it it, that they can sell more expensive hardware, and that it will strategically help their position. And you better believe that if they don't, their support will be gone like that (snap).

      We are in a capitalist society ladies and gentlemen. Everything is in name of the almighty buck. Thinking that you can/do become a great company by just good business practices and being nice to everyone alone is naive and will get you belly up very shortly. Giving away software and selling support will also get you belly up, sooner or later.

      what's an MSCE to do?

      (the MSCE is to) Get a clue. Any MSCE worth the training they went through should easily be able to maintain a server properly. It's not brain science. You cannot blame Microsoft (entirely) for people who, with 2 months notice, were unable to take 5 minutes to run a patch on their system. If *nix users took that long they would have a huge problem as well. My W2K server has been online now, as of this moment, for just over 200 days straight. No reboots, no service pack 2, and no patches. And guess what? Because I had the scruples to tighten down the security from day 1. Code red and Nidma and everything had no impact.

      I have a serious question for Microsoft dislikers out there. Put aside your hostility for a second and please give me some constructive ideas on exactly what you would like Microsoft to do? (other than things like drop dead, stop making crappy software, etc, etc)

      --

      If God gave us curiosity
  58. Most security exploits are local exploits! by budgenator · · Score: 2
    discounting windows® 9X, which have no security, most exploits are local.
    1. wardial to find the number, peirce firewall ect
    2. bruteforce a user login/password, (OK sometimes thing exploit a localy running server, but most isn't that sexy)
    3. escalate perms to root or admin using the exploit
    4. leave a backdoor for later and cover=tracks on the way out

    Maybe this is a little over simplifed, but still its a local exploit, either a login or a server running localy. whats the difference between telnet/ssh over a machine loop, a serial cable/modem dialup, a ethernet, or from the internet, it's still a executing the shell localy.
    --
    Apocalypse Cancelled, Sorry, No Ticket Refunds
  59. Re:well... Duh... by Fluffy+the+Cat · · Score: 2

    There is absolutely NO REASON for you to have passwd suid-root.

    You have your /etc/passwd rw-rw-rw-? How do you propose passwd is able
    to change the contents of /etc/passwd and /etc/shadow without running as
    root?

    Ping??? Ummmm.... NO. It can send and recieve packets fine and dandy
    as an unpriveleged user.

    How do you propose a user without root privileges gets the kernel to
    generate ICMP messages and send them to arbitrary hosts? Hint: you
    don't. Root privileges are required.

    XTERM???? Goodnight, that's most insecure thing I've ever heard!
    XTerm used to be SUID to be able to add entries to wtmp and utmp
    (perhaps you'd like those to be world writeable as well?) and change the
    ownership of the device node associated with them. Nowadays it's more
    traditional to make it SGID instead.

    When an xterm starts, it opens up a shell for whatever user it's running as.
    When a SUID xterm starts, it makes entries in utmp and wtmp and alters
    the device node permissions. It then executes the shell as the user.
    Feel free to test this.

  60. Re:Corps moving back to NT, then? by hearingaid · · Score: 2
    Admin may not know how to upgrade a kernel? How the hell did a person who cannot download the updated .rpm or .dep file and type in a simple package management command get to be an admin of anything other than an Atari 2600 or a Vic-20?

    By taking the MCSE exams.

    Sad, but true. The concern is that the Gartner migrants may re-migrate back.

    That said, the MCSEs of the world should be forced to get real jobs, you know, at Burger Thing or someplace they can put their talents to good use. :)

    --

    my old sig used to be funny, but then slashcode ate it and now it's not funny anymore

  61. Firewalls are good for you by hearingaid · · Score: 2
    The pain in the arse is when you have a whole load of machines (which may as it happens be running different flavours of Linux), and you spent a fair while ensuring that they all work ncely. [sic] Along comes a patch, and you have to start working out which machines tou [sic] can take off-line to test the patch, which machines are most vulnerable (when you have a fair few users with shell accounts...)

    You have to figure out which machines have untrusted users. Fortunately, this particular case is a local-only exploit; so if you're a sysadmin of a large system, then it's time to take it down.

    However, this is also where having a good firewall can save you much heartache. The firewall itself is by definition a system with untrusted users (unless you can guarantee you've never been broken into), so needs to be patched. If you have unprotected systems, all of them need to be patched.

    Keep all your systems behind a well-designed firewall, and these decisions become much, much easier.

    --

    my old sig used to be funny, but then slashcode ate it and now it's not funny anymore

  62. Not the only local exploit by GregoryS · · Score: 2, Informative

    This article appeared on stepwise.com, a site devoted to Mac OS X (so yes, Macs *are* vulnerable!") http://www.stepwise.com/Articles/Admin/2001-10-15. 01.html [posted 18-Oct-01] >> Mac OS X 10.1 Local Security Exploit A serious security exploit has been found in Mac OS X 10.1 (in fact, as it turns out, it has been present in 10.0.x versions as well). Using this exploit any user at the Desktop can gain root access to the machine. The problem is caused by applications that are set-uid root (that is, regardless of the user that runs them, they have root permissions). Normally these programs have a limited scope of functionality so that damage is minimized. However, it appears that any items launched from the Apple->Recent Items menu inherit the root user privileges. Additionally, any other apps in the Apple menu (i.e. System Preferences) can be launched as root using this hole. This can be demonstrated using the following technique: [See URL above for more details] So obviously, Linux isn't the only one that has these kinds of problems. And to that thread commenting about Mac OS not having problems like this -- yes, that might be true for Classic Mac OS, but its obviously not true for the current OS Every OS that I've used in the past couple of decades has had some kind of "local security exploit". That's just the way it is. Later, --Gregory