-
Notifications
You must be signed in to change notification settings - Fork 1.6k
SecContentInjection is not yet supported #1883
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
Yes. As stated by the error message and the reference manual, SecContentInjection is not supported in libModSecurity. |
Thanks, What are the rules setup for preventing CSRF in libmodsecurity |
@dvyas, You could try virtual patching the vulnerable parameters. |
@victorhora can you give me one example...I am newbie to modsecurity...is there any rules file for virtual patching |
How can I add a CSRF token like in modsecurity v2 it is SecContentinjection and then use append to ad token to desired forms |
You can't append content with SecContentInjection as of now with libModSecurity. This functionality is not planned to be implemented. See #1001 (comment). This functionality was experimental in v2 and due to performance reasons and also due to the functionality also being too tied to the connector rather than the library it's currently deprecated. I recommend that you follow OWASP guidelines on implementing CSRF protection: https://www.owasp.org/index.php/Category:OWASP_CSRFGuard_Project |
@victorhora Is there other setting to replace |
I am getting below error when using ContentInjection rule vi /etc/nginx/nginx.conf nginx -s reload 10:26:25 [notice] 118#118: ModSecurity-nginx v1.0.0 10:26:25 [emerg] 118#118: "modsecurity_rules" directive Rules error. File: <>. Line: 1. Column: 16. SecContentInjection is not yet supported. in /etc/nginx/nginx
rg] "modsecurity_rules" directive Rules error. File: <>. Line: 1. Column: 16. SecContentInjection is not yet supported. in /etc/nginx/nginx.conf:66
The text was updated successfully, but these errors were encountered: