]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests/http2: Add tests for HTTP/2 decompression bug
authorDavid Beckett <david.beckett@netronome.com>
Wed, 16 Nov 2022 18:32:01 +0000 (18:32 +0000)
committerVictor Julien <victor@inliniac.net>
Sat, 3 Dec 2022 05:59:20 +0000 (06:59 +0100)
7.0.0-beta1 hits anomaly, failed_decompression

tests/http2-compression-bug/README.md [new file with mode: 0644]
tests/http2-compression-bug/input.pcap [new file with mode: 0644]
tests/http2-compression-bug/test.yaml [new file with mode: 0644]

diff --git a/tests/http2-compression-bug/README.md b/tests/http2-compression-bug/README.md
new file mode 100644 (file)
index 0000000..50f931c
--- /dev/null
@@ -0,0 +1 @@
+Chrome 107.0.5304.87 HTTP2 decrypted via Mira ETO
diff --git a/tests/http2-compression-bug/input.pcap b/tests/http2-compression-bug/input.pcap
new file mode 100644 (file)
index 0000000..5630354
Binary files /dev/null and b/tests/http2-compression-bug/input.pcap differ
diff --git a/tests/http2-compression-bug/test.yaml b/tests/http2-compression-bug/test.yaml
new file mode 100644 (file)
index 0000000..f2d94b7
--- /dev/null
@@ -0,0 +1,24 @@
+requires:
+  min-version: 7
+
+checks:
+- filter:
+    count: 7
+    match:
+      event_type: http
+- filter:
+    count: 9
+    match:
+      event_type: fileinfo
+- filter:
+    count: 0
+    match:
+      event_type: anomaly
+- filter:
+    count: 1
+    match:
+      event_type: flow
+- filter:
+    count: 1
+    match:
+      event_type: stats