ModSecurity is an open source, cross platform web application firewall (WAF) engine for Apache, IIS and Nginx. It has a robust event-based programming language which provides protection from a range of attacks against web applications and allows for HTTP traffic monitoring, logging and real-time analysis.
In NGINX 1.23.0 some changes were made in regards to headers structure. The NGINX module fails to compile with:
ModSecurity-2.9.5/nginx/modsecurity/ngx_http_modsecurity.c: In function 'ngx_http_modsecurity_save_headers_in':
ModSecurity-2.9.5/nginx/modsecurity/ngx_http_modsecurity.c:382:38: error: 'ngx_http_headers_in_t' has no member named 'cookies'
if (ngx_array_init(&r->headers_in.cookies, r->pool, 2,
^
In NGINX 1.23.0 some changes were made in regards to headers structure. The NGINX module fails to compile with: