From: Bhagyashree Bantwal Date: Thu, 8 Jan 2015 18:16:29 +0000 (-0500) Subject: Http Inspect Profile changes X-Git-Tag: 3.0.0-233~1090 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff58b6078f595221d8962737489facabe1b453b9;p=thirdparty%2Fsnort3.git Http Inspect Profile changes --- diff --git a/lua/snort_defaults.lua b/lua/snort_defaults.lua index 2ff570e09..f9a19901d 100644 --- a/lua/snort_defaults.lua +++ b/lua/snort_defaults.lua @@ -219,11 +219,11 @@ all = post_depth = -1, chunk_length = 500000, ascii = true, - multiple_slash = true, + multi_slash = true, directory = true, webroot = true, - double_decoding = true, - u_encoding = true, + double_decode = true, + u_encode = true, bare_byte = true, iis_unicode = true, iis_backslash = true, @@ -232,10 +232,11 @@ all = non_strict = true, normalize_utf = true, normalize_javascript = false, - max_hdr_len = 0, + max_header_length = 0, max_headers = 0, max_spaces = 200, - max_javascript_whitespaces = 200 + max_javascript_whitespaces = 200, + whitespace_chars ='0x9 0xb 0xc 0xd' } apache = @@ -246,7 +247,7 @@ apache = post_depth = -1, chunk_length = 500000, ascii = true, - multiple_slash = true, + multi_slash = true, directory = true, webroot = true, utf_8 = true, @@ -254,10 +255,11 @@ apache = non_strict = true, normalize_utf = true, normalize_javascript = false, - max_hdr_len = 0, + max_header_length = 0, max_headers = 0, max_spaces = 200, - max_javascript_whitespaces = 200 + max_javascript_whitespaces = 200, + whitespace_chars ='0x9 0xb 0xc 0xd' } iis = @@ -268,11 +270,11 @@ iis = post_depth = -1, chunk_length = 500000, ascii = true, - multiple_slash = true, + multi_slash = true, directory = true, webroot = true, - double_decoding = false, - u_encoding = true, + double_decode = false, + u_encode = true, bare_byte = true, iis_unicode = true, iis_backslash = true, @@ -281,10 +283,11 @@ iis = non_strict = true, normalize_utf = true, normalize_javascript = false, - max_hdr_len = 0, + max_header_length = 0, max_headers = 0, max_spaces = 200, - max_javascript_whitespaces = 200 + max_javascript_whitespaces = 200, + whitespace_chars ='0x9 0xb 0xc 0xd' } iis_40 = @@ -295,11 +298,11 @@ iis_40 = post_depth = -1, chunk_length = 500000, ascii = true, - multiple_slash = true, + multi_slash = true, directory = true, webroot = true, - double_decoding = true, - u_encoding = true, + double_decode = true, + u_encode = true, bare_byte = true, iis_unicode = true, iis_backslash = true, @@ -308,10 +311,11 @@ iis_40 = non_strict = true, normalize_utf = true, normalize_javascript = false, - max_hdr_len = 0, + max_header_length = 0, max_headers = 0, max_spaces = 200, - max_javascript_whitespaces = 200 + max_javascript_whitespaces = 200, + whitespace_chars ='0x9 0xb 0xc 0xd' } iis_50 = @@ -322,11 +326,11 @@ iis_50 = post_depth = -1, chunk_length = 500000, ascii = true, - multiple_slash = true, + multi_slash = true, directory = true, webroot = true, - double_decoding = true, - u_encoding = true, + double_decode = true, + u_encode = true, bare_byte = true, iis_unicode = true, iis_backslash = true, @@ -335,10 +339,11 @@ iis_50 = non_strict = true, normalize_utf = true, normalize_javascript = false, - max_hdr_len = 0, + max_header_length = 0, max_headers = 0, max_spaces = 200, - max_javascript_whitespaces = 200 + max_javascript_whitespaces = 200, + whitespace_chars ='0x9 0xb 0xc 0xd' } ftp_commands = -- build from ftp_default_commands diff --git a/src/service_inspectors/http_inspect/hi_module.cc b/src/service_inspectors/http_inspect/hi_module.cc index cf5ebaffc..ff787e3e4 100644 --- a/src/service_inspectors/http_inspect/hi_module.cc +++ b/src/service_inspectors/http_inspect/hi_module.cc @@ -323,6 +323,9 @@ static const Parameter hi_profile_server_params[] = { "normalize_utf", Parameter::PT_BOOL, nullptr, "true", "normalize response bodies with UTF content-types" }, + { "normalize_javascript", Parameter::PT_BOOL, nullptr, "true", + "normalize javascript between