-
Notifications
You must be signed in to change notification settings - Fork 1.6k
How to call modsecurity in my application and use rules to check if the URL is safe? #2372
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, @kaingeyy Can you provide us the stack trace for the error using gdb? |
strace_log.txt |
add line "SecRule id:id:941110" ... to file basic_rules.conf |
It will be interesting to have the gdb stack trace. Do you think you can share it? |
29 const char *error = NULL; Program received signal SIGSEGV, Segmentation fault. |
comment function msc_rules_dump(rules) , test program success 👍 |
backtrace: |
@kaingeyy are you using 3.1-experimental branch? |
program : linux c
platform: centos 7
version : v3
file : examples/simple_example_using_c/test
add line into file : basic_rules.conf
Include "./crs-setup.conf"
Include "./rules/*.conf"
run test
./test
...
Rule ID: ./rules/REQUEST-949-BLOCKING-EVALUATION.conf:51--0x1f32530
Rule ID: ./rules/REQUEST-949-BLOCKING-EVALUATION.conf:132--0x2b41e00
Rule ID: ./rules/RESPONSE-950-DATA-LEAKAGES.conf:139--0x2b4e0d0
Rule ID: ./rules/RESPONSE-951-DATA-LEAKAGES-SQL.conf:476--0x2beb180
Rule ID: ./rules/RESPONSE-952-DATA-LEAKAGES-JAVA.conf:103--0x2c07ba0
Rule ID: ./rules/RESPONSE-953-DATA-LEAKAGES-PHP.conf:137--0x2d7c5b0
Rule ID: ./rules/RESPONSE-954-DATA-LEAKAGES-IIS.conf:151--0x2d8d7f0
Rule ID: ./rules/RESPONSE-959-BLOCKING-EVALUATION.conf:115--0x2d95690
Rule ID: ./rules/RESPONSE-980-CORRELATION.conf:127--0x2dac940
Rule ID: ./rules/RESPONSE-980-CORRELATION.conf:165--0x2db1a10
Phase: 1 (40 rules)
Segmentation fault (core dumped)
how to fix it ?
The text was updated successfully, but these errors were encountered: