-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Mod Security compiled with D_FORTIFY_SOURCE=2 results in crashes with lua scripts #1703
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
Labels
Milestone
Comments
Can't reproduce this issue. I've used the last code from master and enabled similar hardening options: Using the following as modsecurity.conf:
Debug logs:
|
Also couldn't reproduce the issue on the current version libModSecurity. Please check if this issue persists with the latest version and let us know if it's the case and we can investigate further. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to use custom LUA scripts for parsing POST/upload requests and Mod Security was compiled with D_FORTIFY_SOURCE=2, this results in the following:
This happens on GCC 4.8.5, 4.9x (any builds) on CentOS7.
Enabling some debugging (compiling modsec with symbols et al) reveals the following:
We're using the following lua script for testing against WordPress (WP is in Russian)
Here's modsec debug logging of what happens, ie:
Here's our modsec2.conf settings:
These RPM Macro for CFLAGS does NOT result in crashes:
But these crash for us:
The text was updated successfully, but these errors were encountered: