Solved

mod_security and secfilter

Posted on 2007-03-26
2
283 Views
Last Modified: 2009-07-29
I just install mod_security to prevent user from typing shell command in phpshell script.
I use :

Secfilter ls
Secfiler cat
Secfilter rm

then problem come when some use wanna access their php script named "catalogue.php" and using view.php?cat=1

also user of wordpress who wanna access options-permalink.php ( rm in permalink ) in the file name.

any clue or hint to solve this problem.

thanks in advance
0
Comment
Question by:hendri2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 19

Accepted Solution

by:
BrianGEFF719 earned 500 total points
ID: 18798057
You might try something like:

SecFilterEngine On
SecFilterScanPOST On
SecFilterSelective "SCRIPT_FILENAME" "options-permalink\.php " "allow,log,status:412"
SecFilterSelective "QUERY_STRING" "cat" "allow,log,status:412"
SecFilterSelective "SCRIPT_FILENAME" "catalogue\.php" "allow,log,status:412"
0
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 18798072
btw, that should go in your .htaccess file.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
This article discusses four methods for overlaying images in a container on a web page
The purpose of this video is to demonstrate how to reset a WordPress password if you are locked out and cannot reset the password. A typical use would be if you cannot access the email to which WordPress would send the password recovery email to…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…

695 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question