Slow Site

Having problems with the board or the online guidebook?
Suggestions welcome.
User avatar
ray
Site Admin
Posts: 841
Joined: Thu Sep 19, 2002 2:48 pm

Slow Site

Post by ray »

Sorry for the slow site this weekend. Worm infected machines have been sending an insane amount of requests to the site which is essentially resulting in a denial of service attack.

I'm working at locating a script to prevent the web server from processing these requests.
Last edited by ray on Mon Jun 19, 2006 12:59 am, edited 1 time in total.
User avatar
ray
Site Admin
Posts: 841
Joined: Thu Sep 19, 2002 2:48 pm

Post by ray »

I think I fixed it. I added the following to .htaccess:
RewriteEngine ON
RewriteCond %{QUERY_STRING} ^(.*)wget\%20 [OR]
RewriteCond %{QUERY_STRING} ^(.*)echr(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)Echr(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)esystem(.*) [OR]
RewriteCond %{QUERY_STRING} ^(.*)highlight=\%2527 [OR]
RewriteCond %{HTTP_COOKIE}% s:(.*):\%22test1\%22\%3b
RewriteRule ^.*$ http://127.0.0.1/ [L,R=301]

This should block the following traffic:
64.27.4.160 - - [18/Jun/2006:20:58:07 -0400] "GET /viewtopic.php?t=3492&highlight=%2527%252Esystem(chr(112)%252Echr
(101)%252Echr(114)%252Echr(108)%252Echr(32)%252Echr(45)%
252Echr(101)%252Echr(32)%252Echr(34)%252Echr(112)%252Echr(
114)%252Echr(105)%252Echr(110)%252Echr(116)%252Echr(32)%
252Echr(113)%252Echr(40)%252Echr(106)%252Echr(83)%252Echr
(86)%252Echr(111)%252Echr(119)%252Echr(77)%252Echr(115)%2
52Echr(100)%252Echr(41)%252Echr(34))%252E%2527 HTTP/1.0" 301 759 "-" "Mozilla/4.0"
wirednut
Posts: 58
Joined: Sat Feb 18, 2006 1:58 am

Post by wirednut »

That's sweet. I didn't know they were using smilies in shell scripts these days.
[url]http://www.wirednut.com[/url] - mid-atlantic climbing news, photos, rss
dhoyne
Posts: 1240
Joined: Mon Jun 30, 2003 5:47 pm

Post by dhoyne »

Anyone else see that and hear the wa-wa-wa-wa sound of adults talking in a Peanuts cartoon?
Sarcasm is a tool the weak use to avoid confrontation. People with any balls just outright lie.

[quote="Meadows"]I try not to put it in my mouth now, but when I do, I hold it with just my lips.[/quote]
nrvale0
Posts: 4
Joined: Thu Mar 23, 2006 1:17 pm

mod_security

Post by nrvale0 »

User avatar
SCIN
Posts: 4932
Joined: Fri Sep 20, 2002 1:19 pm

Post by SCIN »

Very nice. Thanks.
Yo Ray jack dynomite! Listen to my beat box! Bew ch ch pff BEW ch ch pfff! Sweet!

-Horatio
Mike Jones
Posts: 241
Joined: Wed Oct 19, 2005 12:55 pm

Post by Mike Jones »

Beat me to it, Nathan. Additionally Ray, do you have snort on or out in front of your web server?
Who is Mike Jones?
User avatar
SCIN
Posts: 4932
Joined: Fri Sep 20, 2002 1:19 pm

Post by SCIN »

I'd rather not do snort flexible response (inline). I'm not a big fan of session sniping unless you want to buy Sourcefire's 3D system for me.
Yo Ray jack dynomite! Listen to my beat box! Bew ch ch pff BEW ch ch pfff! Sweet!

-Horatio
Mike Jones
Posts: 241
Joined: Wed Oct 19, 2005 12:55 pm

Post by Mike Jones »

i know this thread is about a month old, but i came across a decent mod_security overview and thought you might enjoy -- http://www.howtoforge.com/apache_mod_security_p2
Who is Mike Jones?
Post Reply