mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-01 03:57:47 +03:00
Adds support to the MULTIPART_STRICT_ERROR variable
Still missing to check: - MULTIPART_FILE_LIMIT_EXCEEDED - REQBODY_PROCESSOR_ERROR - MULTIPART_HEADER_FOLDING - MULTIPART_INVALID_HEADER_FOLDING
This commit is contained in:
@@ -36,17 +36,22 @@ class Multipart {
|
||||
void checkForCrlfLf(const std::string &blob);
|
||||
|
||||
ModSecurityStringVariables variables;
|
||||
|
||||
bool crlf;
|
||||
bool containsDataAfter;
|
||||
bool containsDataBefore;
|
||||
bool lf;
|
||||
bool boundaryStartsWithWhiteSpace;
|
||||
bool boundaryIsQuoted;
|
||||
bool missingSemicolon;
|
||||
bool invalidQuote;
|
||||
|
||||
private:
|
||||
void debug(int a, std::string str) {
|
||||
std::cout << "Debug: " << str << std::endl;
|
||||
}
|
||||
std::string m_boundary;
|
||||
std::string m_header;
|
||||
|
||||
bool m_boundaryStartsWithWhiteSpace = false;
|
||||
bool m_boundaryIsQuoted = false;
|
||||
};
|
||||
|
||||
} // namespace RequestBodyProcessor
|
||||
|
Reference in New Issue
Block a user