%{QUERY_STRING} as RewriteCond crashes with long URLs

Topics: Developer Forum
Jun 11, 2008 at 4:50 PM
We've got sql injection attemps with very long URLs like these:


Combined with this rule:

    RewriteCond %{QUERY_STRING} var_bereich
    RewriteRule .* /index.asp [R]

the site pool crashes. It restarts under a new process id.

I already tried the new 1.2.14b version. Our system is IIS7 under W2008.
Jun 11, 2008 at 8:18 PM

Got it.

I just duplicated this behavior.  Let me look into it.

Jun 11, 2008 at 9:39 PM
In this case, the crash is being caused by logging logic. 
One workaround then, is to turn off the logging, or turn it down to below 3.

I've opened a workitem for this.

It is fixed in change set 33905.

This fix will be in the next build of 1.2.14b preview.
Jun 12, 2008 at 7:58 AM
But I also get the error setting the log level to 0.
Jun 12, 2008 at 2:43 PM
hmmm, sorry about that.  Yes of course.   The error occurs during formatting of log messages.  The log level setting only affects whether the messages get displayed.

So, no workaround for the problem with long URLs.

Try the latest binary.
Jun 13, 2008 at 5:52 PM
Thanks a lot, seems to work ...
Jun 19, 2008 at 6:12 AM
ps: don't forget, IIRF is now donationware.
I am now accepting donations on behalf of my favorite charity.
If you find IIRF useful, consider donating.