Repository navigation
fix(rules): one cookie-httponly check that fails on pages with third-party scripts #2298 - #2299
Merged
Merged
Conversation
…ponly for the same cookie #2298 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
marked this pull request as ready for review
November 24, 2026 07:56
nc9
marked this pull request as draft
November 24, 2026 08:06
…party scripts #2298 Signed-off-by: Nik Cubrilovic <[email protected]>
…part #2298 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
marked this pull request as ready for review
November 24, 2026 09:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2298.
Reworked: no supersede and no second check name.
security/cookie-flagsemits onlycookie-httponly. A session-like cookie without HttpOnly on a page that loads third-party scripts iscookie-httponlyat fail (message names the risk and hosts, details carry the hosts); every other cookie without HttpOnly iscookie-httponlyat warn. A check holds one status, so the two severities are two results under the same name, each item keyed by cookie name, so the finding key (page, rule, check, locator) is identical at warn and fail. A prior warn finding becomes the same key at fail, state open, first-seen kept.Removed: the
cookie-httponly-third-party-scriptscheck and its meta entries, thesupersededChecksdeclaration, the first-round engine test and the rule-check-declarations entry. Docs 'Retired check names' block regenerated (gone).Acceptance criteria
Note: the engine has no separate 'worsened' diff kind in public code, so the engine test asserts the same key, status warn to fail, state open and firstSeenAt kept.
Gates: rules full suite 12970 pass 0 fail; audit-engine full 1173+1040+243 pass 0 fail (split to fit the timeout); format:check, lint, typecheck clean in rules and audit-engine; make validate in docs passes. Skill change: none needed.