"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/service_inspectors/http_inspect/http_inspect.cc" between
snort3-3.1.29.0.tar.gz and snort3-3.1.30.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

http_inspect.cc  (snort3-3.1.29.0):http_inspect.cc  (snort3-3.1.30.0)
skipping to change at line 161 skipping to change at line 161
assert(params); assert(params);
auto unreserved_chars = GetUnreservedChars(params->uri_param.unreserved_char ); auto unreserved_chars = GetUnreservedChars(params->uri_param.unreserved_char );
auto bad_chars = GetBadChars(params->uri_param.bad_characters); auto bad_chars = GetBadChars(params->uri_param.bad_characters);
auto xff_headers = GetXFFHeaders(params->xff_headers); auto xff_headers = GetXFFHeaders(params->xff_headers);
std::string js_norm_ident_ignore; std::string js_norm_ident_ignore;
for (auto s : params->js_norm_param.ignored_ids) for (auto s : params->js_norm_param.ignored_ids)
js_norm_ident_ignore += s + " "; js_norm_ident_ignore += s + " ";
std::string js_norm_prop_ignore;
for (auto s : params->js_norm_param.ignored_props)
js_norm_prop_ignore += s + " ";
ConfigLogger::log_limit("request_depth", params->request_depth, -1LL); ConfigLogger::log_limit("request_depth", params->request_depth, -1LL);
ConfigLogger::log_limit("response_depth", params->response_depth, -1LL); ConfigLogger::log_limit("response_depth", params->response_depth, -1LL);
ConfigLogger::log_flag("unzip", params->unzip); ConfigLogger::log_flag("unzip", params->unzip);
ConfigLogger::log_flag("normalize_utf", params->normalize_utf); ConfigLogger::log_flag("normalize_utf", params->normalize_utf);
ConfigLogger::log_flag("decompress_pdf", params->decompress_pdf); ConfigLogger::log_flag("decompress_pdf", params->decompress_pdf);
ConfigLogger::log_flag("decompress_swf", params->decompress_swf); ConfigLogger::log_flag("decompress_swf", params->decompress_swf);
ConfigLogger::log_flag("decompress_zip", params->decompress_zip); ConfigLogger::log_flag("decompress_zip", params->decompress_zip);
ConfigLogger::log_flag("decompress_vba", params->decompress_vba); ConfigLogger::log_flag("decompress_vba", params->decompress_vba);
ConfigLogger::log_flag("script_detection", params->script_detection); ConfigLogger::log_flag("script_detection", params->script_detection);
ConfigLogger::log_flag("normalize_javascript", params->js_norm_param.normali ze_javascript); ConfigLogger::log_flag("normalize_javascript", params->js_norm_param.normali ze_javascript);
ConfigLogger::log_value("max_javascript_whitespaces", ConfigLogger::log_value("max_javascript_whitespaces",
params->js_norm_param.max_javascript_whitespaces); params->js_norm_param.max_javascript_whitespaces);
ConfigLogger::log_value("js_norm_bytes_depth", params->js_norm_param.js_norm _bytes_depth); ConfigLogger::log_value("js_norm_bytes_depth", params->js_norm_param.js_norm _bytes_depth);
ConfigLogger::log_value("js_norm_identifier_depth", params->js_norm_param.js _identifier_depth); ConfigLogger::log_value("js_norm_identifier_depth", params->js_norm_param.js _identifier_depth);
ConfigLogger::log_value("js_norm_max_tmpl_nest", params->js_norm_param.max_t emplate_nesting); ConfigLogger::log_value("js_norm_max_tmpl_nest", params->js_norm_param.max_t emplate_nesting);
ConfigLogger::log_value("js_norm_max_bracket_depth", params->js_norm_param.m ax_bracket_depth); ConfigLogger::log_value("js_norm_max_bracket_depth", params->js_norm_param.m ax_bracket_depth);
ConfigLogger::log_value("js_norm_max_scope_depth", params->js_norm_param.max _scope_depth); ConfigLogger::log_value("js_norm_max_scope_depth", params->js_norm_param.max _scope_depth);
if (!js_norm_ident_ignore.empty()) if (!js_norm_ident_ignore.empty())
ConfigLogger::log_list("js_norm_ident_ignore", js_norm_ident_ignore.c_st r()); ConfigLogger::log_list("js_norm_ident_ignore", js_norm_ident_ignore.c_st r());
if (!js_norm_prop_ignore.empty())
ConfigLogger::log_list("js_norm_prop_ignore", js_norm_prop_ignore.c_str(
));
ConfigLogger::log_value("bad_characters", bad_chars.c_str()); ConfigLogger::log_value("bad_characters", bad_chars.c_str());
ConfigLogger::log_value("ignore_unreserved", unreserved_chars.c_str()); ConfigLogger::log_value("ignore_unreserved", unreserved_chars.c_str());
ConfigLogger::log_flag("percent_u", params->uri_param.percent_u); ConfigLogger::log_flag("percent_u", params->uri_param.percent_u);
ConfigLogger::log_flag("utf8", params->uri_param.utf8); ConfigLogger::log_flag("utf8", params->uri_param.utf8);
ConfigLogger::log_flag("utf8_bare_byte", params->uri_param.utf8_bare_byte); ConfigLogger::log_flag("utf8_bare_byte", params->uri_param.utf8_bare_byte);
ConfigLogger::log_flag("iis_unicode", params->uri_param.iis_unicode); ConfigLogger::log_flag("iis_unicode", params->uri_param.iis_unicode);
ConfigLogger::log_value("iis_unicode_map_file", params->uri_param.iis_unicod e_map_file.c_str()); ConfigLogger::log_value("iis_unicode_map_file", params->uri_param.iis_unicod e_map_file.c_str());
ConfigLogger::log_value("iis_unicode_code_page", params->uri_param.iis_unico de_code_page); ConfigLogger::log_value("iis_unicode_code_page", params->uri_param.iis_unico de_code_page);
ConfigLogger::log_flag("iis_double_decode", params->uri_param.iis_double_dec ode); ConfigLogger::log_flag("iis_double_decode", params->uri_param.iis_double_dec ode);
ConfigLogger::log_value("oversize_dir_length", params->uri_param.oversize_di r_length); ConfigLogger::log_value("oversize_dir_length", params->uri_param.oversize_di r_length);
 End of changes. 2 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)