]> git.ipfire.org Git - thirdparty/snort3.git/commit
Merge pull request #2848 in SNORT/snort3 from ~OSERHIIE/snort3:js_inline_scripts...
authorMike Stepanek (mstepane) <mstepane@cisco.com>
Wed, 21 Apr 2021 17:39:43 +0000 (17:39 +0000)
committerMike Stepanek (mstepane) <mstepane@cisco.com>
Wed, 21 Apr 2021 17:39:43 +0000 (17:39 +0000)
commite4ddccd8b6dde2ef2b3c436fbe55158a4d58f78c
tree3da0deefa3d8035b6ce9acebc15020212dc50e54
parent991fd879e0debdc0911c0d1d5a8aeb71b96ee8cf
Merge pull request #2848 in SNORT/snort3 from ~OSERHIIE/snort3:js_inline_scripts to master

Squashed commit of the following:

commit 8d130d92807ecc480c3832e7e85697883bf1ae42
Author: Oleksandr Serhiienko <oserhiie@cisco.com>
Date:   Fri Apr 16 12:48:49 2021 +0300

    http_inspect: add js_inline_scripts peg count

commit 07beb04a28389e09bc0e77f672e86f58e5ef4194
Author: Oleksandr Serhiienko <oserhiie@cisco.com>
Date:   Fri Apr 16 10:31:01 2021 +0300

    http_inspect: identify external javascripts

commit b4e77cf2d524ecc076eb6007d9e1f4743b2852e4
Author: Oleksandr Serhiienko <oserhiie@cisco.com>
Date:   Fri Apr 16 01:34:30 2021 +0300

    http_inspect: add built-in alert for unexpected tags within inline javascript
13 files changed:
src/service_inspectors/http_inspect/http_enum.h
src/service_inspectors/http_inspect/http_js_norm.cc
src/service_inspectors/http_inspect/http_js_norm.h
src/service_inspectors/http_inspect/http_msg_body.cc
src/service_inspectors/http_inspect/http_tables.cc
src/utils/CMakeLists.txt
src/utils/js_norm_state.h [new file with mode: 0644]
src/utils/js_normalizer.cc
src/utils/js_normalizer.h
src/utils/js_tokenizer.h
src/utils/js_tokenizer.l
src/utils/test/CMakeLists.txt
src/utils/test/js_normalizer_test.cc