-
-
Notifications
You must be signed in to change notification settings - Fork 402
Update Nextcloud rules #1902
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
Update Nextcloud rules #1902
Conversation
- Fix issues during uploading e.g. PHP files (add PUT method to 9003106, 9003107 rules)
- Keep same syntax for match /ocs/v[0-9].php
- Add rule to allow Nextcloud users delete.
- Add rule to allow configure file extensions list in Ransomware protection extension.
- Fix issues during uploading e.g. PHP files (add PUT method to 9003106, 9003107 rules) - Keep same syntax for match /ocs/v[0-9].php - Add rule to allow Nextcloud users delete. - Add rule to allow configure file extensions list in Ransomware protection extension.
For the first commit. Please use For rules 9003701 and 9003800, what do you think about second occurence of version number? Maybe it can be handled too? |
- Reduced rx method usage to improve performance - Spacing and comments corrected
Temp turned this pull request into draft. @azurit About Nextcloud ocs/v[0-9].php paths. |
Looks very good! I wouldn't use I think for rules like 9003115, it is ok to keep |
@azurit Tested on Openlitespeed 1.6.16, mod_security 1.3. If I understand correctly, the pm method is case insensitive (is it?), and that's what I asked about safety of using |
@azurit |
Sorry, you are right. I don't recommend to use it with
I cannot tell for sure (should be tested for performance) but i would say that |
- Removed pm method in REQUEST_FILENAME matching due to security concerns - coreruleset#1902
@azurit |
I re-run tests and it now passes ok, it was only some kind of random/temporary error, sorry for that. |
@kam821 |
@kam821 Can you explain why have you changed IDs of existing rules? Thank you! |
@azurit : We have not heard from the contributor anymore. Would you mind picking this up and if need be fix it yourself in a new PR, so we can merge this eventually? |
See PL #1946 . |