Re: [jose] Proposed resolution of header criticality issue

"Manger, James H" <James.H.Manger@team.telstra.com> Tue, 12 March 2013 06:08 UTC

Return-Path: <James.H.Manger@team.telstra.com>
X-Original-To: jose@ietfa.amsl.com
Delivered-To: jose@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 66BAE21F870E for <jose@ietfa.amsl.com>; Mon, 11 Mar 2013 23:08:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.658
X-Spam-Level:
X-Spam-Status: No, score=-0.658 tagged_above=-999 required=5 tests=[AWL=0.243, BAYES_00=-2.599, HELO_EQ_AU=0.377, HOST_EQ_AU=0.327, RELAY_IS_203=0.994]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Glx98dgzDwTC for <jose@ietfa.amsl.com>; Mon, 11 Mar 2013 23:08:43 -0700 (PDT)
Received: from ipxavo.tcif.telstra.com.au (ipxavo.tcif.telstra.com.au [203.35.135.200]) by ietfa.amsl.com (Postfix) with ESMTP id 7E6EF21F868F for <jose@ietf.org>; Mon, 11 Mar 2013 23:08:43 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="4.84,827,1355058000"; d="scan'208";a="122611201"
Received: from unknown (HELO ipcavi.tcif.telstra.com.au) ([10.97.217.200]) by ipoavi.tcif.telstra.com.au with ESMTP; 12 Mar 2013 17:08:38 +1100
X-IronPort-AV: E=McAfee;i="5400,1158,7011"; a="169454424"
Received: from wsmsg3701.srv.dir.telstra.com ([172.49.40.169]) by ipcavi.tcif.telstra.com.au with ESMTP; 12 Mar 2013 17:08:38 +1100
Received: from WSMSG3153V.srv.dir.telstra.com ([172.49.40.159]) by WSMSG3701.srv.dir.telstra.com ([172.49.40.169]) with mapi; Tue, 12 Mar 2013 17:08:38 +1100
From: "Manger, James H" <James.H.Manger@team.telstra.com>
To: Dick Hardt <dick.hardt@gmail.com>
Date: Tue, 12 Mar 2013 17:08:36 +1100
Thread-Topic: [jose] Proposed resolution of header criticality issue
Thread-Index: Ac4e4jYqjHuJ8pwtRhKhYPClWZMiPwABJ8Fw
Message-ID: <255B9BB34FB7D647A506DC292726F6E1150B786C1F@WSMSG3153V.srv.dir.telstra.com>
References: <513E6A73.1090403@isoc.org> <513E774C.6090605@isoc.org> <0B6EA527-9DE6-4708-A48D-9D2660951F84@gmail.com>
In-Reply-To: <0B6EA527-9DE6-4708-A48D-9D2660951F84@gmail.com>
Accept-Language: en-US, en-AU
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US, en-AU
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Cc: "jose@ietf.org" <jose@ietf.org>
Subject: Re: [jose] Proposed resolution of header criticality issue
X-BeenThere: jose@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Javascript Object Signing and Encryption <jose.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/jose>, <mailto:jose-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/jose>
List-Post: <mailto:jose@ietf.org>
List-Help: <mailto:jose-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/jose>, <mailto:jose-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 12 Mar 2013 06:08:44 -0000

> Why must "zip" be understood? Is there a security issue here or just
> degraded performance? In my current implementations, "zip" does not
> help me enough to bother with the added complexity and I have not
> implemented support.
> 
> -- Dick

You don't want to try to interpret compressed data as plain text. That could be a security problem. A tricky person might be able to create, say, a valid JSON value X that compresses to Y that is also valid JSON. If you ignore "zip" you get JOSE-verified Y; if you process "zip" you get JOSE-verified X.

You might not have to implement "zip" (that is a separate MTI discussion), but your recipient code at least needs to notice when "zip" is present and throw an error (instead of misinterpreting the compressed content).

--
James Manger