]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
tests: add issue 3341 test
authorVictor Julien <victor@inliniac.net>
Mon, 18 Jan 2021 09:46:37 +0000 (10:46 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 18 Jan 2021 09:56:41 +0000 (10:56 +0100)
tests/issue-3341-tcphdr-01/test.rules [new file with mode: 0644]
tests/issue-3341-tcphdr-01/test.yaml [new file with mode: 0644]
tests/issue-3341-tcphdr-01/urgent11_cve_2019_12260.pcap [new file with mode: 0644]

diff --git a/tests/issue-3341-tcphdr-01/test.rules b/tests/issue-3341-tcphdr-01/test.rules
new file mode 100644 (file)
index 0000000..746d1be
--- /dev/null
@@ -0,0 +1 @@
+alert tcp any any -> any any (msg:"EXPLOIT - Suricata 5.0 tcp.hdr test for CVE-2019-12260"; flow:to_server; tcp.hdr; content:"|1d 03 61 00|"; offset:20; depth:4; sid:1; rev:1;)
diff --git a/tests/issue-3341-tcphdr-01/test.yaml b/tests/issue-3341-tcphdr-01/test.yaml
new file mode 100644 (file)
index 0000000..2d936f5
--- /dev/null
@@ -0,0 +1,12 @@
+requires:
+  min-version: 5.0.0
+
+checks:
+- filter:
+    count: 1
+    match:
+      event_type: alert
+      alert.signature_id: 1
+
+args:
+- -k none
diff --git a/tests/issue-3341-tcphdr-01/urgent11_cve_2019_12260.pcap b/tests/issue-3341-tcphdr-01/urgent11_cve_2019_12260.pcap
new file mode 100644 (file)
index 0000000..5e3d301
Binary files /dev/null and b/tests/issue-3341-tcphdr-01/urgent11_cve_2019_12260.pcap differ