Skip to content

Session cache should keep track of TLS version maximum #186

Open

Description

@kruton

In the BoringSSL documents on session caching, it states:

Note that offering or accepting a session short-circuits most parameter negotiation. Resuming sessions across different configurations may result in surprising behavior. So, for instance, a client implementing a version fallback should shard its session cache by maximum protocol version.

Conscrypt should be changed to track maximum protocol version in its SSL session cache to avoid these gotchas.

Activity

  1. davidben commented on Jun 19, 2017

    @davidben
    Collaborator

    Things are a little bit better now. Actually I'm not sure why I singled out the version fallback in that. That definitely used to be a problem, but we've long since fixed the quirk around version fallbacks where offering a version as a client was sticky. I don't know of any servers which short-circuit version negotiation.

    Short-circuiting cipher suite negotiation is sadly common. OpenSSL servers do it, as did BoringSSL servers when I wrote that. We don't anymore (we now negotiate the cipher suite up-front and only resume if it matches what's in the session), but other servers still do. Stuff like client certificates are also still short-circuited.

    How does configuring parameters typically work in the Java API? I see there are these SSLParameters objects and you can setSSLParameters on a per socket basis? Though an SSLParameters is also mutable. But I see an SSLSocket also has functions like setEnabledCipherSuites. I take it this means socket parameters just float around everywhere?

    I guess then the question is whether Conscrypt believes it is its responsibility to smooth over this kind of thing or if you just expose this behavior to the calling application, which is required to make a separate SSLContext or whatever if it cares.

  2. added this to the 1.0.1 milestone on Jul 6, 2017
  3. flooey commented on Sep 25, 2018

    @flooey
    Contributor

    I think the main problems here were fixed by #172, which added checking for protocol and cipher suite matches on cached sessions before attempting to resume them. I think the only remaining gap is client certs, which should be relatively easy to add.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions