Slashdot Mirror


Multiple Vulnerabilities in OpenSSL

gfilion writes "Updated versions of OpenSSL are now available which correct two security issues: A null-pointer assignment during SSL handshake and an out-of-bounds read that affects Kerberos ciphersuites. Full advisory available on OpenSSL site and US-CERT."

63 of 274 comments (clear)

  1. Non-Exploitable Security DOS Exploit by jstockdale · · Score: 2, Informative

    News at 11

    Honestly people, is this really /. front page news? This came out on the FreeBSD mailing list 36 hrs ago, and a fixed version of OpenSSL is already available.

    CVSup; make buildworld && make installworld

    Problem solved.

    --
    **AA: a bunch of mindless jerks who'll be the first against the wall when the revolution comes
    1. Re:Non-Exploitable Security DOS Exploit by BlueCodeWarrior · · Score: 5, Insightful

      For those of us not on the FreeBSD mailing list, it is.

    2. Re:Non-Exploitable Security DOS Exploit by Canberra+Bob · · Score: 2, Flamebait

      Yes, but *BSD takes security in general a lot more seriously.

      Rather than racing around trying to be all things to all people, the *BSD developers concentrate on what they are good at: developing a darn good server OS.

      For your average Linux user, this will be treated as a nuisance that interrupts them trying to get the latest unstable kernel compiled, for your average *BSD user, this is important stuff that affects the security of their IT infrastructure.

    3. Re:Non-Exploitable Security DOS Exploit by stratjakt · · Score: 5, Insightful

      It's certainly front page news if there's a non-exploitable flaw in Windows for which a patch has been released.

      cvs, make and build sure.. But when it's click windows update, somehow it's some monumental task thats just the worst thing imaginable.

      --
      I don't need no instructions to know how to rock!!!!
    4. Re:Non-Exploitable Security DOS Exploit by MobyTurbo · · Score: 4, Informative
      Honestly people, is this really /. front page news? This came out on the FreeBSD mailing list 36 hrs ago, and a fixed version of OpenSSL is already available.

      Slackware Linux also has this fixed. Incidentally, like the parent's subject line says, this is a minor vulnerability that at the most makes openssl crash, not an exploit or a trojan like all the stuff we've been seeing about Windows on /. lately.

    5. Re:Non-Exploitable Security DOS Exploit by KidSock · · Score: 4, Insightful

      ...is this really /. front page news? This came out on the FreeBSD mailing list 36 hrs ago.

      Yes. Most of us are not on the FreeBSD mailing list. Instead we wait for the more mainstream outlets like ./ to report the problem. Also it's good to wait about 36 hours or so for the fix to go through the motions as the sudden intrest rattles free other problems.

    6. Re:Non-Exploitable Security DOS Exploit by ewhac · · Score: 4, Interesting

      CVSup; make buildworld && make installworld

      For people who've never done this before (such as myself), this is an intimidating operation; care to walk me through it? It also glosses over insignificant little details, such as:

      • How do you set up your supfile?
      • Over a period of several updates, how do you avoid having stale libraries/executables/config files scattered all over your machine?
      • Is there a risk that 'make installworld' will silently overwrite a functional replacement previously installed from ports? (E.g. I'm using postfix, thankyouverymuch, and don't want sendmail to reappear.)

      Dumb questions I'm sure, but the answers have never been revealed in a form I can understand.

      Schwab

    7. Re:Non-Exploitable Security DOS Exploit by Anonymous Coward · · Score: 2, Insightful
      Wow, aren't we pretentious and elite today? I could just as easily say that the average Linux user just waits for cron-apt or something similar to pull in the fixed packages when they are made available by their distribution, which is a far more realistic claim, yet equally as handwaving and vacuous as the one you made.

      Get a life.

    8. Re:Non-Exploitable Security DOS Exploit by Anonymous Coward · · Score: 5, Informative
      How do you set up your supfile?

      Copy it from /usr/share/examples/ (it's somewhere in there, I think, my FreeBSD box isn't running at the moment, I've poached some of its hardware).

      Over a period of several updates, how do you avoid having stale libraries/executables/config files scattered all over your machine?

      That's a fine question indeed. What I do is:

      make DESTDIR=/usr/local/fake_root distrib-dirs distribution

      make DESTDIR=/usr/local/fake_root installworld

      make DESTDIR=/usr/local/fake_root installkernel KERNCONF=foobar

      Then you can compare the contents of /usr/local/fake_root and stuff in /. I like find and sort and vimdiff to do that. It's not super elegant, but you don't have to do it too often if you're tracking something like RELENG_4_9, since rarely do things get updated. What you would use it for is when you make changes to the base, which leads me to:

      Is there a risk that 'make installworld' will silently overwrite a functional replacement previously installed from ports?

      Yes! But you can get around it. In /etc/make.conf, do:

      NO_SENDMAIL=true

      Now sendmail won't be built, although its stale files will hang around; refer to point 2 above.

      You'll also, in rc.conf, want:

      sendmail_enable="YES"

      sendmail_flags="-bd"

      sendmail_outbound_enable="NO"

      sendmail_submit_enable="NO"

      sendmail_msp_queue_enable="NO"

      At least for Postfix, which you say you use.

    9. Re:Non-Exploitable Security DOS Exploit by Sivar · · Score: 4, Insightful

      You have a good point, as using Windows Update is easier (or at least as easy) as any GNU/Linux update method, and can be made automatic very easily (like some GNU/Linux update methods).
      One noteworthy difference, however, is that none of the BSD or GNU/Linux update methods tell the vendor the software (and their versions) that you run. To their credit, at least, none of them (including Microsoft) collect any actual personally identifiable information.

      --
      Computer Science is no more about computers than astronomy is about telescopes. --E. W. Dijkstra
    10. Re:Non-Exploitable Security DOS Exploit by Electrum · · Score: 3, Informative

      For people who've never done this before (such as myself), this is an intimidating operation; care to walk me through it?

      First, RTFM:

      http://www.freebsd.org/doc/en_US.ISO8859-1/books/h andbook/cutting-edge.html
      http://www.freebsd.org/doc/en_US.ISO8859-1/books/h andbook/makeworld.html

      I run 4-STABLE on all of my boxes, so this will be a bit different for 5. Create /etc/make.conf. You can look at /etc/defaults/make.conf and in the handbook for more details:

      CFLAGS=-O -pipe
      NOPROFILE=true
      NO_BIND=true
      NO_SENDMAIL=t rue

      SUPHOST=cvsupXX.freebsd.org
      SUP_UPDATE=yes
      SUP =/usr/local/bin/cvsup
      SUPFLAGS=-g -L2
      SUPFILE=/usr/share/examples/cvsup/stable-supf ile
      PORTSSUPFILE=/usr/share/examples/cvsup/ports- supfi le


      Replace SUPHOST with your CVSup mirror. See the handbook for more info. The NO_BIND and NO_SENDMAIL lines keep buildworld from building BIND and Sendmail, respectively, since I use djbdns and qmail.

      Once you have setup /etc/make.conf, you can update the source tree by doing this:

      # cd /usr/src
      # make update


      That will also update /usr/ports. If you want to just update ports, run make update from /usr/ports.

      Once your source tree is up to date, update the system following section 21.4.1 in the handbook. I skip the single user mode part, since I do everything over SSH:

      # mergemaster -p
      # rm -rf /usr/obj/*
      # make -j4 buildworld
      # make -j4 buildkernel
      # make installkernel
      # make installworld
      # mergemaster -i
      # reboot


      The order there is important. The kernel should be built after the world is built, since building the world updates the build tools (this is especially important when it has been a long time since you last updated). The kernel should also be installed before the world is installed.

      You should almost always update the kernel when you update the world. If you choose not to reboot immediately after installing the new world, you might notice that tools like ps no longer work, since they don't match the kernel.

      These is how I do things after several years of experience. Make sure to read and understand the handbook before doing anything. But really, it's not that hard, especially after you do it a few times.

      An unrelated but very useful tip: check out the sysutils/portupgrade port.

    11. Re:Non-Exploitable Security DOS Exploit by idiotnot · · Score: 2, Funny

      Another trolling gentoo user...gotta love it.

      cvsup....

      cd /usr/src/crypto/openssl
      make
      make install

    12. Re:Non-Exploitable Security DOS Exploit by NightSpots · · Score: 4, Informative

      Never used RHN, have you?

      First thing it does is `rpm -qa` and sends that list right to RedHat.

      It's really hard to know what updates to provide without seeing a list of software packages installed. Sure, they could differentiate between "Our" software and "Other" software in the list of installed programs, but that's just silly - send the whole list, and ignore the stuff you don't care about.

    13. Re:Non-Exploitable Security DOS Exploit by cperciva · · Score: 3, Informative

      CVSup; make buildworld && make installworld

      For people who've never done this before (such as myself), this is an intimidating operation; care to walk me through it?


      If you're intimidated by buildworld, there's an easier option:
      # freebsd-update fetch
      # freebsd-update install

    14. Re:Non-Exploitable Security DOS Exploit by gad_zuki! · · Score: 4, Insightful

      >Honestly people, is this really /. front page news?

      Yes, lets just wait till some kiddie write a worm that crashes thousands servers all over the world and then post about it.

      I like that slashdot posts security problems. Why?

      1. For the lazy admin. Theres lot of them.

      2. because its important to keep reinforcing the idea that computers suck (I dont care what OS you like) and need constant care.

    15. Re:Non-Exploitable Security DOS Exploit by UberLord · · Score: 2, Informative

      It's really hard to know what updates to provide without seeing a list of software packages installed

      That's the nice thing about Gentoo. I recieve the full software tree everything I emerge sync so only *I* know what I have installed.

    16. Re:Non-Exploitable Security DOS Exploit by Dwonis · · Score: 2, Interesting
      You have a good point, as using Windows Update is easier (or at least as easy) as any GNU/Linux update method, and can be made automatic very easily (like some GNU/Linux update methods).

      Windows Update consists of at least 4 click-then-wait-a-while cycles before your software is updated, and several packages must be installed separately (MSIE, service packs, DirectX, etc). On Debian, at least, you can run one command (apt-get update && apt-get -y upgrade) that will often complete the entire upgrade process, without reboots, etc.

      Also, apt-get will upgrade third-party software. Windows Update does not.

    17. Re:Non-Exploitable Security DOS Exploit by tommck · · Score: 2, Insightful


      Oh... that's MUCH easier than Windows Update. Can't wait for my mom to try doing this...
      </asbestos suit>

      --
      ---- It puts the lotion on its skin or else it gets the hose again. It does this whenever it's told.
  2. 3 actually by chrisopherpace · · Score: 4, Informative

    According to this link
    Here
    There are three vulnerabilities.
    This was, like, sooo yesterday on the Bugtraq lists ;)

    1. Re:3 actually by Anonymous Coward · · Score: 4, Funny

      Let me summarize this whole thread so we don't waste anytime:

      Microsoft fans - "see, Linux/FOSS have security issues too"

      Linux fans - "yeah, but we fixed this right away. If this was Microsoft, we would have been waiting for months"

      Repeat again and again..

      Netx topic please..

    2. Re:3 actually by Siva · · Score: 4, Informative

      true, but one was in an older-than-current version. not to say it shouldn't be noted, of course...

      --

      Keyboard not found.
      Press F1 to continue.
    3. Re:3 actually by chrisopherpace · · Score: 4, Informative

      Not to troll, but OpenSSL is not Linux, and Linux is not OpenSSL.

    4. Re:3 actually by smittyoneeach · · Score: 3, Funny

      You're flying too low to see the us/them dichotomy going on, boss.

      --
      Get thee glass eyes, and, like a scurvy politician, seem to see things thou dost not.--King Lear
    5. Re:3 actually by Anonymous Coward · · Score: 2, Funny

      hate to troll either but all the Microsoft fans on slashdot are Microsoft Employees. I know this because I am one. I am too ashamed to admit it in public but hay, the pay is great.

    6. Re:3 actually by fermion · · Score: 5, Funny
      Anyway we all know the problem isn't MS, the problem is C. It is such a 1970 type of language. Back when programmers were randomly jumping from place to place, casting memory as whatever type of data pleased them, recasting the data in function calls, copying blocks of data without a care of whether the blocks really existed, and, in this case, assigning NULL pointers all willy nilly. I mean really. No programmer educated in the past 15 years actually has the skill to remember that the void pointer pointer which in the last call has the value of the beginning of a three dimensional array, now points to the beginning of four dimensional array, which, of course, is complicated by the fact that such beasts only exist in the mind of the programmer, and not in any specific language construct, pointer math being one of those fictional things beat into the heads of the unfortunate programmers trained 20 years ago. And let's not even talk about the infinite loop idiom.

      Anyway, we need to rewrite the entire thing in the elegant languages of the 21st century. I suggest this

      --
      "She's a scientist and a lesbian. She's not going to let it slide." Orphan Black
    7. Re:3 actually by myowntrueself · · Score: 2, Funny

      I've often thought that refactoring the Linux kernel in Haskell would be rather nice.

      C is the devils tool.

      --
      In the free world the media isn't government run; the government is media run.
  3. Let's be like M$... by barfarf · · Score: 4, Funny
    I think we should be like Microsoft and not tell anyone about it until it's already patched.

    ... oh, wait....

    1. Re:Let's be like M$... by Trejkaz · · Score: 4, Funny

      But remember, according to Microsoft the exploits can't exist until after the patch is released anyway.

      --
      Karma: It's all a bunch of tree-huggin' hippy crap!
    2. Re:Let's be like M$... by thedillybar · · Score: 4, Insightful
      They didn't tell anyone until a patch was available. Note that the vulnerability was announced Wednesday, and it included a link for the patch (openssl-0.9.7d) when it was released.

      It's fairly reasonable to assume that the developers knew of the vulnerability some time before the new version became available.

      I think it's good practice to do this if you can develop the new version fast enough. Announcing it early is only inviting someone to exploit it. I doubt anyone will fix the vulnerability themselves and put it into production before the official release comes out.

  4. Actual Threat? by Anonymous Coward · · Score: 2, Interesting

    Already updated, but (w/o Kerberos) could this actually lead to anything more than the crashing of sshd and httpd child processes (assuming that's all one's using OpenSSL for)?

    1. Re:Actual Threat? by $0+31337 · · Score: 2, Interesting

      Well I suppose that the answer is no considering that the CERT Advisory, OpenSSL site, Other numerous sites say "This can lead to a DoS attack" and don't mention anything else. RTFA.

    2. Re:Actual Threat? by $0+31337 · · Score: 2, Interesting

      One of the problems is that a remote attacker could cause an infinite loop which would hang the parent process so yes, this could be a problem.

  5. before the trolls start... by contrasutra · · Score: 4, Insightful

    Please don't comment "so I guess Windows isn't so insecure, is it...". We always seem to get a few of these. OpenSSL/OpenBSD has a VERY good security track record. Is a vulnerability a problem? Yes, but when MS has OpenBSD's track record, you can compare.

    Also I think this is a good news post simply because it helps to show we're not Anti-windows bias. We report security problems on ALL os's.

    Oh well, sometimes you just have to combat the trolls.

    1. Re:before the trolls start... by Trejkaz · · Score: 5, Informative

      In particular, if you were running OpenSSH on Windows, which still depends on OpenSSL, then you are still in trouble. This isn't an OS security problem, it's a library security problem.

      --
      Karma: It's all a bunch of tree-huggin' hippy crap!
    2. Re:before the trolls start... by doomy · · Score: 4, Funny
      Yes, but when MS has OpenBSD's track record, you can compare.

      This just out from MSFT:
      Only one remote hole in Windows XP, since yesterday.
      --
      ...free your source and the rest would follow...
    3. Re:before the trolls start... by thebatlab · · Score: 3, Informative

      Not that I entirely agree with him (and not that I don't ;)) but his math is just fine . 100% are biased in some direction, 50% don't admit it. Works by my account.

  6. Bullshit... by Anonymous Coward · · Score: 4, Funny
    Everything is fine, firewall is quiet, and I dont think a single box wiL#%*#AT+H+H[NO CARRIER]

  7. Re:Patch updates are NOT news by pompousjerk · · Score: 5, Funny

    I'm betting that there are a large number of sysadmins who pay more attention to /. than they do to keeping systems up to date.

  8. Re:Uhh by Anonymous Coward · · Score: 2, Funny

    And a dog doesn't need slashdot to tell him where the nearest bone is buried.

    Point being: slashdot isn't news for good admins. It's news for nerds that are hopelessly wrapped up in battle between Open Source and the evil Micro$haft corporation that they fabricated to bring some drama to their dreary lives.

    Hellooooo -1 country!

  9. Old news by macdaddy · · Score: 2, Insightful

    I mean this is over a day old now. Why it took CERT so long to send the advisory I don't know.

  10. Move along by Dalcius · · Score: 4, Informative

    Nothing really to see here folks. Both attacks crash the SSL server, so we're looking at DOS attacks and not 'holes'. This is certainly serious for the business who relies on it, but for home networks and casual use (which I'm sure is common among slashdotters) this is no sweat.

    Nice to hear that they found the holes, though. :)

    --
    ~Dalcius
    Rome wasn't burnt in a day.
  11. Re:Why Is This Happening? by nathanhart · · Score: 3, Insightful

    Probally has something to do with many people being able to do code audits freely and of course submit their fix for it ;)

    --
    GeekLeak.com - Silly name, serious geeks
  12. For the love of god by Anonymous Coward · · Score: 5, Funny
    Please let the 'no proble...[NO CARRIER]' joke die. It is less funny than recursive acronyms, number representation wackiness, or 'yet another' names for programs.

    Okay, maybe not less funny - but just as unfunny.

  13. Re:They are if you just got hacked... by jarich · · Score: 2, Informative
    Leaving up a service you don't need is not a smart thing to do. My friend didn't need SSH up anymore (he had temporarily) but he thought there was no reason to take it down, so he left the port open on his router.

    Next morning, things were hosed. :(

    The moral is if you need SSH, FTP or any other service up, keep one eye BugTraq... but slashdot posts a lot of the good ones for those of us who don't have time to read everything.

    But, if you don't have a need for the service, shut down the port! NEVER leave up a port you don't need up. There are tons of script kiddies out there just trolling for an opening. If you don't belive me, just turn on the logging for your router and watch the probes go rolling by.

  14. Re:Patch updates are NOT news by Mr.+Ophidian+Jones · · Score: 2, Insightful

    Set up a cron job to do "emerge sync && emerge -uD world" or the equivalent every 24 hours. No attention required.

    Until someone roots the Gentoo servers....

  15. Re:They are if you just got hacked... by Anonymous Coward · · Score: 2, Funny

    It puts the patches on the server, or else it gets the hose again.

  16. Not too big of an issue... by InvaderXimian · · Score: 5, Informative

    Considering most setups (namely FreeBSD ones) aren't affected because this is a problem with Kerberos ciphersuites and the OpenSSL code is extremely MIT Kerberos specific so this flaw doesn't affect it.

    From the FreeBSD security list:

    If one compiles OpenSSL oneself, *and* has MIT Kerberos, *and*
    > enables the Kerberos options, *and* has all ciphersuites (or at least
    > the Kerberos ciphersuites) specified in your application's
    > configuration, then you might be affected. But that has nothing to
    > do with FreeBSD.
    > Thus, answering your question again:
    >
    > Isn't FreeBSD vulnerable to the second "Out-of-bounds read affects
    > Kerberos ciphersuites" security problem?
    >
    > No, FreeBSD is not.

  17. Yawn by ChiralSoftware · · Score: 4, Insightful
    I'm bored of these OpenSSL advisories. On and on they go. An unchecked null and an out-of-bounds read. Someday, people will realize that unsafe data (anything that comes in over the net) really can't be safely manipulated in a language like C. If OpenSSL had been implemented in Java, there types of errors couldn't exist, or if they did exist, they would throw exceptions which could be caught and handled in some reasonable way.

    Rule #1: Unsafe data should be handled in sandboxed languages.

    Rule #2: Programs that are exposed to unsafe data (server processes) should run at some minimum and constrained privilege level, not as root. The "must be root to bind to ports less than 1024" rule on Unix is almost exactly the opposite of what the rule should be.

    I'm sure many people who don't understand these issues will flame me or say I am trolling, but oh well, someone needs to keep bringing this up until it sinks in.

    ------------
    Create a WAP server

    1. Re:Yawn by kobaz · · Score: 2, Insightful
      Someday, people will realize that unsafe data (anything that comes in over the net) really can't be safely manipulated in a language like C.

      People like you who don't understand that any software written in any language can be exploited should be shot. Your post is just painful to read.

      Rule #1: Unsafe data should be handled in sandboxed languages.

      Rule #1 is actually: VALIDATE ALL USER INPUT

      This holds true for any language, c, java, php, brainfuck, or anything else. You can just as easily exploit a php script to insert sql statements and destroy a database as you could write code to crash a server using openssl assumeing the target apps do poor validation and you (the attacker) know what you're doing.

      Many things that communicate over the are safely handled in c, java, php, etc etc because they are written to validate the input given to them and never do operations on data that hasn't been validated. You can write a secure implementation of openssl in c or java, it doesn't matter as long as the underlieing methods include validating all of your input.

      Rule #2: Programs that are exposed to unsafe data (server processes) should run at some minimum and constrained privilege level, not as root. The "must be root to bind to ports less than 1024" rule on Unix is almost exactly the opposite of what the rule should be.

      This is another bullshit rule, if you have an app that properly validates all of its data then you can run the process with any level of permissions and not worry. The problem is, most apps aren't written with the idea to validate everything (the number one reason is because it adds overhead). Apps like openssl are written by more than one developer so its even harder to make sure everything is validated properly because of differing programming styles and methods, etc etc.

      I'm sure many people who don't understand these issues will flame me or say I am trolling, but oh well, someone needs to keep bringing this up until it sinks in.

      You *are* trolling.
      --

      The goal of computer science is to build something that will last at least until we've finished building it.
    2. Re:Yawn by ChiralSoftware · · Score: 5, Interesting
      No, I'm not trolling. I can summarize your whole post in one sentence: "Don't make mistakes and everything will be fine!" We've been hearing that for years. The best C security coders in the world are the OpenBSD team and guess what, they make mistakes. They fail to validate input sometimes. They have had exploitable bugs in their code. And what are they doing now? They are moving to models like privsep, w^x and systrace which are all forms of sandboxing or hole containment. Eventually if they take that far enough, they'll end up running bufferless code in a VM, which would give me a sense of deja vu.

      Sure, it's entirely possible to write perfect C code with no mistakes, and it's possible to not validate input on Java code and make plenty of mistakes. You gave a great example: SQL injection attacks. Java has some great defenses against that: Use java.sql.PreparedStatement instead of java.sql.Statement. Even better, use something like JDO to give an abstracted OO view of the data.

      Here's where C breaks down: The human mind doesn't think in the right way to use C safely. We can't change the human mind (yet), but we can change which language we use. Humans just don't spot out-of-range errors, for example, but out-of -range errors are all trapped in Java and also because Java collections know their size (unlike C arrays/pointers) out-of-range errors are much more obvious.

      Also, saying that "if you validate your input you can run it at any priv level you want" is just the wrong way to think about this. Mistakes will happen in any sufficiently large system (ie, any system that is large enough to be useful today). The only reasonable thing to do is to contain those mistakes, which means isolate processes and functions.

      Or you can keep on repeating "nothing bad would ever happen if we didn't make any mistakes!" I guess if that's what you think, I can't change your mind.

    3. Re:Yawn by jmv · · Score: 2, Insightful

      Rule #1: May I remind you that said unsafe data is also manipulated by the kernel and glibc. Are you suggesting those get converted in Java too? Oh, and with a badly written Java app, it's also possible to do all kinds of things (just not buffer overflows).

      Rule #2: Ever heard of "bind to port and then change uid"?

      I'm sure many people who don't understand these issues will flame me or say I am trolling, but oh well, someone needs to keep bringing this up until it sinks in.

      Thanks for enlightening us all.

    4. Re:Yawn by thogard · · Score: 3, Insightful

      Its a one line patch to get linux (2.2 and maybe 2.4 and maybe 2.6) to only let you open ports that equal a group your in. Its a simple fix but no one wants to do it. Even the standard /etc/groups aren't set up for this. Whatever listens to SMPT should be in group 25 and apache should be in groups 80 and 443. Then you don't need root to bind to the port and no other user can bind to the port either.

    5. Re:Yawn by Srin+Tuar · · Score: 2, Insightful

      The problem with VM's is that they are pigs.

      Openssl is coded in highly optimized C, with many components in assembly, and its still considered a high-overhead resource hog and is often the target of hardware acceleration.

      If you seriously think "Java" is even in the running for that workload- then you are seriously deluded. VM's have this peculiar BIG problem: they are slow and resource-intensive. They dont play well with other processes, they cannot swap out to share ram, and they encourage memory bloat.

      If anyone seriously wanted to use a programming language as a tool that lets you hide memory allocation and validate input- then they could choose C++. Java, et al, is just not a serious option.

    6. Re:Yawn by iwadasn · · Score: 2, Informative

      I completely agree. The port binding should still be specific, but not root. For instance, every unix system should have a "network" user that is the only one that can bind to ports less than 1024, root cannot, nor can anyone else. That nicely sandboxes all the attack vectors into one user that can be easily controlled and chrooted.

      But of course none of this would be necessary if everything possible was written in java. Then you wouldn't really have to worry because worst case scenario, you get an exception...

      In addition, I'm going to go off on a tangent here about java performance testing. Basically whenever people compare performance they compile up a C version using the latest compiler, targeting their CPU specifically, and they compile up a java version and run them head to head. This is about the most unfair comparison you can make. In general, software is almost always older than hardware, and it's virtually never targeted for the CPU you're actually running it on. Try compiling the C source on a three year old compiler targeting a pentium II, then run the benchmark on the P4 and lets see how it turns out. That is the common case after all. One of java's largest advantages is that it knows everything about your hardware, so theoretically it should always be fairly well optimized for it. The comparative performance would be much closer (it's usually pretty close anyway) if things were tested in this real world scenario.

    7. Re:Yawn by Electrum · · Score: 2, Insightful

      We've been hearing that for years. The best C security coders in the world are the OpenBSD team and guess what, they make mistakes. They fail to validate input sometimes. They have had exploitable bugs in their code.

      Funny, then why have the qmail and djbdns security guarantees never been claimed? Perhaps because it really is possible to write secure code in C?

  18. advice on cvsup by puzzled · · Score: 3, Insightful


    There is a minimal cvsup config for FreeBSD 4.9 - cvsup -g -L 2 and you're off and running.

    *default host=cvsup6.FreeBSD.org
    *default base=/usr
    *default prefix=/usr
    # The following line is for 4-stable. If you want 3-stable or 2.2-stable,
    # change "RELENG_4" to "RELENG_3" or "RELENG_2_2" respectively.
    *default release=cvs tag=RELENG_4
    *default delete use-rel-suffix
    # If your network link is a T1 or faster, comment out the following line.
    *default compress
    src-all
    #ports-all tag=.

    make buildworld & make installworld install *world*, which does not include anything you built out of /usr/ports - portupgrade is what handles moving that stuff forward for you.

    FreeBSD *is* intimidating at first, but if you take the thirty days of pain at the end of that time you'll be looking at your Linux boxes and wondering why you ever put up with the chaos ...

    --
    I am very easy to get along with, but I don't have time to waste being nice to people who are being stupid. -Theo
  19. Scary AND funny! by veddermatic · · Score: 3, Funny

    When an OSS / Linux / BSD / OS X / something other than Windows flaw is found, it's serious.

    It really is. You need to take it seriously and fix it. ASAP. Hopefully, most folks who run said OSes are paying attention, and will do what they need to do to secure the flaw.

    That said, every time anyone uses Outlook to read email, the above looks really, really good.

    --
    Department of Homeland Security: Removing the rights real patriots fought and died for since 2001
  20. Redhat? by Jesus+IS+the+Devil · · Score: 4, Informative

    If you have RedHat and can't do the up2date any longer, here's what I did to make mine work:

    wget http://www.openssl.org/source/openssl-0.9.7d.tar.g z
    tar xvfz openssl-0.9.7d.tar.gz
    cd openssl-0.9.7d ./config shared --prefix=/usr
    make
    make test
    make install

    Configure with "shared" because it will install the shared library, which is needed for other programs such as SSHD. The prefix is where RedHat put its *.so files that's needed by OpenSSH.

    Not sure if it's required or not, but I just restarted SSHD (uses OpenSSL) after that just in case.

    Btw, the above is just what I did. I make no warranties. Follow it at your own risk. :)

    --

    eTrade SUCKS
    1. Re:Redhat? by QuMa · · Score: 2, Informative

      Or you could just download the RPM's listed in the RHSA and install those.

  21. Re:No, but... by thogard · · Score: 2, Informative

    If you need the program to run, its init's job to keep it running and init does a fine job doing exactly that.

    I guess you start your critical ssl apps out of the rc scripts don't you?

    A well built server can take a # kill -9 -1 and still keep on going. (thats kill -SIGKILL every process)

  22. You need to monitor security lists by donheff · · Score: 4, Interesting

    I see a fair number of posts from people who rely on /. to learn about security flaws. That doesn't seem to be a sensible approach. It is pretty easy to follow a security list and keep an eye out for vulnerabilities affecting your system(s). I am a home user with a simple Web server in the basement. I subscribe to the CERT list. Others here mentioned Bugtraq. I catch quite a few alerts that I don't hear about in more general forums until after I see activity in my Snort logs. Even with a nightly update via yum some things need individual attention. Case in point, a flaw in a PHP application (Gallery) that falls outside of the packages covered by yum. You have to know about it to fix it -- and the bad guys know about immediately.

    Don

  23. C language is (also) to blame. by master_p · · Score: 3, Insightful

    A null-pointer assignment

    an out-of-bounds read

    Aside from the programmer's errors, if C was safer, both bugs would have already been caught a long time ago. C is clearly to blame here.

  24. OpenSSL in Java would be too slow by nestler · · Score: 3, Interesting
    An OpenSSL written in Java would be a complete non-starter. Nobody would use it because it would be too slow.

    For most applications, you are right that safety outweighs performance concerns. However, OpenSSL is in that 1% of applications where performance outweighs everything. It is a crypto library. Crypto is extremely CPU intensive.

    OpenSSL is expected to run as fast as possible, to the point where parts of it aren't even written in C. The core bignum and hashing routines are written in assembly language for various platforms.

    You even mentioned this caveat:
    if you're not writing an OS, a game, or a calculation based app (lapack, etc...)

    But you didn't seem to realize that this caveat certainly applies to OpenSSL (if ever there were a calculation based app, this is it).