Skip to content

Commit

Permalink
fix: move ARGS_NAMES:users[0] to it's own rule
Browse files Browse the repository at this point in the history
  • Loading branch information
EsadCetiner authored Nov 26, 2024
1 parent 91889ff commit 9d9a62a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions plugins/wordpress-rule-exclusions-before.conf
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,6 @@ SecRule REQUEST_FILENAME "@unconditionalMatch" \
pass,\
t:none,\
nolog,\
ctl:ruleRemoveTargetById=920273;ARGS_NAMES:users[0],\
ctl:ruleRemoveTargetById=942432;ARGS_NAMES:users[0],\
ctl:ruleRemoveTargetById=932236;ARGS:nonce,\
ctl:ruleRemoveTargetById=942450;ARGS:nonce,\
ctl:ruleRemoveTargetById=932236;ARGS:ver,\
Expand Down Expand Up @@ -639,6 +637,17 @@ SecRule REQUEST_FILENAME "@rx /wp-admin/(?:admin|admin-ajax|edit|users)\.php$" \
ctl:ruleRemoveTargetById=932236;ARGS_NAMES:ids,\
ver:'wordpress-rule-exclusions-plugin/1.0.1'"

# Managing users
SecRule REQUEST_FILENAME "@endsWith /wp-admin/users.php" \
"id:9507602,\
phase:1,\
pass,\
t:none,\
nolog,\
ver:'wordpress-rule-exclusions-plugin/1.0.1',\
ctl:ruleRemoveTargetById=920273;ARGS_NAMES:users[0],\
ctl:ruleRemoveTargetById=942432;ARGS_NAMES:users[0]"

#
# [ Content editing ]
#
Expand Down

0 comments on commit 9d9a62a

Please sign in to comment.