Skip to content

Commit d6c1088

Browse files
authored
Merge pull request #2795 from martinhsv/v3/master
Multipart parsing fixes and new MULTIPART_PART_HEADERS collection
2 parents 648cad3 + fa6e418 commit d6c1088

13 files changed

+6605
-6187
lines changed

CHANGES

+2
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+
- Multipart parsing fixes and new MULTIPART_PART_HEADERS collection
5+
[Issue #2795 - @terjanq, @martinhsv]
46
- Prevent LMDB related segfault
57
[Issue #2755, #2761 - @dvershinin]
68
- Fix msc_transaction_cleanup function comment typo

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ TESTS+=test/test-cases/regression/variable-MULTIPART_CRLF_LF_LINES.json
225225
TESTS+=test/test-cases/regression/variable-MULTIPART_FILENAME.json
226226
TESTS+=test/test-cases/regression/variable-MULTIPART_INVALID_HEADER_FOLDING.json
227227
TESTS+=test/test-cases/regression/variable-MULTIPART_NAME.json
228+
TESTS+=test/test-cases/regression/variable-MULTIPART_PART_HEADERS.json
228229
TESTS+=test/test-cases/regression/variable-MULTIPART_STRICT_ERROR.json
229230
TESTS+=test/test-cases/regression/variable-MULTIPART_UNMATCHED_BOUNDARY.json
230231
TESTS+=test/test-cases/regression/variable-OUTBOUND_DATA_ERROR.json

headers/modsecurity/transaction.h

+2
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ class TransactionAnchoredVariables {
201201
m_variableGeo(t, "GEO"),
202202
m_variableRequestCookiesNames(t, "REQUEST_COOKIES_NAMES"),
203203
m_variableFilesTmpNames(t, "FILES_TMPNAMES"),
204+
m_variableMultipartPartHeaders(t, "MULTIPART_PART_HEADERS"),
204205
m_variableOffset(0),
205206
m_variableArgsNames("ARGS_NAMES", &m_variableArgs),
206207
m_variableArgsGetNames("ARGS_GET_NAMES", &m_variableArgsGet),
@@ -282,6 +283,7 @@ class TransactionAnchoredVariables {
282283
AnchoredSetVariable m_variableGeo;
283284
AnchoredSetVariable m_variableRequestCookiesNames;
284285
AnchoredSetVariable m_variableFilesTmpNames;
286+
AnchoredSetVariable m_variableMultipartPartHeaders;
285287

286288
int m_variableOffset;
287289

0 commit comments

Comments
 (0)