[Trans] [trans] #79 (rfc6962-bis): Precertificate signature must be over something other than just the TBSCertificate

"trans issue tracker" <trac+trans@tools.ietf.org> Fri, 27 March 2015 16:08 UTC

Return-Path: <trac+trans@tools.ietf.org>
X-Original-To: trans@ietfa.amsl.com
Delivered-To: trans@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 47C811A873D for <trans@ietfa.amsl.com>; Fri, 27 Mar 2015 09:08:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 f26gnUvQSEji for <trans@ietfa.amsl.com>; Fri, 27 Mar 2015 09:08:12 -0700 (PDT)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [IPv6:2001:1890:123a::1:2a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DEDE21A6F87 for <trans@ietf.org>; Fri, 27 Mar 2015 09:08:12 -0700 (PDT)
Received: from localhost ([::1]:57363 helo=zinfandel.tools.ietf.org) by zinfandel.tools.ietf.org with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from <trac+trans@tools.ietf.org>) id 1YbWnr-0005eP-TN; Fri, 27 Mar 2015 09:08:11 -0700
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: trans issue tracker <trac+trans@tools.ietf.org>
X-Trac-Version: 0.12.3
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.3, by Edgewall Software
To: draft-ietf-trans-rfc6962-bis@tools.ietf.org, rob.stradling@comodo.com
X-Trac-Project: trans
Date: Fri, 27 Mar 2015 16:08:11 -0000
X-URL: http://tools.ietf.org/trans/
X-Trac-Ticket-URL: http://trac.tools.ietf.org/wg/trans/trac/ticket/79
Message-ID: <064.abd6b6595a6018105f8527089cb573db@tools.ietf.org>
X-Trac-Ticket-ID: 79
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: draft-ietf-trans-rfc6962-bis@tools.ietf.org, rob.stradling@comodo.com, trans@ietf.org
X-SA-Exim-Mail-From: trac+trans@tools.ietf.org
X-SA-Exim-Scanned: No (on zinfandel.tools.ietf.org); SAEximRunCond expanded to false
Resent-To: draft-ietf-trans-rfc6962-bis@ietf.org
Resent-Message-Id: <20150327160812.DEDE21A6F87@ietfa.amsl.com>
Resent-Date: Fri, 27 Mar 2015 09:08:12 -0700
Resent-From: trac+trans@tools.ietf.org
Archived-At: <http://mailarchive.ietf.org/arch/msg/trans/ktR6ZdPBGbdtFCoseFZeX3gn4tY>
Cc: trans@ietf.org
Subject: [Trans] [trans] #79 (rfc6962-bis): Precertificate signature must be over something other than just the TBSCertificate
X-BeenThere: trans@ietf.org
X-Mailman-Version: 2.1.15
List-Id: Public Notary Transparency working group discussion list <trans.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/trans>, <mailto:trans-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/trans/>
List-Post: <mailto:trans@ietf.org>
List-Help: <mailto:trans-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/trans>, <mailto:trans-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 27 Mar 2015 16:08:14 -0000

#79: Precertificate signature must be over something other than just the
TBSCertificate

 If I understand the CMS spec correctly, then we're currently defining a
 Precertificate to be a CMS structure that contains a TBSCertificate and a
 signature over just that TBSCertificate.
 That means that the components of a Precertificate can be trivially
 rearranged into an X.509 certificate with a valid signature!

 To fix this, we need to either...

 1. Require the SignedData.encapContentInfo.eContent field to contain
 "something || TBSCertificate" or "TBSCertificate || something".
 or
 2. Require a signed attribute to be present in
 SignedData.signerInfos[0].signedAttrs.  This is essentially equivalent to
 "TBSCertificate || something" in terms of what gets signed.

 I think 2 is the cleaner solution, unless there's a cryptographic reason
 to prefer "something || TBSCertificate" (e.g. to protect against chosen
 prefix collisions?)

-- 
-------------------------------------+-------------------------------------
 Reporter:                           |      Owner:  draft-ietf-trans-
  rob.stradling@comodo.com           |  rfc6962-bis@tools.ietf.org
     Type:  defect                   |     Status:  new
 Priority:  blocker                  |  Milestone:
Component:  rfc6962-bis              |    Version:
 Severity:  -                        |   Keywords:
-------------------------------------+-------------------------------------

Ticket URL: <http://trac.tools.ietf.org/wg/trans/trac/ticket/79>
trans <http://tools.ietf.org/trans/>