Skip to content

Need more exhaustive check to determine if an HSTS header will be ignored #205

@jsf9k

Description

@jsf9k

🐛 Bug Report

Consider the function hsts_check() in pshtt/pshtt.py. It's not just a bad hostname that should cause the HSTS header to be ignored. It is also ignored if the certificate is untrusted, for example. (See item 2 in the RFC.) Therefore I think that this if clause should be fleshed out a little more.

We should be a little careful when making this change, since as @echudow pointed out in a separate pull request:

Currently we don't check that the certificate is trusted even on the initial response, so that change could have more negative effects on the results.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions