Skip to content

Commit

Permalink
Support configurable limit on depth of JSON parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
martinhsv committed Nov 16, 2021
1 parent ec86b24 commit ac79c1c
Show file tree
Hide file tree
Showing 11 changed files with 5,924 additions and 5,729 deletions.
5 changes: 2 additions & 3 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
v3.x.y - YYYY-MMM-DD (to be released)
-------------------------------------




- Support configurable limit on depth of JSON parsing
[@theMiddleBlue, @martinhsv]

v3.0.5 - 2021-Jul-07
--------------------
Expand Down
2 changes: 2 additions & 0 deletions headers/modsecurity/rules_set_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ class RulesSetProperties {
PropertyNotSetConfigBoolean);

to->m_argumentsLimit.merge(&from->m_argumentsLimit);
to->m_requestBodyJsonDepthLimit.merge(&from->m_requestBodyJsonDepthLimit);
to->m_requestBodyLimit.merge(&from->m_requestBodyLimit);
to->m_responseBodyLimit.merge(&from->m_responseBodyLimit);

Expand Down Expand Up @@ -464,6 +465,7 @@ class RulesSetProperties {
ConfigBoolean m_tmpSaveUploadedFiles;
ConfigBoolean m_uploadKeepFiles;
ConfigDouble m_argumentsLimit;
ConfigDouble m_requestBodyJsonDepthLimit;
ConfigDouble m_requestBodyLimit;
ConfigDouble m_requestBodyNoFilesLimit;
ConfigDouble m_responseBodyLimit;
Expand Down
Loading

0 comments on commit ac79c1c

Please sign in to comment.