mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Honor the SecRuleEngine while filtering connections
The SecRuleEngine has the capability to Enable, Disable or even to place the ModSecurity in DetectionOnly mode. The SecReadStateLimit and SecWriteStateLimit were not honoring such state, due the fact that our configuration belongs to requests not to connections, the only struct that exists while those filters are placed. By adding a global variable "conn_limits_filter_state" we are now able to identify the current state of the ModSecurity, once the configuration is loaded this variable is set and used by the connections filters.
This commit is contained in:
@@ -145,6 +145,8 @@ extern DSOLOCAL unsigned long int msc_pcre_match_limit_recursion;
|
||||
|
||||
extern DSOLOCAL int status_engine_state;
|
||||
|
||||
extern DSOLOCAL int conn_limits_filter_state;
|
||||
|
||||
extern DSOLOCAL unsigned long int conn_read_state_limit;
|
||||
extern DSOLOCAL TreeRoot *conn_read_state_whitelist;
|
||||
extern DSOLOCAL TreeRoot *conn_read_state_suspicious_list;
|
||||
|
Reference in New Issue
Block a user