@@ -70,7 +70,7 @@ SecRule REQUEST_FILENAME "@endsWith /wp-login.php" \
70
70
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:pass2"
71
71
72
72
# User Login
73
- SecRule REQUEST_FILENAME "@streq /wp-admin/admin-ajax.php" \
73
+ SecRule REQUEST_FILENAME "@endsWith /wp-admin/admin-ajax.php" \
74
74
"id:9507121,\
75
75
phase:1,\
76
76
pass,\
@@ -144,17 +144,17 @@ SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|templates)" \
144
144
# Gutenberg via rest_route for sites without pretty permalinks
145
145
SecRule REQUEST_FILENAME "@endsWith /index.php" \
146
146
"id:9507141,\
147
- phase:1 ,\
147
+ phase:2 ,\
148
148
pass,\
149
149
t:none,\
150
150
nolog,\
151
151
ver:'wordpress-rule-exclusions-plugin/1.0.1',\
152
152
chain"
153
- SecRule &ARGS_GET :rest_route "@eq 1" \
153
+ SecRule &ARGS :rest_route "@eq 1" \
154
154
"t:none,\
155
155
nolog,\
156
156
chain"
157
- SecRule ARGS_GET :rest_route "@rx ^/wp/v[0-9]+/(?:posts|pages|widget-types|tags|templates|users)" \
157
+ SecRule ARGS :rest_route "@rx ^/wp/v[0-9]+/(?:posts|pages|widget-types|tags|templates|users)" \
158
158
"t:none,\
159
159
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:content,\
160
160
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:json.content,\
@@ -181,17 +181,17 @@ SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/media" \
181
181
# Gutenberg upload image/media via rest_route for sites without pretty permalinks
182
182
SecRule REQUEST_FILENAME "@endsWith /index.php" \
183
183
"id:9507143,\
184
- phase:1 ,\
184
+ phase:2 ,\
185
185
pass,\
186
186
t:none,\
187
187
nolog,\
188
188
ver:'wordpress-rule-exclusions-plugin/1.0.1',\
189
189
chain"
190
- SecRule &ARGS_GET :rest_route "@eq 1" \
190
+ SecRule &ARGS :rest_route "@eq 1" \
191
191
"t:none,\
192
192
nolog,\
193
193
chain"
194
- SecRule ARGS_GET :rest_route "@rx ^/wp/v[0-9]+/media" \
194
+ SecRule ARGS :rest_route "@rx ^/wp/v[0-9]+/media" \
195
195
"t:none,\
196
196
ctl:ruleRemoveById=200002,\
197
197
ctl:ruleRemoveById=200004"
@@ -323,7 +323,7 @@ SecRule ARGS:wp_customize "@streq on" \
323
323
nolog,\
324
324
ver:'wordpress-rule-exclusions-plugin/1.0.1',\
325
325
chain"
326
- SecRule ARGS:action "@rx ^(?:| customize_save|update-widget)$" \
326
+ SecRule ARGS:action "@rx ^(?:customize_save|update-widget)$" \
327
327
"t:none,\
328
328
chain"
329
329
SecRule &ARGS:action "@eq 1" \
0 commit comments