Actions
Bug #1638
closed
VJ
AH
rule parsing issues: rev
Bug #1638:
rule parsing issues: rev
Affected Versions:
Effort:
Difficulty:
Label:
Description
The rule parser crashes on certain bad rules.
Rules:
alert http any any -> any any (content:"abc"; http_uri; sid:1; rev:";) alert http any !ny -> any any (content:"abc"; http_uri; sid:1; rev:";) alert http any any -> any !ny (content:"abc"; http_uri; sid:1; rev:";) alert http any any <> any any (content:"abc"; http_uri; sid:1; rev:";) alert http any any -> any any (content:"abc"; http_uri; id:1; rev:";) alert http any any -> any any (content:"abc";id:1; rev:";) alert http any !ny -> any !ny (content:"abc"; http_uri; sid:1; rev:";) alert http any :ny -> any any (content:"abc"; http_uri; sid:1; rev:";) alert http any any <> any any (content:"abc"; http_uri; gid:1; rev:";) alert http any any <> any any (content:"abc"; http_uri; rev:"; r;) alert http any any <> any any (content:"abc"; http_uri; gid:1; rev:";) alert http any !ny -> any !ny (id:1; rev:";)
Found by AFL.
To reproduce, compile Suricata with ASAN and simply run:
suricata -c suricata.yaml -S <rulefile> -T
Actions