From a5f7b21fade938b72683a712a69589828c2a16de Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 15 Mar 2009 20:35:49 +0000 Subject: added default rewrite rules for joomlas --- files/conf.d/joomla.inc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 files/conf.d/joomla.inc (limited to 'files') diff --git a/files/conf.d/joomla.inc b/files/conf.d/joomla.inc new file mode 100644 index 0000000..1535ce3 --- /dev/null +++ b/files/conf.d/joomla.inc @@ -0,0 +1,30 @@ +########## Begin - Rewrite rules to block out some common exploits +# against joomla's +# +# Block out any script trying to set a mosConfig value through the URL +RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR] + +# Block out any script trying to base64_encode crap to send via URL +RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] + +# Block out any script that includes a