Skip to content

libmodsecurity HTTP method issue #1717

Closed
@brianp9906

Description

@brianp9906

libmodsecurity with ModSecurity-apache connector is flagging protocol enforcement incorrectly. This is due to a parsing issue it appears because modsec audit log shows it too, but my Chrome beta branch browser just shows HTTP/1.1.

ModSecurity: Warning. Matched "Operator Within' with parameter HTTP/1.0 HTTP/1.1 HTTP/2 HTTP/2.0'' against variable REQUEST_PROTOCOL' (Value: HTTP/HTTP/1.1' ) [file "/etc/httpd/modsecurity.d/rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf"] [line "944"] [id "920430"] [rev "2"] [msg "HTTP protocol version is not allowed by policy"] [data "HTTP/HTTP/1.1"]

---pkzg8q5T---B-- GET /stuff/?query=stuff HTTP/HTTP/1.1

Changing crs-setup.conf to have 'HTTP/HTTP/1.1' does resolve the issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions