]> git.ipfire.org Git - thirdparty/suricata-verify.git/commitdiff
Adds an smtp test
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 17 Mar 2022 20:32:42 +0000 (21:32 +0100)
committerJason Ish <jason.ish@oisf.net>
Tue, 26 Apr 2022 21:29:12 +0000 (15:29 -0600)
Ticket: 4948

tests/smtp-rset-starttls/README.md [new file with mode: 0644]
tests/smtp-rset-starttls/input.pcap [new file with mode: 0644]
tests/smtp-rset-starttls/test.yaml [new file with mode: 0644]

diff --git a/tests/smtp-rset-starttls/README.md b/tests/smtp-rset-starttls/README.md
new file mode 100644 (file)
index 0000000..7db5cd2
--- /dev/null
@@ -0,0 +1,7 @@
+# Description
+
+Test smtp against bug https://redmine.openinfosecfoundation.org/issues/4948
+
+# PCAP
+
+The pcap comes from an oss-fuzz reproducer, and was crafted with fuzzpcap, to add the ehlo sequence to get first recognized as SMTP.
diff --git a/tests/smtp-rset-starttls/input.pcap b/tests/smtp-rset-starttls/input.pcap
new file mode 100644 (file)
index 0000000..40b998f
Binary files /dev/null and b/tests/smtp-rset-starttls/input.pcap differ
diff --git a/tests/smtp-rset-starttls/test.yaml b/tests/smtp-rset-starttls/test.yaml
new file mode 100644 (file)
index 0000000..4be4932
--- /dev/null
@@ -0,0 +1,13 @@
+requires:
+  features:
+    - HAVE_LIBJANSSON
+
+# disables checksum verification
+args:
+  - -k none
+
+checks:
+  - filter:
+      count: 1 
+      match:
+        event_type: smtp