Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problematic advice regarding cookies with HSTS without secure flag #515

Open
hannob opened this issue Dec 15, 2023 · 0 comments
Open

Problematic advice regarding cookies with HSTS without secure flag #515

hannob opened this issue Dec 15, 2023 · 0 comments
Labels
security An issue that relates to the content of the security recommendations in Observatory

Comments

@hannob
Copy link

hannob commented Dec 15, 2023

The Observatory gives a penalty for cookies without the secure flag.

However it'll give less penalty if the site uses HSTS. The explanation is:

Session cookie set without the Secure flag, but transmission over HTTP prevented by HSTS

This is misleading. It is possible to have setups where a cookie is sent over HSTS, but can still be transmitted in plain text.

I have setup a simple example:

I think it is problematic to imply that HSTS would make the cookie secure flag unnecessary.

( https://bugzilla.mozilla.org/show_bug.cgi?id=1870262 is also related.)

@gene1wood gene1wood added the security An issue that relates to the content of the security recommendations in Observatory label Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
security An issue that relates to the content of the security recommendations in Observatory
Projects
None yet
Development

No branches or pull requests

2 participants