Security Considerations Regarding Compression Dictionaries
draft-handte-httpbis-dict-sec-00

Document Type Active Internet-Draft (individual)
Last updated 2019-10-30 (latest revision 2019-10-29)
Replaces draft-kucherawy-httpbis-dict-sec
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf htmlized bibtex
Additional URLs
- Document source repository
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Individual submission                                          W. Handte
Internet-Draft                                            Facebook, Inc.
Intended status: Informational                          October 29, 2019
Expires: May 1, 2020

       Security Considerations Regarding Compression Dictionaries
                    draft-handte-httpbis-dict-sec-00

Abstract

   Dictionary-based compression enables better performance, but brings
   state into the process of compression, with all the complexities that
   follow.  This document explores the security implications of this
   technique in the context of internet protocols and enumerates known
   risks and mitigations.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on May 1, 2020.

Copyright Notice

   Copyright (c) 2019 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (https://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Handte                     Expires May 1, 2020                  [Page 1]
Internet-Draft       Compression Dictionary Security        October 2019

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Basis . . . . . . . . . . . . . . . . . . . . . . . . . . . .   3
     2.1.  Compression Environments  . . . . . . . . . . . . . . . .   3
     2.2.  Security Properties . . . . . . . . . . . . . . . . . . .   4
     2.3.  Threat Model  . . . . . . . . . . . . . . . . . . . . . .   4
     2.4.  Existing Attacks  . . . . . . . . . . . . . . . . . . . .   4
   3.  Dictionaries  . . . . . . . . . . . . . . . . . . . . . . . .   5
     3.1.  Dictionary Compression  . . . . . . . . . . . . . . . . .   5
     3.2.  Dictionary Contents . . . . . . . . . . . . . . . . . . .   5
       3.2.1.  Unstructured Dictionaries . . . . . . . . . . . . . .   5
       3.2.2.  Structured Dictionaries . . . . . . . . . . . . . . .   6
     3.3.  Using Dictionaries  . . . . . . . . . . . . . . . . . . .   6
       3.3.1.  Generating Dictionaries . . . . . . . . . . . . . . .   6
       3.3.2.  Identifying Dictionaries  . . . . . . . . . . . . . .   7
       3.3.3.  Distributing Dictionaries . . . . . . . . . . . . . .   9
       3.3.4.  Selecting Dictionaries  . . . . . . . . . . . . . . .   9
       3.3.5.  Using Dictionaries  . . . . . . . . . . . . . . . . .  10
       3.3.6.  Deleting Dictionaries . . . . . . . . . . . . . . . .  10
   4.  Risks . . . . . . . . . . . . . . . . . . . . . . . . . . . .  11
     4.1.  Revealing Message Content . . . . . . . . . . . . . . . .  11
       4.1.1.  By Observing Which Dictionary is Used . . . . . . . .  11
       4.1.2.  By Observing Message Size . . . . . . . . . . . . . .  12
       4.1.3.  By Observing Timing . . . . . . . . . . . . . . . . .  13
     4.2.  Revealing Dictionary Content  . . . . . . . . . . . . . .  14
       4.2.1.  By Observing Message Size . . . . . . . . . . . . . .  14
       4.2.2.  In Compression  . . . . . . . . . . . . . . . . . . .  14
       4.2.3.  In Decompression  . . . . . . . . . . . . . . . . . .  14
     4.3.  Manipulating Message Content  . . . . . . . . . . . . . .  15
       4.3.1.  By Manipulating Message Content . . . . . . . . . . .  16
       4.3.2.  By Manipulating Dictionary Content  . . . . . . . . .  16
       4.3.3.  By Manipulating Dictionary Identifiers  . . . . . . .  17
     4.4.  Obfuscating Message Content . . . . . . . . . . . . . . .  17
       4.4.1.  From Intermediaries . . . . . . . . . . . . . . . . .  17
       4.4.2.  Multiple Representations  . . . . . . . . . . . . . .  18
     4.5.  Tracking Users  . . . . . . . . . . . . . . . . . . . . .  18
       4.5.1.  Through Dictionary Negotiation  . . . . . . . . . . .  18
       4.5.2.  Through Dictionary Retrieval  . . . . . . . . . . . .  19
     4.6.  Denial of Service . . . . . . . . . . . . . . . . . . . .  19
Show full document text