8000 Moved --> keyword from 941180 (PL1) into new stricter sibling rule 941181 (PL2) #2060 by 53cur3M3 · Pull Request #2088 · coreruleset/coreruleset · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Moved --> keyword from 941180 (PL1) into new stricter sibling rule 941181 (PL2) #2060 #2088

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

Merged
merged 6 commits into from
May 20, 2021

Conversation

53cur3M3
Copy link
Contributor

Moved --> keyword from 941180 (PL1) into new stricter sibling rule 941181 (PL2) #2060
Updated 941180 to include a negative test for -->
Added tests for 941181
Replaces PR2082

@dune73
Copy link
Member
dune73 commented May 19, 2021

This is great. Thank you very much @53cur3M3 for this fix. Namely the tests.

Nitpicking

  • Can you tell me what the different between 941181-3 and 941181-4 is beyond the URI? Can't we simply remove 941181-4?
  • We forgot to tell you that there should be a comment with the rules that explain this is a family of siblings.

Proposal 941180: This rule has a stricter sibling 941181 (PL2) that covers the additional payload "-->".
Proposal 941181: This rule is a stricter sibling of 941180 (PL1).

@53cur3M3
Copy link
Contributor Author

941181-3 is putting payload in parameter name
911181-4 is putting payload in cookie name

@dune73
Copy link
Member
dune73 commented May 19, 2021

True that. Thanks. Could you add the comments mentioned above? Good to merge afterwards, I think.

@lifeforms
Copy link
Member

Thank you for this PR.

I spotted a small problem: in line 735, setvar:'tx.anomaly_score_pl1=+%{tx.critical_anomaly_score}'"

This should be pl2 instead of pl1.

@fzipi
Copy link
Member
fzipi commented May 20, 2021

LGTM.

@fzipi fzipi merged commit 18e9b7e into coreruleset:v3.4/dev May 20, 2021
@dune73
Copy link
Member
dune73 commented May 20, 2021

Congratulations on the first merged PL @53cur3M3. 🍻

RubieV added a commit to RubieV/coreruleset that referenced this pull request Jun 17, 2022
This improvement adds further consistency to coreruleset#2088

The PL1 rule (`941180`) of Node-Validator keywords contains both evident attack fragments, i.e. `document.cookie`, as well as comment payloads, i.e. `<!--`.

This change moves all comment payloads to the PL2 rule (`941181`) that already contains the comment closing tag `-->`. 

This makes the PL1 rule in line with the goal of PL1, and makes the already existing PL2 rule consistent with the goal of having `comment` payloads.
theseion pushed a commit to RubieV/coreruleset that referenced this pull request Feb 26, 2023
This improvement adds further consistency to coreruleset#2088

The PL1 rule (`941180`) of Node-Validator keywords contains both evident attack fragments, i.e. `document.cookie`, as well as comment payloads, i.e. `<!--`.

This change moves all comment payloads to the PL2 rule (`941181`) that already contains the comment closing tag `-->`.

This makes the PL1 rule in line with the goal of PL1, and makes the already existing PL2 rule consistent with the goal of having `comment` payloads.
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.

4 participants
0