-
Notifications
You must be signed in to change notification settings - Fork 1.6k
After 3.0.9 is it impossible to include configs by wildcard mask. #2905
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
Hmm...
Used with libmodsecurity3 (3.0.9), from here. Are you sure there is no any apparmor/selinux/unix permission issue? |
I'm building from source. Can provide docker file.
Same image with 3.0.8:
|
Here is the POC repo: https://github.com/wiseelf/modsecurity-docker-poc
First image works, second fails. |
What happens if you remove the
to
|
Yes, it works without
|
Thanks. Seems like commit 53cf6eb is broken. |
@airween will it be fixed? :) |
I'm sure that will be... once 😃 If I will have some time, I can take a look. |
This is a an interesting issue because it's not clear that a quoted filepath ought to be treated the same as an unquoted one with respect to special characters. Perhaps the presence of quotes should indicate a more literal interpretation of the filepath, comparable to if one executes ```ls "my*special2.conf" in linux. I have nevertheless restored the handling to be comparable to pre-v3.0.9. (The change in v3.0.9 was unannounced and presumably unintentional.) |
Describe the bug
After 3.0.9 is it impossible to include configs by wildcard mask. Works well on 3.0.8.
Logs and dumps
To Reproduce
Just type set this in config
Include "/usr/local/owasp-modsecurity-crs/rules/*.conf"
Expected behavior
All configs are included.
Server (please complete the following information):
Rule Set (please complete the following information):
The text was updated successfully, but these errors were encountered: