store | blogs | forums | twitter | facebook | wiki | mailing lists | downloads | support portal
Atomic Secure Linux
It is currently Thu May 23, 2013 1:42 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic Share/Bookmark  [ 1 post ] 
Author Message
 Post subject: Whitelisting an "always" false positive argument
Unread postPosted: Sun Jul 15, 2012 1:45 pm 
Offline
New Forum User
New Forum User

Joined: Sun Jul 15, 2012 1:36 pm
Posts: 1
Location: France
Hello

I have to deal with false positives customization...

For the exception based on LocationMatch + SecRuleRemoveById no problems!
But when i need to whitelist a POST/GET parameter i encounter troubles.

I tried much possibilities but none of them succeed. (Apache restarts but my whitelisted argument is not considered (still filtered)

The argument i want to blacklist is "msg" (as you can imagine it s the content of a message posted by a user, so it may contains much false positive due to smileys, html codes etc...)

Below some rules i actually put in my exception file file:
SecRule REQUEST_FILENAME " @streq /" "phase:1,t:none,nolog,pass,ctl:ruleRemoveById=*;ARGS:msg"
(not working, arg msg still filtered)

or
SecRule REQUEST_FILENAME "@streq /" "phase:1,t:none,nolog,pass,ctl:ruleRemoveById=000000-999999;ARGS:msg"
(doesn't work)

SecRuleUpdateTargetById * "!ARGS:msg"
(not working)

SecRuleRemoveByMsg .*SQL.* "ARGS:msg"
(this one works but has the side effect of removing SQL detection for all the pages)

So as you understood i need to fully whitelist an argument and i can't, any help would be really appreciated.
For your information i can't whitelist the Location as it is an index.php file with much functions in the backend.

Thanks in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic Share/Bookmark  [ 1 post ] 

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group