Project

General

Profile

Actions

Feature #5746

closed

http.connection - allow in server response

Added by Brandon Murphy about 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
Effort:
Difficulty:
Label:

Description

Currently when using http.connection in combination with "to_client" produces the following error

Problem starting Suricata daemon: 7/12/2022 -- 19:57:49 - <Error> - [ERRCODE: SC_ERR_INVALID_SIGNATURE(39)] - rule 1 mixes keywords with conflicting directions

however, for whatever reason, the connection header is often observed in the HTTP Server Response.

This limitation forces the use of http.header to match on the Connection header instead of using the more specific buffer.


Files

out.pcap (1.19 KB) out.pcap Brandon Murphy, 12/08/2022 03:49 AM
Actions #1

Updated by Victor Julien about 2 years ago

Can you share a pcap / SV test for a connection with connection header in to client direction?

Actions #2

Updated by Brandon Murphy about 2 years ago

You betcha! Attached is a pcap of a wget to a benign site which exhibits this same behavior.

Actions #3

Updated by Victor Julien almost 2 years ago

  • Status changed from New to Assigned
  • Assignee changed from OISF Dev to Philippe Antoine
  • Target version changed from TBD to 7.0.0-rc2
Actions #4

Updated by Philippe Antoine almost 2 years ago

  • Status changed from Assigned to In Review

https://github.com/OISF/suricata/pull/8644

Tested non out.pcap with alert tcp any any -> any any (msg:"tfo test15"; flow: to_client; http.connection; content:"close"; sid:15;)

Actions #5

Updated by Victor Julien over 1 year ago

  • Status changed from In Review to Closed
Actions

Also available in: Atom PDF