Closed bnchdan closed 2 days ago
Care to share all the logs and config? Without them is impossible to judge the bug report.
Also I strongly recommend to use the json output
When testing with libpcre3 libpcre3-dev on WSL2, I got the expected results with your configuration
Thanks for the answers. I recompile the Naxsi module and it works.
Description I noticed that the regex whitelist examples provided in the documentation no longer seem to work as expected.
Context My goal is to whitelist URLs starting with /foo (e.g., /foo, /foo/a, /foo/b) for GET variables. Here's the configuration I am using: In naxsi_core.rules:
MainRule "str:--" "msg:mysql comment (--)" "mz:BODY|URL|ARGS|$HEADERS_VAR:Cookie" "s:$SQL:4" id:1007;
In whitelist/generic.rules:
BasicRule wl:1007 "mz:$URL_X:^/foo|ARGS";
In nginx.conf:
CheckRule "$SQL >= 8" BLOCK;
Problem The following requests result in unexpected behavior:
If I add
in whitelist
Are regex patterns supported in the BasicRule whitelist?