Re: [ietf-dkim] Mailsploit

Grant Taylor <gtaylor@tnetconsulting.net> Tue, 05 December 2017 23:11 UTC

Return-Path: <ietf-dkim-bounces@mipassoc.org>
X-Original-To: ietfarch-ietf-dkim-archive@ietfa.amsl.com
Delivered-To: ietfarch-ietf-dkim-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8C9B5128B44 for <ietfarch-ietf-dkim-archive@ietfa.amsl.com>; Tue, 5 Dec 2017 15:11:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.789
X-Spam-Level:
X-Spam-Status: No, score=-1.789 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIM_INVALID=0.01, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=tnetconsulting.net
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JM_bQxCXO3uj for <ietfarch-ietf-dkim-archive@ietfa.amsl.com>; Tue, 5 Dec 2017 15:11:29 -0800 (PST)
Received: from simon.songbird.com (simon.songbird.com [72.52.113.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5002A1279EB for <ietf-dkim-archive@ietf.org>; Tue, 5 Dec 2017 15:11:29 -0800 (PST)
Received: from simon.songbird.com (simon.songbird.com [127.0.0.1]) by simon.songbird.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id vB5N6MEd027162; Tue, 5 Dec 2017 15:06:23 -0800
Authentication-Results: simon.songbird.com; dkim=fail reason="verification failed; unprotected key" header.d=tnetconsulting.net header.i=@tnetconsulting.net header.b=nf0etYhv; dkim-adsp=none (unprotected policy); dkim-atps=neutral
Received: from tncsrv06.tnetconsulting.net (tncsrv06.tnetconsulting.net [45.33.28.24]) by simon.songbird.com (8.14.4/8.14.4/Debian-4.1ubuntu1) with ESMTP id vB5N6JDh027153 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <ietf-dkim@mipassoc.org>; Tue, 5 Dec 2017 15:06:20 -0800
Received: from REDACTED ([IPv6:2620:0:102a:11:615c:ba1b:787c:9b8c]) (authenticated bits=0) by tncsrv06.tnetconsulting.net (8.15.2/8.15.2/Debian-3) with ESMTPSA id vB5N60Bq032043 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for <ietf-dkim@mipassoc.org>; Tue, 5 Dec 2017 17:06:01 -0600
ARC-Filter: OpenARC Filter v0.1.0 tncsrv06.tnetconsulting.net vB5N60Bq032043
Authentication-Results: tncsrv06.tnetconsulting.net; arc=none header.d=tnetconsulting.net
ARC-Seal: i=1; a=rsa-sha256; d=tnetconsulting.net; s=2015; t=1512515161; cv=none; b=glfp/E7UPBBCIhZdeP4pLqHP58D2KHkwtG3mR1+ch1OpeAI3ZJtHGhqkDxLtWH3tJYd5+NgXw1k5+1huLPXBGJ0GMzlFZNN5oBgBF6nI8FI8lRUxQ+uZoGNvPQMANdHvLMrrwvCttM8vME8v5hGAvxG4jL40kCn4ZiRDe6+Iugc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=tnetconsulting.net; s=2015; t=1512515161; c=relaxed/simple; bh=dem9EA9ziwblgHU9IsvBSHoVOb4mhL58n39QjCtP7Rw=; h=DKIM-Signature:Subject:To:From:Message-ID:Date:User-Agent: MIME-Version:Content-Type; b=FFIFsUVZ9p4/1QChDntQQdsEA2/4eEY1LEsAFoIDNj5IsPoFj2rHUGZgJxMiRfVX/tlaCAY+um8kZ0HM8qd/pXa7tSSGEZDqOTBYtUeDHDbFdPF2s0iKmL+ZQo2gmcuzxTbHMHYwU4ebcViPd8/2cpUR+AcOzXMNnIdDVhvpb1E=
ARC-Authentication-Results: i=1; tncsrv06.tnetconsulting.net; none
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=tnetconsulting.net; s=2015; t=1512515161; bh=dem9EA9ziwblgHU9IsvBSHoVOb4mhL58n39QjCtP7Rw=; h=Subject:To:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Cc:Content-Disposition: Content-Language:Content-Transfer-Encoding:Content-Type:Date:From: In-Reply-To:Message-ID:MIME-Version:References:Reply-To: Resent-Date:Resent-From:Resent-To:Resent-Cc:Sender:Subject:To: User-Agent; b=nf0etYhvs+I0MUpj1OKApd6MFAiOXL1bWJGhz7743Xtr6hs9Nk7A+1/W+K4cfVs+R +B8r12Fay8D/Ttm7j0BsIKvxxtYgWz2LUb7BX0i4zZ15T6siHdUZNzKKKQj425CuqS dGIX4RfGxF0CupFqn/kYCE55bL7tWeJ7XyRoS04I=
To: ietf-dkim@mipassoc.org
References: <CAHNGrjEzrmdbjhxf_W2qkX8eiSoSaoYoiMDma3yuM2brS6KVmw@mail.gmail.com> <75c9b339-b60f-0b06-e613-ef40a131e280@spamtrap.tnetconsulting.net> <CAHNGrjG60zXS+S9XQQwuBANcKM8WAzXOF=CRZW_nCoZmJULchg@mail.gmail.com>
From: Grant Taylor <gtaylor@tnetconsulting.net>
Organization: TNet Consulting
Message-ID: <616b4883-a3cd-8093-227d-a3d59028b890@spamtrap.tnetconsulting.net>
Date: Tue, 05 Dec 2017 16:05:59 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0
MIME-Version: 1.0
In-Reply-To: <CAHNGrjG60zXS+S9XQQwuBANcKM8WAzXOF=CRZW_nCoZmJULchg@mail.gmail.com>
Subject: Re: [ietf-dkim] Mailsploit
X-BeenThere: ietf-dkim@mipassoc.org
X-Mailman-Version: 2.1.16
Precedence: list
List-Id: IETF DKIM Discussion List <ietf-dkim.mipassoc.org>
List-Unsubscribe: <http://mipassoc.org/mailman/options/ietf-dkim>, <mailto:ietf-dkim-request@mipassoc.org?subject=unsubscribe>
List-Archive: <http://mipassoc.org/pipermail/ietf-dkim/>
List-Post: <mailto:ietf-dkim@mipassoc.org>
List-Help: <mailto:ietf-dkim-request@mipassoc.org?subject=help>
List-Subscribe: <http://mipassoc.org/mailman/listinfo/ietf-dkim>, <mailto:ietf-dkim-request@mipassoc.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============4642226249417342882=="
Errors-To: ietf-dkim-bounces@mipassoc.org
Sender: ietf-dkim <ietf-dkim-bounces@mipassoc.org>

On 12/05/2017 03:52 PM, Pawel Lesnikowski wrote:
> encoded-words are simply not permitted inside email addresses. MUA 
> shouldn't attempt to decode this at all.

Perhaps they shouldn't attempt to decode it per say.

I think they should attempt to detect the presence of invalid characters 
and act accordingly.

> Attempting to decode is the first problem, incorrectly handling null 
> terminators and new lines is the second issue.

Okay.

> MUAs simply don't expect new lines and null terminators there.

Isn't expecting something unexpected a tenant of security?

I.e. code defensively.

> DKIM works as expected, but as you said it may re-enforce an incorrect 
> assumption that email is from respected source.

:-/



-- 
Grant. . . .
unix || die

_______________________________________________
NOTE WELL: This list operates according to
http://mipassoc.org/dkim/ietf-list-rules.html