mirror of https://github.com/OISF/suricata
detect/firewall: reject unsatisfiable app-layer-state rules
An app-layer-state comparison that can never hold - mode '>' at or beyond the completion state, or mode '<' at the starting state - can never match. Both are fatal at rule load, so reject them at parsing. The LTE (<hook) form at the first state (progress 0) is accepted and is equivalent to the plain hook form: there are no prior states to auto-accept. Derive the completion state from the direction the keyword resolved in instead of the rule's flags, and document the new load time rejections. Ticket: #8944.pull/16368/head
parent
59d08a717e
commit
9419f15779
Loading…
Reference in New Issue