Re: Why is our RewriteMap usage working for some URLs & not others?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> However, some requests, such as the following, remain logged by
> Apache even when they are from IP addresses in the block list,
> and regardless of whether we have LogLevel set to info or warn:
>
>     /file%3a/////etc%2fpasswd%00
>     /%0d%0aSet-Cookie:crlfinjection=1;
>     /cgi-bin.%2e/.%2e/.%2e/.%2e/bin/sh
>     //%2f..=%5c..=%5c..=%5cetc%5cpasswd%00

Maybe they are rejected so early that mod_rewrite is skipped? A quick
way to verify would be to set an environment variable in the same
stanza and log it too.

To resolve, you could invert the CustomLog and only log when an envvar
is set. Then flip the logic in the rewrite.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux