Skip to content

Add HSTS pinning #8580

Closed
Closed

Activity

  1. frewsxcv commented on Nov 18, 2015

    @frewsxcv
    Contributor

    Duplicate of #6106?

  2. alex commented on Nov 18, 2015

    @alex
    ContributorAuthor

    @frewsxcv Nope, HSTS and HPKP are different.

  3. samfoo commented on Dec 2, 2015

    @samfoo
    Contributor

    "HSTS pinning" doesn't make any sense to me. I just checked and when servo navigates to...

    http://subdomain.preloaded-hsts.badssl.com/

    ...it correctly sees that the subdomain requires secure loading and upgrades the connection to https://subdomain.preloaded-hsts.badssl.com/

    The current HSTS preload includes:

            ...
            {
                "host": "preloaded-hsts.badssl.com", 
                "include_subdomains": true
            }, 
            ...
    

    The problem is that the certificate is invalid for that subdomain. The wildcard cert *.badssl.com should not match subdomain.preloaded-hsts.badssl.com as per RFC

    Specifically:

    Matching is performed using the matching rules specified by
    [RFC2459].  If more than one identity of a given type is present in
    the certificate (e.g., more than one dNSName name, a match in any one
    of the set is considered acceptable.) Names may contain the wildcard
    character * which is considered to match any single domain name
    component or component fragment. E.g., *.a.com matches foo.a.com but
    not bar.foo.a.com. f*.com matches foo.com but not bar.com.
    

    Right now servo & hyper don't do any validation on TLS hostnames. I believe this is already documented as a problem in hyperium/hyper#472 and #4954

  4. alex commented on Dec 13, 2015

    @alex
    ContributorAuthor

    Bleh, you're right not sure why I typed HSTS pinning.

    As for the wildcard bit, it's not clear to me whether it's correct or not for HSTS to use the wildcard rule there, it's clear that Chrome treats the wildcard as matching multiple path components.

  5. nox commented on Apr 8, 2017

    @nox
    Contributor

    Pretty sure we support HSTS now.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions