preflight.sh calls a duplicated header present when only the first one counts #12
Labels
No Label
P0
P1
P2
release-blocker
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/Project-Template#12
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Run passively against privacyllc.dev,
preflight.shreportedok strict-transport-security present. The response actually carries two of them, in one response:RFC 6797 section 8.1: a user agent that receives more than one STS header field MUST process only the first and ignore the rest. So what is in force is
includeSubDomainswithoutpreload, and thepreloaddirective has never done anything — while the headers read, to a person, as though the site were preload-ready. hstspreload.org requiresmax-age,includeSubDomainsandpreloadin a single header, so a submission would also be rejected.The general shape is worth catching, not just this instance: a security header that is present is not the same as one that is in force. Two layers each adding their own is the ordinary cause, and the second is silently discarded.
Check each security header it already looks for, and report a count above one as a finding naming which directives are actually in force — the first occurrence — and which are being discarded.
Scope: this reports duplication, not policy quality. A
default-src *is still a CSP and judging that is a person's job, as the script's header already says.Verify: given a response with two
Strict-Transport-Securityheaders, preflight.sh reports a finding naming the surviving directives and exits 1; given one header it stays quiet.