Project

General

Profile

Actions

Bug #7638

open

detect: incorrect rule ordering with more complex flowbit chains

Added by Victor Julien 6 months ago. Updated 19 days ago.

Status:
In Review
Priority:
High
Target version:
Affected Versions:
Effort:
Difficulty:
high
Label:

Description

alert http any any -> any any (http.uri; content:"down"; flowbits:set,uritest; sid:11;)
alert http any any -> any any (http.user_agent; content:"Mozilla"; flowbits:isset, headtest; flowbits:set,moz; sid:10;)
alert http any any -> any any (http.method; content:"GET"; flowbits:isset,uritest; flowbits:set,headtest; sid:12;)
alert http any any -> any any (http.host; content:"ether"; flowbits:isset,moz; sid:14;)

should be ordered: 11, 12, 10, 14. Is actually ordered: 11, 10, 12, 14. This is because in the ordering there just 3 cases:
set, read, read_set. Sid 10 and 12 are both read_set, and thus correct order isn't enforced.

Subtasks 6 (6 open0 closed)

Bug #7771: flowbits: cyclic dependencies in flowbits are accepted by the engineIn ReviewShivani BhardwajActions
Bug #7772: flowbits: no-op set and isset combinations are acceptedIn ReviewShivani BhardwajActions
Bug #7773: flowbits: no-op unset + isnotset combinations are acceptedIn ReviewShivani BhardwajActions
Bug #7774: flowbits: invalid set + toggle combinations are acceptedIn ReviewShivani BhardwajActions
Bug #7817: flowbits: invalid isset and isnotset combinations are acceptedIn ReviewShivani BhardwajActions
Bug #7818: flowbits: invalid set and unset combinations are acceptedIn ReviewShivani BhardwajActions

Related issues 1 (1 open0 closed)

Related to Suricata - Bug #1399: Flowbits rules not always evaluated in necessary orderAssignedVictor JulienActions
Actions

Also available in: Atom PDF