Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #2 from emphazer/patch-2
Browse files Browse the repository at this point in the history
Update REQUEST-903.9001-DRUPAL-EXCLUSION-RULES.conf
  • Loading branch information
dune73 committed Oct 10, 2016
2 parents 76b0f28 + 8cfc158 commit dff5e9f
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions rules/REQUEST-903.9001-DRUPAL-EXCLUSION-RULES.conf
Expand Up @@ -312,4 +312,52 @@ SecAction "id:9001390,\
ctl:ruleRemoveTargetById=942450;REQUEST_COOKIES_NAMES,\
ctl:ruleRemoveTargetById=942450;REQUEST_COOKIES"


#
# [ WYSIWYG/CKEditor assets and upload ]
#
# Disable the unnecessary requestBodyAccess and for binary uploads
#
#
#
SecRule REQUEST_METHOD "@streq POST" \
"id:'9001390',\
phase:1,\
t:none,\
pass,\
nolog,\
noauditlog,\
chain"
SecRule REQUEST_FILENAME "/admin/content/assets/add/[a-z]+$" chain
SecRule REQUEST_COOKIES:/S?SESS[a-f0-9]+/ "^[a-zA-Z0-9_-]+" \
ctl:requestBodyAccess=Off

SecRule REQUEST_METHOD "@streq POST" \
"id:'9001400',\
phase:1,\
t:none,\
pass,\
nolog,\
noauditlog,\
chain"
SecRule REQUEST_FILENAME "/admin/content/assets/manage/[0-9]+$" chain
SecRule ARGS:destination "@streq admin/content/assets" chain
SecRule REQUEST_HEADERS:Content-Length "@gt 31486341" chain
SecRule REQUEST_COOKIES:/S?SESS[a-f0-9]+/ "^[a-zA-Z0-9_-]+" \
ctl:requestBodyAccess=Off

SecRule REQUEST_METHOD "@streq POST" \
"id:'9001410',\
phase:1,\
t:none,\
pass,\
nolog,\
noauditlog,\
chain"
SecRule REQUEST_FILENAME "/file/ajax/field_asset_[a-z0-9_]+/[ua]nd/0/form-[a-z0-9A-Z_-]+$" chain
SecRule REQUEST_HEADERS:Content-Length "@gt 31486341" chain
SecRule REQUEST_HEADERS:Content-Type "@streq multipart/form-data" chain
SecRule REQUEST_COOKIES:/S?SESS[a-f0-9]+/ "^[a-zA-Z0-9_-]+" \
ctl:requestBodyAccess=Off

SecMarker END-DRUPAL-RULE-EXCLUSIONS

0 comments on commit dff5e9f

Please sign in to comment.