mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

When http_reply events are received before http_request events, either through faking traffic or possible re-ordering, it is possible to trigger unbounded state growth due to later http_requests never being matched again with responses. Prevent this by synchronizing request/response counters when late requests come in. Also forcefully flush pending requests when http_replies are never observed either due to the analyzer having been disabled or because half-duplex traffic. Fixes #1705
13 lines
432 B
Text
13 lines
432 B
Text
# @TEST-DOC: 5 HTTP requests, the first one is responded to with 3 HTTP responses.
|
|
#
|
|
# @TEST-EXEC: zeek -b -r $TRACES/http/http-desync-request-response-5.pcap %INPUT
|
|
# @TEST-EXEC: btest-diff http.log
|
|
|
|
@load base/protocols/http
|
|
|
|
# mime type is irrelevant to this test, so filter it out
|
|
event zeek_init()
|
|
{
|
|
Log::remove_default_filter(HTTP::LOG);
|
|
Log::add_filter(HTTP::LOG, [$name="less-mime-types", $exclude=set("mime_type")]);
|
|
}
|