Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions plugins/wordpress-rule-exclusions-before.conf
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ SecRule REQUEST_FILENAME "@rx /wp-(?:login|admin/admin-ajax)\.php$" \
nolog,\
ctl:ruleRemoveTargetById=920230;ARGS:redirect_to,\
ctl:ruleRemoveTargetById=920273;ARGS:redirect_to,\
ctl:ruleRemoveTargetById=932235;ARGS:redirect_to,\
ctl:ruleRemoveTargetById=931130;ARGS:redirect_to,\
ctl:ruleRemoveTargetById=942430;ARGS:redirect_to,\
ctl:ruleRemoveTargetById=942431;ARGS:redirect_to,\
Expand Down
16 changes: 16 additions & 0 deletions tests/regression/wordpress-rule-exclusions-plugin/9507100.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,3 +97,19 @@ tests:
output:
log:
expect_ids: [932160]
- test_id: 4
desc: False positive with '=post&'
stages:
- input:
dest_addr: 127.0.0.1
headers:
Host: localhost
User-Agent: OWASP CRS test agent
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Comment thread
EsadCetiner marked this conversation as resolved.
Resolved
port: 80
method: GET
version: "HTTP/1.1"
uri: /get/wp-login.php?redirect_to=https%3A%2F%example.com%2Fwp-admin%2Fedit.php%3Fs%26post_status%3Dall%26post_type%3Dpost%26action%3D-1%26m%3D0%26cat%3D1%26post_format%26seo-filter%26filter_action%3DFiltrova%25C5%25A5%26paged%3D1%26action2%3D-1
output:
log:
no_expect_ids: [932235]
Loading