From 1ebe15c3a9807233cc92a92668b9090777daa9e1 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sun, 29 Jan 2017 18:03:40 +0000 Subject: CHUNKING: Reject messages with malformed line ending. Bug 2000 Actually test only the first header line, but still do full line-ending canonicalisation on the remainder of the message in case a Evil Person slips past that. --- test/stdout/0900 | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'test/stdout/0900') diff --git a/test/stdout/0900 b/test/stdout/0900 index 70c527c17..72269fad9 100644 --- a/test/stdout/0900 +++ b/test/stdout/0900 @@ -296,3 +296,36 @@ Connecting to 127.0.0.1 port 1225 ... connected ??? 221 <<< 221 testhost.test.ex closing connection End of script +Connecting to 127.0.0.1 port 1225 ... connected +??? 220 +<<< 220 testhost.test.ex ESMTP Exim x.yz Tue, 2 Mar 1999 09:44:33 +0000 +>>> ehlo tester +??? 250- +<<< 250-testhost.test.ex Hello tester [127.0.0.1] +??? 250-SIZE +<<< 250-SIZE 52428800 +??? 250-8BITMIME +<<< 250-8BITMIME +??? 250-PIPELINING +<<< 250-PIPELINING +??? 250-CHUNKING +<<< 250-CHUNKING +??? 250 HELP +<<< 250 HELP +>>> mail from:someone@some.domain +??? 250 +<<< 250 OK +>>> rcpt to:CALLER@test.ex +??? 250 +<<< 250 Accepted +>>> bdat 87 last +>>> To: Susan@random.com\n +>>> From: Sam@random.com +>>> Subject: This is a Bodyless test message +>>> +??? 552 +<<< 552 Message header not CRLF terminated +>>> quit +??? 221 +<<< 221 testhost.test.ex closing connection +End of script -- cgit v1.2.3