Skip to content

fix: HSTS header case issue with HTTP/2#83

Merged
ic0ns merged 1 commit intotls-attacker:masterfrom
conetcloud:master
Jun 21, 2022
Merged

fix: HSTS header case issue with HTTP/2#83
ic0ns merged 1 commit intotls-attacker:masterfrom
conetcloud:master

Conversation

@craig
Copy link
Copy Markdown
Contributor

@craig craig commented Jun 21, 2022

HTTP/2 headers are lower-case.

When scanning www.bundestag.de the tool reports:
"HSTS is disabled. Enable HSTS"

However, the header is set:
$ curl -s https://www.bundestag.de -D - | grep strict-transport-security strict-transport-security: max-age=31536000

This patch fixes it. There might be a lot more issues like this in the code, however...

HTTP/2 headers are lower-case
@NDS-JENKINS
Copy link
Copy Markdown

Can one of the admins verify this patch?

@ic0ns ic0ns merged commit 90c8884 into tls-attacker:master Jun 21, 2022
@ic0ns
Copy link
Copy Markdown
Contributor

ic0ns commented Jun 21, 2022

Ah thats good to know. I wasn't aware that h2 changed this, and only took the header from the RFC6797. Thanks!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants