Re: mod_security

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

 



at the end of the rules ( or in an included rule file with the highest number) put this line to reverse the effect of that rule in question
SecRuleRemoveById       xxxxxxx

where xxxxxxx is the rule ID you can see from the debug output.




----- Original Message ----- From: "Grant Peel" <gpeel@xxxxxxxxxxxxx>
To: <users@xxxxxxxxxxxxxxxx>
Sent: Friday, October 19, 2007 9:48 AM
Subject:  mod_security


Hi all,

I installed mod_security yesterday on one server and am in the process of
debugging.

Along with mod_security itself, I have installed a number of rules, most of
which are not causing any issues. The two below are causing some problems
though:

Number one seems to do its job too well as it breaks any URL pages that use
../../ etc. Our clients use those in a number of places, most of which are
image loading i.e. <img = "../../images/myimage.gif">

Any ideas on how I can re enable it and not break realative links like the
one above?

   # 1. Prevent path traversal (..) attacks
#    SecFilter "../"


The second one breaks the ability to read an email in Openwebmail (v2.51).
Any ideas on this?

   # 2. Prevent XSS atacks (HTML/Javascript injection)
#    SecFilter "<(.|n)+>"

TIA,

-Grant


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-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