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

fix: split cookie rules #219

Merged
merged 8 commits into from
Feb 6, 2024
Merged

fix: split cookie rules #219

merged 8 commits into from
Feb 6, 2024

Conversation

elsapet
Copy link
Collaborator

@elsapet elsapet commented Feb 1, 2024

Description

Splits existing cookie rules so that CWE 1004 (HTTP Only flag) and CWE 614 (Secure flag) are represented by separate rules.

We keep the existing rule IDs for CWE-614 - so this is not a breaking change - and we create a new rule for CWE-1004.

The Java lang cookie rule has already been split into separate rules but the original rule remains, leaving us with 3 cookie rules for Java. We shall remove the original rule in the future, once Bearer/bearer#1486 has been addressed.

Update: There is no duplication with the Java cookies - we have one (that we will split) that checks for httpOnly and secure set to False, and we have two additional rules - one that matches on the absence of httpOnly set to True and one that matches on the absence of secure set to True.

Closes #215

Checklist

  • I've added a snapshot that shows my rule works as expected.
  • My rule has adequate metadata to explain its use.
  • PR title follows Conventional Commits format

@cfabianski cfabianski mentioned this pull request Feb 5, 2024
3 tasks
@elsapet elsapet force-pushed the fix/split-cookie-rules branch from c615849 to 8d45783 Compare February 5, 2024 14:23
@elsapet elsapet marked this pull request as ready for review February 5, 2024 15:53
@elsapet elsapet force-pushed the fix/split-cookie-rules branch from 204fcaf to 1293763 Compare February 6, 2024 09:26
@elsapet elsapet merged commit fd4f614 into main Feb 6, 2024
20 checks passed
@elsapet elsapet deleted the fix/split-cookie-rules branch February 6, 2024 09:57
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.

Breaking down "cookie" rules
2 participants