Skip to content

Commit c072ac2

Browse files
authored
Merge pull request #2656 from martinhsv/v3/master
Add SecRequestBodyJsonDepthLimit to modsecurity.conf-recommended
2 parents 19d50f4 + 0275c88 commit c072ac2

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
v3.x.y - YYYY-MMM-DD (to be released)
22
-------------------------------------
33

4+
- Add SecRequestBodyJsonDepthLimit to modsecurity.conf-recommended
5+
[Issue #2647 @theMiddleBlue, @airween, @877509395 ,@martinhsv]
46

57

68
v3.0.6 - 2021-Nov-19

modsecurity.conf-recommended

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ SecRequestBodyNoFilesLimit 131072
5252
#
5353
SecRequestBodyLimitAction Reject
5454

55+
# Maximum parsing depth allowed for JSON objects. You want to keep this
56+
# value as low as practical.
57+
#
58+
SecRequestBodyJsonDepthLimit 512
59+
5560
# Verify that we've correctly processed the request body.
5661
# As a rule of thumb, when failing to process a request body
5762
# you should reject the request (when deployed in blocking mode)

0 commit comments

Comments
 (0)