Skip to content

Commit

Permalink
Fixing FP
Browse files Browse the repository at this point in the history
  • Loading branch information
azurit committed Mar 1, 2024
1 parent a9376fd commit e55cfcc
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions plugins/wordpress-rule-exclusions-before.conf
Original file line number Diff line number Diff line change
Expand Up @@ -982,20 +982,16 @@ SecRule REQUEST_FILENAME "@endsWith /wp-admin/admin-ajax.php" \
ctl:ruleRemoveTargetByTag=OWASP_CRS;ARGS:newcontent"

# Opening the plugins page
# The plugin page contains the text "Plugins extend and expand the functionality of WordPress.
# 953101 is matching "the function"
SecRule REQUEST_FILENAME "@rx /wp-admin/(?:plugins|plugin-install)\.php$" \
"id:9507971,\
phase:4,\
pass,\
t:none,\
nolog,\
ver:'wordpress-rule-exclusions-plugin/1.0.1',\
chain"
SecRule RESPONSE_BODY "@contains plugins extend and expand the functionality of wordpress." \
"t:none,\
t:lowercase,\
ctl:ruleRemoveById=953101"
ctl:ruleRemoveTargetById=951240;RESPONSE_BODY,\
ctl:ruleRemoveTargetById=953100;RESPONSE_BODY,\
ctl:ruleRemoveTargetById=953101;RESPONSE_BODY"

SecMarker "END-WORDPRESS-ADMIN"

Expand Down

0 comments on commit e55cfcc

Please sign in to comment.