Skip to content

Commit

Permalink
Having the Sec[Request|Response]BodyAccess deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
zimmerle committed Dec 23, 2020
1 parent 62d35fb commit ae128ad
Show file tree
Hide file tree
Showing 6 changed files with 928 additions and 780 deletions.
15 changes: 13 additions & 2 deletions modsecurity.conf-recommended
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ SecRuleEngine DetectionOnly

# -- Request body handling ---------------------------------------------------

#
# Allow ModSecurity to access request bodies. If you don't, ModSecurity
# won't be able to see any POST parameters, which opens a large security
# hole for attackers to exploit.
#
SecRequestBodyAccess On
# IMPORTANT: SecRequestBodyAccess is no longer supported. The Request Body
# will be processed whenever a variable depends on it.
#
# SecRequestBodyAccess On
#


# Enable XML request body parser.
Expand Down Expand Up @@ -146,7 +151,13 @@ SecRule TX:/^MSC_/ "!@streq 0" \
# Do keep in mind that enabling this directive does increases both
# memory consumption and response latency.
#
SecResponseBodyAccess On
# IMPORTANT: SecResponseBodyAccess is no longer supported. The Response Body
# will be processed whenever a variable depends on it.
#
# SecResponseBodyAccess On
#
#


# Which response MIME types do you want to inspect? You should adjust the
# configuration below to catch documents but avoid static files
Expand Down
Loading

0 comments on commit ae128ad

Please sign in to comment.