Skip to content

How to call modsecurity in my application and use rules to check if the URL is safe? #2372

Closed
@kaingeyy

Description

@kaingeyy

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 ?

Metadata

Metadata

Assignees

Labels

3.xRelated to ModSecurity version 3.x

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions