Closed qleein closed 7 years ago
Hi,
Sorry for the delayed response, I thought I left a response but I don't see it here. Can you please let me know what specifically you see wrong here?
If first var matched, Two "ignore_regex" rule would been ignored. In function _process_rule in waf.lua, when matched, the whole cycle would breaked.
for k, v in pairs(vars) do
..........
if match then
......
break
end
end
Ah, yes. There are a few changes that need to be made here:
Thanks for the report!
Hi @qlee001,
This should be resolved on the development branch. Please let me know if you run into trouble with this and I'll re-open this issue. Thanks!
How to write the rule config when meet the rule bellow, from owasp-modsecurity-crs. SecRule REQUEST_COOKIES|!REQUEST_COOKIES:/__utm/|!REQUEST_COOKIES:/_pk_ref/
If I use the modsec2lua-resty-waf.pl to convert, obviously result is wrong .