Slashdot Mirror


Linux Worm Spreading, Many Systems Vulnerable

sverrehu writes "A GNU/Linux worm exploiting a bug in OpenSSL spreads through vulnerable Apache web servers, according to Symantec. The worm, which was first reported in Europe, targets several popular Linux distributions. See also the SecurityFocus vulnerability listing for the OpenSSL bug." sionide also writes: "Netcraft recently published a report which explains that a large portion of Apache systems are still unpatched (halfway down). To protect yourself please upgrade to OpenSSL 0.9.6g."

24 of 546 comments (clear)

  1. 0.9.6e is good by photon317 · · Score: 5, Informative


    Contrary to the slashdot post, you only need to be up to 0.9.6e to be safe. If you happen to just now be upgrading past this bug, 0.9.6g is even better, but if you're already running "e" you are safe. The article kinda alarmed me at first when I saw the "g", thinking there was a new exploit in "e" and I needed to upgrade again.

    --
    11*43+456^2
  2. Re:Open Source Vulnerable Too by delta407 · · Score: 3, Informative

    Just as vulnerable, perhaps. However, with open source software one has the ability to go in and fix the problem rather than waiting for some vendor to do it for you. That's where the power lies -- often, when a vulnerability is discovered, a report is sent out including exploit code and a patch to correct the issue.

    That's what makes open source software overall more secure -- the turnaround time with patches is a lot faster.

  3. Re:only Intel systems? by Anonymous Coward · · Score: 2, Informative

    Buffer overflow exploits (which could then be used to open a shell) involve executable machine code, which would be for a specific instruction set (e.g. Intel's).

  4. Glad to see Redhat helping out... by rworne · · Score: 1, Informative
    Got this message running up2date:

    Free service limited due to high load, please try again later (server 1001124282)


    Due to extremely high traffic, access to Red Hat Network is currently limited to subscription customers. Please try again later. If you would like to become a subscription customer, go to https://rhn.redhat.com/preview/priority_service.px t for more information.


    Well, I tried to be a good citizen. They must be getting hammered.
    --
    I tried every decent and legal way I could think of to resolve the issue w/the business before I rented the chicken suit
  5. RedHat 7.3 fix already in openssl-0.9.6b-24? by leighklotz · · Score: 4, Informative

    According to the Symantec report cited in the story, the bug in openssl is this which is reported as RHSA-2002-155, for which the the fix is openssl-0.9.6b-24.i386.rpm for RedHat 7.3 i386 (plus some other RPMs for other versions, or other RPMS for other versions of RedHat). Maybe the 'g' build from openssh.org is necessary, but RedHat seems to think they've already fixed in in their "b-24" release.

    1. Re:RedHat 7.3 fix already in openssl-0.9.6b-24? by Wdomburg · · Score: 3, Informative
      > Maybe the 'g' build from openssh.org is
      > necessary, but RedHat seems to think they've
      > already fixed in in their "b-24" release

      Red Hat typically backports security fixes from later releases to the version they shipped with the distribution release to avoid introducing unrelated changes.

      Note that RHSA-2002-155 is now superceded by RHSA-2002-160, which additionally addresses CAN-2002-0659.

      Matt

  6. Wrong Answer for Red Hat Linux by Anonymous Coward · · Score: 5, Informative

    If you follow the stoopid /. suggestion, and compile/install the new OpenSSL you are going to leave RPM nirvana and enter "random untracked apps linked against random untracked libraries" hell.

    The correct solution is to run:

    up2date -u

    OR, if you don't use the free Red Hat Network., run:

    rpm -Fvh ftp://updates.redhat.com/X.Y/en/os/i386/mod*
    rpm -Fvh ftp://updates.redhat.com/X.Y/en/os/i386/apache*
    r pm -Fvh ftp://updates.redhat.com/X.Y/en/os/i386/openssl*
    rpm -Fvh ftp://updates.redhat.com/X.Y/en/os/i686/openssl*

    Of course, replace X.Y with your version such as 7.0, 7.1, 7.2, 7.3, etc.

    PEOPLE! Package management is GOOD. You should get and apply the updated packages from your vendor/distro. Slashdot editors/submitters should get a clue instead of recommend solutions that ultimately fsck stuff up.

    1. Re:Wrong Answer for Red Hat Linux by yem · · Score: 4, Informative
      Retrieving ftp://updates.redhat.com/7.3/en/os/i386/openssl-0. 9.6b-28.i386.rpm

      So RedHat doesn't have the latest version on the ftp site?

      Don't worry. Redhat has an irritating policy of backporting fixes into previously released versions of each package. Its the revision number that counts. Check the date on that file.

      OT: Anyone care to elaborate on why apache 2.0.40 requires at least openssl 0.9.6e? I modified the configure script to accept 0.9.6c and it was happy enough...

      --
      No, I did not read the f***ing article!
    2. Re:Wrong Answer for Red Hat Linux by devnullkac · · Score: 3, Informative

      Well, I've been keeping my RedHat 7.3 up2date and I got hit. I didn't know it until I read this post, but last night TicketMaster Brasil (of all places) pinged my server one minute before the characteristic /tmp/.uubugtraq file appeared. The only thing that saved me was that the link phase of the worm compilation failed due to missing libraries (specifically, RC4 and MD5).

      I agree that package management is good, but it looks like RedHat is running behind on this one. I'll be closing down the SSL port on my firewall for now :-(

      Although I never saw it actually operating, you can probably clear the worm from your system via the following command (though you'll have to take measures to ensure it doesn't come right back):

      killall -9 .bugtraq

      The worm itself is nicely commented; it even has a disclaimer that the author isn't responsible for any harm:

      Peer-to-peer UDP Distributed Denial of Service (PUD)
      by contem@efnet

      <snip>

      I am not responsible for any harm caused by this program!
      I made this program to demonstrate peer-to-peer communication and
      should not be used in real life. It is an education program that
      should never even be ran at all, nor used in any way, shape or
      form. It is not the authors fault if it was used for any purposes
      other than educational.

      Doubt the disclaimer will keep him out of jail for life, though

      --
      What do you mean they cut the power? How can they cut the power, man? They're animals!
    3. Re:Wrong Answer for Red Hat Linux by ajs · · Score: 3, Informative

      Redhat has an irritating policy of backporting fixes into previously released versions of each package.

      Debian and FreeBSD among many others do the same thing.

  7. Could someone PLEASE fix the lead-in to this story by Anonymous Coward · · Score: 1, Informative

    the worm ONLY affects SSL-enabled Apache servers, not your run of the mill (non mod_ssl) servers.

  8. Incidents.org just released an advisory as well... by McCow · · Score: 4, Informative

    Seems a bit more detailed.

    Here is the alert:

    published: 2002-09-13
    OpenSSL, the collection of libraries and programs used by many popular
    programs, has had a number of security problems recently. It looks like
    the problems are not over yet.

    It has been discussed on several mailing lists, that aside from the
    exploit known for openssl 0.9.6d, there are exploits available for
    even the most recent version (0.9.6g).

    As a precaution, we recommend to disable programs that use openssl as
    much as possible. The exploits available so far focus on apache, which
    is probably the most common exposed service that is using openssl.
    As a precaution, we recommend disabling SSLv2, if you have to run an
    Apache server with mod_ssl enabled. The magic configuration lines
    are:

    SSLProtocol all -SSLv2
    SSLCipherSuite ALL:!ADH:!NULL:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:-LO W:+SSLv3:+TLSv1:-SSLv2:+EXP:+eNULL

    One of the openssl apache exploits was found to install a DDOS agent
    called 'bugtraq.c'. It uses port 2002 to communicate and can be used
    to launch a variety of DDOS attacks. This program uses UDP packets on
    port 2002 to communicate, not necessarily to attack.

    - //cow
    cow's go muu~

  9. Benevolent worms! by alienmole · · Score: 2, Informative
    The only solution that'll work in the real world, today, is to write worms that infect vulnerable machines and fix them.

    In fact, Microsoft has already pre-infected their own new OS, Windows XP. Maybe those draconian EULAs (you hereby agree that "M$ 0wnz j00") aren't such a dumb idea after all...

    Not that I like it, but the fact is that MS is targeting the sort of people we're worrying about, giving them what it thinks they need, whether they ask for it or want it, or not. We hate this because we're tech-savvy and want to control our machines, but for the average user, having someone else "0wn" their machine is probably, ultimately, a necessity. The question is just who's going to do the owning - virus writers and crackers, or Microsoft/Symantec etc.

  10. Re:only Intel systems? by Mr+Z · · Score: 3, Informative

    Actually, the stacks are usually pretty similar. (On most Linux boxes, stacks grow towards lower addresses, except on Alpha, IIRC. Heaps depend on the libc implementation, not the CPU.) As a result, the structure of a buffer flow vulnerability doesn't change much from machine to machine.

    The big difference that keeps this 'sploit tied to x86 is the instruction set. You can't run x86 instructions on other CPUs by default. (Ignoring FX!86 on Alpha, since it's not likely to step up to bat on your shellcode anyway.)

    --Joe
  11. Re:How do I know? by JonathanX · · Score: 2, Informative

    as root type openssl version

  12. Maybe the stats aren't as bad as they think... by orius_khan · · Score: 5, Informative

    "Almost half of the 22 million Apache HTTP sites found by the survey are running Apache/1.3.26, whilst only around a quarter of the Apache SSL sites are running this version, which fixes the chunked encoding vulnerability."

    Does this statistic take into account that some Linux distros (for example, RedHat) backport the bugfixes to earlier versions of Apache/OpenSSL/etc.??

    All of our servers are running Apache 1.3.23, but it's 1.3.23 release 14 which DOES include the fixes for the bugs mentioned on that page. If they are simply going by the Apache version number reported, then they may be over-estimating the number of vulnerable web servers by several million...

    But you all know what they say about statistics anyway...

    --
    Sometimes the best solution to morale problems is just to fire all the unhappy people.
  13. What to look for in your logs by GT_Alias · · Score: 5, Informative
    I noticed some strange stuff a week or two ago in my Apache logs, watch out for this stuff in your ssl_engine_log file:

    [27/Aug/2002 20:02:19 23525] [error] OpenSSL: error:1406B458:SSL routines:GET_CLIENT_ MASTER_KEY:key arg too long
    [27/Aug/2002 20:02:22 24087] [error] OpenSSL: error:1406B458:SSL routines:GET_CLIENT_ MASTER_KEY:key arg too long

    Thing is though, that "key arg too long" error is part of the July patch to OpenSSL, so you won't see it if you aren't patched. Hopefully this log signature doesn't become as familiar as nimda scans.

  14. Re:Blocking UDP 2002 isn't the answer. by Anonymous Coward · · Score: 1, Informative

    Look my firewall blocks EVERY port that hasn't been deemed necessary. Its a server so I don't need gcc
    Just offering a quick band-aid to get through the weekend.
    Thanks for the advice though. Really.

  15. Rubbish (was: Mac Os X goes down in flames...) by andreas_ky · · Score: 2, Informative
    Some anonymous coward wrote:
    Uh-oh. Steve "I've only stolen *BSD twice in my life" Jobs is depending on Apache for his "Mac OS X Server" product! Too bad his effete, techno-wannabe's never designed an operating system in their life, or else they could help fix the Apache bugs.

    OpenSSL 0.9.6e is perfectly safe. And that was available via Software Update on 30 Jul 2002.

    Andreas

  16. some earlier are ok too -- vendors have backported by Xylantiel · · Score: 5, Informative
    In Debian, at least, the fixes were backported to 0.9.6c. Updated packages fixing this problem were released almost a month an a half ago for all major distributions. (July 30 for Debian., packages numbered 0.9.6c-2.woody.0)

    Also as mentioned by another poster, the netcraft report about the number of unpatched apache servers is complete nonsense. This is an openSSL bug, which has nothing to do with the apache version number, which what they measure and use to conclude people haven't updated.

    (presumably older apache versions don't work with the newer openSSL libraries. Guess what... that's why the fixes were backported!)

  17. Re:Nobody is Answering by Anonymous Coward · · Score: 2, Informative

    It's an OpenSSL bug. This worm happens to use Apache and mod_ssl to get to OpenSSL in order to exploit OpenSSL, and it happens to use shellcode that only works on Linux on x86 platforms.

  18. Re:only effects https by drsoran · · Score: 2, Informative

    If your server is not listening to 443 (HTTPS by nature) then there is obviously no point of configuring your firewall to block this.

    Or rather, if you're server isn't listening on port 443 there's no point in opening this port up in your firewall. Default deny people. Default deny. Portmap may not be vulnerable today but someone may discover a bug in it at 3am tomorrow while you're happily sleeping in bed and use it to exploit your box. Just block everything and open up only the services you need. And of those servers, think about if you really need them open or not and if you could be using a more secure program to do the same thing.. perhaps DJB's tools like publicfile and djbdns for example to replace these huge monolithic apps for a simple home box with a couple dozen web pages.

  19. Re:Signature? by bird · · Score: 2, Informative

    In my ssl error log:

    [Fri Sep 13 03:24:07 2002] [error] mod_ssl: SSL handshake failed (server obscured:443, client obscured2) (OpenSSL library error follows)
    [Fri Sep 13 03:24:07 2002] [error] OpenSSL: error:1406B458:lib(20):func(107):reason(1112)

    A little bit before that, in my http log:
    162.33.137.47 - - [13/Sep/2002:03:23:58 -0700] "GET / HTTP/1.1" 400 383 "-" "-"

    This is consistent with the alert: first an HTTP request to get the server signature, then an HTTPS attempt to exploit.

  20. Re:Nice boiler-plate advisory by sheriff_p · · Score: 3, Informative

    Mod parent down. Just because Mr Baker is too lazy or ignorant to find this: http://enterprisesecurity.symantec.com/products/pr oducts.cfm?productID=65
    hardly seems to mean his post is in the least insightful.

    --
    Score:-1, Funny