]> git.ipfire.org Git - thirdparty/snort3.git/commit
Pull request #3527: JavaScript Normalizer: normalize JavaScript after opening tag
authorOleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco) <oshumeik@cisco.com>
Mon, 25 Jul 2022 08:29:27 +0000 (08:29 +0000)
committerOleksii Shumeiko -X (oshumeik - SOFTSERVE INC at Cisco) <oshumeik@cisco.com>
Mon, 25 Jul 2022 08:29:27 +0000 (08:29 +0000)
commitb65fc8aee4f5e949cca04c4a7f972cc2ec381875
tree2d56feba92bbc105dedf64b7aa9c43acf64b273d
parent6338b77e8793e3edda3448db83f7edf9d0c52374
Pull request #3527: JavaScript Normalizer: normalize JavaScript after opening tag

Merge in SNORT/snort3 from ~OSERHIIE/snort3:js_fix_otag to master

Squashed commit of the following:

commit 28534c108a56e40b76310a6076820739b82e7e4a
Author: Oleksandr Serhiienko <oserhiie@cisco.com>
Date:   Tue Jul 19 20:53:56 2022 +0300

    utils: continue JS normalization after opening tag seen

        * utils: normalize JavaScript after any opening tag seen
        * utils: re-normalize explicit opening tag by common rules
        * utils: throw opening tag built-in alert for inline scripts only
        * utils: remove opening tag return code
        * http_inspect: do not stop normalization in case of opening script tag
        * http_inspect: update trace messages
src/service_inspectors/http_inspect/http_js_norm.cc
src/utils/js_normalizer.h
src/utils/js_tokenizer.h
src/utils/js_tokenizer.l
src/utils/test/js_normalizer_test.cc