Skip to content

SEC-3192: HSTS preload token #3396

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

Closed
spring-projects-issues opened this issue Jan 14, 2016 · 2 comments
Closed

SEC-3192: HSTS preload token #3396

spring-projects-issues opened this issue Jan 14, 2016 · 2 comments
Assignees
Labels
in: web An issue in web modules (web, webmvc) status: duplicate A duplicate of another issue type: jira An issue that was migrated from JIRA

Comments

@spring-projects-issues
Copy link

Oleksandr Golonzovskyi (Migrated from SEC-3192) said:

HSTS header provide agent with a hint to use SSL for specific domain. However first access to a specific domain is a potential attack surface. Predefined list is maintained by Chrome and used by other browsers to avoid this vulnerability.

In order for domain to be added in preload list we need to have "preload" token in HSTS header. See: https://www.chromium.org/hsts/, https://hstspreload.appspot.com/

This token is not mentioned in original RFC, however is a recommended per
https://www.owasp.org/index.php/HTTP_Strict_Transport_Security

Proposal is to add "preload" token to HSTS headers configuration, not sure if enabled by default (as it may cause long term consequences, so could require conciseness decision ).
Therefore default HSTS header example after change:
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload

Possible additional check - allow token preload addition only if max-age >= 10886400

References:
https://www.chromium.org/hsts/
https://blog.mozilla.org/security/2012/11/01/preloading-hsts/

@spring-projects-issues spring-projects-issues added in: core An issue in spring-security-core in: docs An issue in Documentation or samples in: config An issue in spring-security-config Namespace in: taglibs An issue in spring-security-taglibs in: test An issue in spring-security-test type: enhancement A general enhancement type: jira An issue that was migrated from JIRA labels Feb 5, 2016
@klopfdreh
Copy link

Any updates to this? I just run a scan with https://observatory.mozilla.org/ and found out that preload was mentioned to be missing on my site.

Thanks a lot in advance.

@rwinch rwinch added status: duplicate A duplicate of another issue in: web An issue in web modules (web, webmvc) and removed in: core An issue in spring-security-core in: docs An issue in Documentation or samples type: enhancement A general enhancement in: config An issue in spring-security-config Namespace in: taglibs An issue in spring-security-taglibs in: test An issue in spring-security-test labels Jan 9, 2019
@rwinch rwinch self-assigned this Jan 9, 2019
@rwinch rwinch removed the Open label Jan 9, 2019
@rwinch
Copy link
Member

rwinch commented Jan 9, 2019

Closing as duplicate of gh-6312

@rwinch rwinch closed this as completed Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web An issue in web modules (web, webmvc) status: duplicate A duplicate of another issue type: jira An issue that was migrated from JIRA
Projects
None yet
Development

No branches or pull requests

3 participants