Skip to content

Commit 4fc4ba5

Browse files
authored
Merge pull request #2657 from martinhsv/v2/master
Add SecRequestBodyJsonDepthLimit to modsecurity.conf-recommended
2 parents df4bffc + 60be059 commit 4fc4ba5

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
DD mmm YYYY - 2.9.x (to be released)
22
-------------------
33

4+
* Add SecRequestBodyJsonDepthLimit to modsecurity.conf-recommended
5+
[Issue #2647 @theMiddleBlue, @airween, @877509395 ,@martinhsv]
46
* IIS: Update dependencies for Windows build as of v2.9.5
57
[@martinhsv]
68

modsecurity.conf-recommended

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ SecRequestBodyInMemoryLimit 131072
5858
#
5959
SecRequestBodyLimitAction Reject
6060

61+
# Maximum parsing depth allowed for JSON objects. You want to keep this
62+
# value as low as practical.
63+
#
64+
SecRequestBodyJsonDepthLimit 512
65+
6166
# Verify that we've correctly processed the request body.
6267
# As a rule of thumb, when failing to process a request body
6368
# you should reject the request (when deployed in blocking mode)

0 commit comments

Comments
 (0)