-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModSecurity collection expirevar does not work #1803
Comments
@sobigboy how do you get the values of |
Hello, any update on this? I have been testing and the collection file under /modsec-shared-collections is not being expired according to expirevar nor SecCollectionTimeout. |
Not yet - but I'll see that soon. |
Meanwhile here's a workaround for everyone who needs DOS protection to work. The hack uses dedicated variables in conjunction with the |
The document you provided really works. But if I change the browser I'll have normal access the web server So I think this disabling policy is only for the combination of the browser and the IP address and not for the IP address alone I feel the authorities should fix this problem or adopt your document @theseion |
Good to hear that, thanks. |
The solution posted by @theseion above didn't help in my case. Added it to my already existing file, restart the server. Tested on a browser that was available before (which is weird in the first place, one browser got blocked while the other was available), now none of my browsers are available now unless restarting server Supposed to block remote ips based on getting 404 more than 3 times, for 60secs
|
@pixelicous Sorry, this is very late. You're using |
Hello,@pixelicous I met the same problem. Has this problem been solved? |
使用了提供的REQUEST-912-DOS-PROTECTION.conf.txt,发现一个问题某个ip访问被判断为ddos,应该会封禁该ip一个小时但是偶尔还是可以该网站 |
Can we please have this fixed? It's pretty critical as it breaks all collections? |
There is an implementation for this support here: https://github.com/SpiderLabs/ModSecurity/tree/v3/dev/action_expirevar There will be at least a short delay before it is merged. |
Thanks @martinhsv! It will be a good day when this feature is release. |
@theseion When I implement the workaround, it clashes with inbound anomaly score. (Also can we pls create a separate thread to help with this workaround?) Matched "Operator I'm using [ver "OWASP_CRS/4.0.0-rc1"] on nginx. |
The version I wrote was for CRS 3.0.1. I do not have a working version for 4.0 and seeing as it will (hopefully) be a non-issue soon, the plugin implementation we created for CRS v4 for ModSecurity v2 should work for v3 as well, when |
This has now been merged. |
Thank you for your work 🥇 |
When I use collection 'IP', the variable in collection never expire even if I restart nginx.
The variable in collecion expired unless I remove the files:
modsec-shared-collections
modsec-shared-collections-lock
in disk,The text was updated successfully, but these errors were encountered: