Skip to content

Commit 71af7d8

Browse files
authored
feat: fixing FP related to comments (#40)
* fixing FP * Update wordpress-rule-exclusions-before.conf
1 parent c9cfcce commit 71af7d8

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

Diff for: plugins/wordpress-rule-exclusions-before.conf

+18-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ SecRule REQUEST_FILENAME "@endsWith /wp-comments-post.php" \
9797
ver:'wordpress-rule-exclusions-plugin/1.0.1'"
9898

9999
SecRule REQUEST_FILENAME "@endsWith /wp-admin/comment.php" \
100-
"id:9507170,\
101-
phase:2,\
100+
"id:9507131,\
101+
phase:1,\
102102
pass,\
103103
t:none,\
104104
nolog,\
@@ -108,6 +108,22 @@ SecRule REQUEST_FILENAME "@endsWith /wp-admin/comment.php" \
108108
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:newcomment_author,\
109109
ver:'wordpress-rule-exclusions-plugin/1.0.1'"
110110

111+
# Replying to a comment
112+
SecRule REQUEST_FILENAME "@endsWith /wp-admin/admin-ajax.php" \
113+
"id:9507132,\
114+
phase:2,\
115+
pass,\
116+
t:none,\
117+
nolog,\
118+
ver:'wordpress-rule-exclusions-plugin/1.0.1',\
119+
chain"
120+
SecRule ARGS:action "@streq replyto-comment" \
121+
"t:none,\
122+
chain"
123+
SecRule &ARGS:action "@eq 1" \
124+
"t:none,\
125+
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:content"
126+
111127

112128
#
113129
# [ Gutenberg Editor ]

0 commit comments

Comments
 (0)