-
-
Notifications
You must be signed in to change notification settings - Fork 402
Enabling nextdloud exclusion --> Expecting an action, got: ctl:requestBodyLimit=1073741824" #2069
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
Comments
Hi @mathsen, thanks for the report. Sorry to say, but looks like you ran into a libmodsecurity3 bug (or rather a deficiency), namely libmodsecurity3 does not support the First, you can check the (weak) documentation here. As you can see, this action is just in planning state (marked as TBI - I guess it means "to be implemented"). But you can also check the source: the scanner (it's a lexical analyzer) can't recognize this token ( Thank you again for your report - it's a very important feedback for us (it's a commented rule therefore we did not notice it). I do not close this issue yet, but appended to the list of our monthly chat agenda. I'm afraid we can't help you in this issue, but may be we have to do something with that commented rule generally. Sorry again. |
@airween Thanks for the fast reply! Thanks for the help and greetings Matse |
Hello,
which works as intended. Greetings |
hi @mathsen, your provided solution is the same what I would have suggested too. Please note, that with this setting the given value will be used for the whole request, eg. if the client sends a request with tons of POST arguments or length of arguments, the processing time may increase. In case of v3 you can't control separately the whole request size, and the excluded size of any files because the |
Chat decision: Keeping this issue open for further development. |
#2098 is closed - do we need to keep this issue open? |
Describe the bug
I have a nextcloud install (using modsecurity with the nginx connector), enabled the owasp nextcloud exclusions and everything runs fine - expect uploading big files.
So I tried to enable the outcommented, predefined rule in "rules/REQUEST-903.9003-NEXTCLOUD-EXCLUSION-RULES.conf":
Expected behaviour
Big file uploads work
Actual behaviour
Testing the outcommented file results in an error. So running "nginx -t" gives:
File: /etc/nginx/modsec/coreruleset-dev/rules/REQUEST-903.9003-NEXTCLOUD-EXCLUSION-RULES.conf. Line: 35. Column: 33. Expecting an action, got: ctl:requestBodyLimit=1073741824"
--> I can't even enable the exclusion and don't see why.
Your Environment
The text was updated successfully, but these errors were encountered: