Project

General

Profile

Actions

Bug #4858

closed

fuzz: Timeout with pcre

Added by Philippe Antoine over 3 years ago. Updated 9 days ago.

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

Description

Found by oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=40380

Reproducer signature is alert ip any any -> any any (pcre:"/.*\.loca|domain/"; sid:1;)


alert ip any any -> any any (pcre:"/.*\seqppcre:"/.*|.localdom 'HTTP/2.FPC0e:"/.*|.localdomain/"; sid:1;)
alert ip any any -> any any (content:"dummy"; sid:2;)

The second signature makes the run 500 times faster

That is because raw_stream_progress is updated only by PrefilterPktStream
But I am not sure this fast result is always correct...


Files

lolb.pcap (1.29 KB) lolb.pcap Philippe Antoine, 11/29/2021 09:11 AM
pcrexform.rules (255 Bytes) pcrexform.rules Philippe Antoine, 04/08/2022 08:58 AM
pcrexform.pcap (421 KB) pcrexform.pcap Philippe Antoine, 04/08/2022 08:58 AM

Related issues 2 (2 open0 closed)

Related to Suricata - Optimization #5076: keyword content does not work over reassembled TCPNewVictor JulienActions
Related to Suricata - Feature #7328: detect: use hyper scan streaming modeNewOISF DevActions
Actions

Also available in: Atom PDF