Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old June 17th, 2004, 10:48 PM
sewage sewage is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 50 sewage User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 22 m 35 sec
Reputation Power: 5
Apache access logs

I am running an Apache 2.0.49 server on a win 2000 box.
Every once in a while I get an entry in my access log that looks like this:

SEARCH /\x90\x02\xb1\x02\xb1\....

but much, much longer!

what in the heck is this? a search bot? someone searching for exploits?

Reply With Quote
  #2  
Old June 21st, 2004, 03:10 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
It relates to an exploit for IIS, Nimbda I believe?

It poses no threat to Apache, aside from the fact that your logs get massive when unattended.

I've been trying to find a way for Apache NOT to log SEARCH methods, and simply log GET and POST methods... since I'm pretty positive I've set up my server to *only* accept those two methods...

Reply With Quote
  #3  
Old July 16th, 2004, 05:17 PM
Jenda Jenda is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 1 Jenda User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by MadCowDzz
It relates to an exploit for IIS, Nimbda I believe?

It poses no threat to Apache, aside from the fact that your logs get massive when unattended.

I've been trying to find a way for Apache NOT to log SEARCH methods, and simply log GET and POST methods... since I'm pretty positive I've set up my server to *only* accept those two methods...

Please tell us how to do exactly. Thanx a lot.

Reply With Quote
  #4  
Old October 20th, 2004, 02:17 PM
zedmelon zedmelon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Colorado, USA
Posts: 1 zedmelon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally Posted by MadCowDzz
I've been trying to find a way for Apache NOT to log SEARCH methods...
I found this thread through Googling the same issue (#5 in apache+log+search). Have you since found a way to stifle these 32797-character log entries?

(not that I'm counting)

Better yet, could the server be configured to disregard them altogether?

Reply With Quote
  #5  
Old October 20th, 2004, 09:37 PM
Viper_SB's Avatar
Viper_SB Viper_SB is offline
Moderator
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Canada
Posts: 330 Viper_SB User rank is Private First Class (20 - 50 Reputation Level)Viper_SB User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 4 h 51 m 6 sec
Reputation Power: 5
Yes it can, you can set apache to log only GET or POST etc.. let me look it up.

Reply With Quote
  #6  
Old November 9th, 2004, 01:05 PM
OCKAP OCKAP is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 1 OCKAP User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Answer

# Just add/(or replace if needed) following lines in your
# apache2 httpd.conf
#
SetEnvIfNoCase Request_Method "^(GET|POST)" goodlog
CustomLog logs/access_log common env=goodlog
#
#

Reply With Quote
  #7  
Old November 9th, 2004, 06:55 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
OCKAP, would this work for my ErrorLog as well?

Reply With Quote
  #8  
Old November 9th, 2004, 06:58 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
keeping in mind that this is only a testing environment... obviously in production i'd want to know any intrusion attempts.

Reply With Quote
  #9  
Old February 1st, 2005, 10:12 AM
KrnlPanic KrnlPanic is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 2 KrnlPanic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 49 sec
Reputation Power: 0
Another way (as there are many)

#Handle exploits, don't log in access.log file
SetEnvIf Request_URI "^/SEARCH$" exploit
CustomLog logs/access.log common env=!exploit
#Handle exploits, log in exploit.log file
CustomLog logs/exploit.log combined env=exploit

By using a '!' (bang) before the 'exploit' tag you are telling apache not to log those requests,
alternativly env=exploit for the exploit.log file will log only those IPS attempting to exploit your box..

Now that your access.log file is clear from these annoyances, you can freely
search through it without having to grumble past the ##,### characters.

And, you now have a record of all the 'leet' ones attempting to intrude your box.

KP

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Apache access logs


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway