Psst! Did you know DevelopmentNow is a mobile web site design agency?

Contact us for help mobilizing your site, or to sign up for our beta Mobile Web SDK!
all groups > iis security > september 2005 >

iis security : Drop Requests Containing Specific characters?


Martin Smith
9/6/2005 3:32:01 AM
Hi,

I am regularly getting error emails from my web pages due to automated
attempts to post maliciously crafted form content in an attempt to see if it
can be used for spamming. (Issue discussed further here
http://www.anders.com/cms/75/Crack.Attempt/Spam.Relay).

There is a vast amount of IPs that are used and blocking the ones used so
far probably won't help that much.

However all of the requests contain the following string:

"This+is+a+multi-part+message+in+MIME+format."

Is there any way (in IIS6) to configure it to just drop any posted requests
with this string?

Cheers,

David Wang [Msft]
9/7/2005 6:11:16 AM
No, there are no built in features in any web server to filter/reject by
character sequence. This ability belongs in an extension module.

URLScan has this ability but only for the URL. QueryString is naturally
unknown decoding and hence cannot be realistically filtered for character
sequence. Request Headers and Form Entity are even more dubious to scan.

See this blog entry for the rationale and what is really going on:
http://blogs.msdn.com/david.wang/archive/2005/07/18/Why_URLScan_ignores_querystring_for_DenyUrlSequences.aspx

--
//David
IIS
http://blogs.msdn.com/David.Wang
This posting is provided "AS IS" with no warranties, and confers no rights.
//
[quoted text, click to view]
Hi,

I am regularly getting error emails from my web pages due to automated
attempts to post maliciously crafted form content in an attempt to see if it
can be used for spamming. (Issue discussed further here
http://www.anders.com/cms/75/Crack.Attempt/Spam.Relay).

There is a vast amount of IPs that are used and blocking the ones used so
far probably won't help that much.

However all of the requests contain the following string:

"This+is+a+multi-part+message+in+MIME+format."

Is there any way (in IIS6) to configure it to just drop any posted requests
with this string?

Cheers,

Martin

AddThis Social Bookmark Button