zeek/testing/btest/scripts/base
Arne Welzel 2a858d252e MIME: Cap nested MIME analysis depth to 100
OSS-Fuzz managed to produce a MIME multipart message construction with
thousands of nested entities (or that's what Zeek makes out of it anyhow).
Prevent such deep analysis by capping at a nesting depth of 100,
preventing unnecessary resource usage. A new weird named exceeded_mime_max_depth
is reported when this limit is reached.

This change reduces the runtime of the OSS-Fuzz reproducer from ~45 seconds
to ~2.5 seconds.

The test PCAP was produced from a Python script using the email package
and sending the rendered version via POST to a HTTP server.

Closes #208
2024-01-17 10:18:13 -07:00
..
files cluster: Deprecate the Cluster::Node$interface field 2023-11-07 16:06:16 +01:00
frameworks logging: Better error messages for invalid Log::delay() calls 2023-11-29 11:53:11 +01:00
misc Add scripts.base.misc.installation btest 2022-05-23 14:16:59 -07:00
protocols MIME: Cap nested MIME analysis depth to 100 2024-01-17 10:18:13 -07:00
utils OpaqueVal: Register TelemetryVals, too 2023-11-28 09:21:31 +01:00