Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ on: [push, pull_request] # yamllint disable-line rule:truthy

jobs:
integration-tests:
uses: coreruleset/crs-plugin-test-action/.github/workflows/integration.yaml@main
uses: coreruleset/crs-plugin-test-action/.github/workflows/integration.yaml@580582e7ca3ea87aa31631893048a2fc074b9b03 # v2.0.0
4 changes: 2 additions & 2 deletions plugins/false-positive-report-after.conf
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ SecRule TX:FALSE-POSITIVE-REPORT-PLUGIN_FILTER_IP "@gt 0" \
"id:9525140,\
phase:5,\
pass,\
t:none,t:length\
t:none,t:length,\
nolog,\
ver:'false-positive-report-plugin/1.0.0',\
skipAfter:FALSE-POSITIVE-REPORT-PLUGIN-END,\
setvar:'tx.false-positive-report-plugin_remote_addr=,%{remote_addr},',\
skipAfter:FALSE-POSITIVE-REPORT-PLUGIN-END,\
chain"
SecRule TX:FALSE-POSITIVE-REPORT-PLUGIN_REMOTE_ADDR "!@within ,%{tx.false-positive-report-plugin_filter_ip}," \
"t:none"
Expand Down
22 changes: 22 additions & 0 deletions tests/regression/false-positive-report-plugin/9525150.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
meta:
author: "azurit"
description: "False Positive Report Plugin"
rule_id: 9525150
tests:
- test_id: 1
desc: "Dummy test"
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
port: 80
method: GET
version: HTTP/1.1
uri: /get/
output:
log:
no_expect_ids:
Loading