Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp75590lqm; Tue, 30 Apr 2024 13:16:24 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVQeugzn8N4PEhyvPJHmbDv5yMS+qAXl9XaaxTf7lToxbMQpaq7RSMdgKFuzhongDaud/UO7lYi328+JsfkGrqSpDukSMoPbtdKGWvlww== X-Google-Smtp-Source: AGHT+IFDrx/LbpNZ19X+HAlRyW79GG+3DOQjWs3q7VJy0FtFbH4MmceQu+PwQQWrYJ63wGj/e0FU X-Received: by 2002:a17:906:3659:b0:a55:ba01:7cf8 with SMTP id r25-20020a170906365900b00a55ba017cf8mr550224ejb.40.1714508184423; Tue, 30 Apr 2024 13:16:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1714508184; cv=none; d=google.com; s=arc-20160816; b=DP1WgJNFgGGaAfQziZxljtZBSLwNOAt6aXoNjsFPe1ceQjpKeHLOKy/pd7hhyWt6lZ 4vC5Usd1OartChOf1U6OuSIHD0UMcvbMTrKYe3bcEwZigR9f4hFeJm5EN7H15AFbX/8u 3+3YsCxMiJnuFG9vAC87w/GTsTfKkqKwPpghGvTPDx7be9f+tt8GkcqKde6aHtfJ64t8 GPX1cmXyjJRl4WwZwTglWLK4C0o41F9PNjlm2aryuitxH/u2o4vgvv5Av99ToUiF2s4V CeLsUHigCXihDvkiAIiqGoOlan5aw7GDjN50L4WXJq9tt79+2eYiIQ+u8T5DeIUgmQdx idzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=subject:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:to:from:date:delivered-to:delivered-to :reply-to:list-id:list-subscribe:list-unsubscribe:list-help :list-post:precedence:mailing-list; bh=UMneVmT9F35yNZPTm58Z5C9TbcgabMw5S2Fhmi+h2pg=; fh=9jsPTyo6edd9xvAeG+KFFrRrXMmgB/RdwUKOrvy9dcA=; b=XGOzSKhWpx5jKJwq6lui0sqQmpAsn+qjvW2JkJXbZ+cbbalfvkdx8XfYL5uo9d7krK PZeb2Wd/hGFEjX8Wa0HyS2xiQk5d8+qehcxb7WPsbA65H36JSwdiqN51JFNw9M0Ibmnv 7nVMNqYxQX2lRQuzTJZ94H37W5+cH8KZbGHUl84aF/ZUqIuudTSLl/If+uErIjEc0u6e /uu42O3jddMyvRjQUt8xJogGa+eiq7YgCfMLSTDHjCpUiUr1z97mExal0MqY8quDpb4f RaOTFmGxZRmaSaI1RvsdQxMZ6VRLZ2x9zIxXR5AA8TZKl7q4n+8hznFp1szQiPDQWTeN a7og==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of oss-security-return-30103-linux.lists.archive=gmail.com@lists.openwall.com designates 193.110.157.125 as permitted sender) smtp.mailfrom="oss-security-return-30103-linux.lists.archive=gmail.com@lists.openwall.com" Return-Path: Received: from second.openwall.net (second.openwall.net. [193.110.157.125]) by mx.google.com with SMTP id a8-20020a170906190800b00a519c8c69a4si15687035eje.713.2024.04.30.13.16.24 for ; Tue, 30 Apr 2024 13:16:24 -0700 (PDT) Received-SPF: pass (google.com: domain of oss-security-return-30103-linux.lists.archive=gmail.com@lists.openwall.com designates 193.110.157.125 as permitted sender) client-ip=193.110.157.125; Authentication-Results: mx.google.com; spf=pass (google.com: domain of oss-security-return-30103-linux.lists.archive=gmail.com@lists.openwall.com designates 193.110.157.125 as permitted sender) smtp.mailfrom="oss-security-return-30103-linux.lists.archive=gmail.com@lists.openwall.com" Received: (qmail 6117 invoked by uid 550); 30 Apr 2024 20:16:04 -0000 Mailing-List: contact oss-security-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: oss-security@lists.openwall.com Delivered-To: mailing list oss-security@lists.openwall.com Delivered-To: moderator for oss-security@lists.openwall.com Received: (qmail 3170 invoked from network); 30 Apr 2024 19:13:21 -0000 Date: Tue, 30 Apr 2024 12:13:11 -0700 From: nightmare.yeah27@aceecat.org To: oss-security@lists.openwall.com Message-ID: <16sUYl3YUBJ4EmtQ@aceecat.org> Mail-Followup-To: oss-security@lists.openwall.com References: <20231221143630.GD14101@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [oss-security] Re: New SMTP smuggling attack On Mon, Apr 29, 2024 at 08:19:52PM GMT, Mark Esler wrote: > To mitigate future end-of-data sequence attacks, like SMTP > Smuggling, MTAs should comply with RFC 5321 section 4.1.1.4 [0] to > strip control characters other than , , , and in > the DATA section of SMTP messages. [...] > As per RFC 2119 section 3 [2], the word *SHOULD* implies *MUST* > unless you have a valid reason not to--which is never the case for > these _forbidden_ sequences in DATA. This is why RFC 5321 4.1.1.4's > _SHOULD avoid_ implies _needs to strip_. I don't see that stripping specifically is implied. > What are the benefits and risks of stripping ASCII NUL and other > control characters from SMTP DATA? What is the benefit of stripping versus the much more natural option of rejecting such messages? One possible consequence of passing messages along in an altered form is that various signatures may break. -- Ian