zeek/testing/btest/scripts/base/protocols/http
Arne Welzel 377fd711bd HTTP: Implement FlipRoles()
When Zeek flips roles of a HTTP connection subsequent to the HTTP analyzer
being attached, that analyzer would not update its own ContentLine analyzer
state, resulting in the wrong ContentLine analyzer being switched into
plain delivery mode.

In debug builds, this would result in assertion failures, in production
builds, the HTTP analyzer would receive HTTP bodies as individual header
lines, or conversely, individual header lines would be delivered as a
large chunk from the ContentLine analyzer.

PCAPs were generated locally using tcprewrite to select well-known-http ports
for both endpoints, then editcap to drop the first SYN packet.

Kudos to @JordanBarnartt for keeping at it.

Closes #3789
2024-07-04 11:38:33 +02:00
..
100-continue.zeek GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
101-switching-protocols.zeek btest/http: Explain switching-protocols test change as comment 2024-01-22 18:54:38 +01:00
all-headers-event.zeek Add tests for {http,mime}_all_headers events 2019-08-13 11:28:00 -07:00
bad-content-range.zeek HTTP: Make Content-Range parsing more robust 2023-03-13 18:00:39 +01:00
build-url.zeek Merge branch 'Fix_http_build_url' of ssh://github.com/Olerdrive/zeek 2019-10-28 09:32:32 +00:00
concurrent-range-requests.zeek files.log: Unroll and introduce uid and id fields 2022-08-16 17:22:20 +02:00
content-range-gap-skip.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
content-range-gap.zeek Update btest-diff calls on binary files to using "--binary" 2020-12-06 20:19:52 -08:00
content-range-less-than-len.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
curl-http-09.zeek http: Heuristic around rejecting malformed HTTP/0.9 traffic 2022-11-18 18:19:58 +01:00
deeply-nested-mime.zeek MIME: Cap nested MIME analysis depth to 100 2024-01-17 10:18:13 -07:00
entity-gap.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
entity-gap2.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
fake-content-length.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
flip-content-line-orig.zeek HTTP: Implement FlipRoles() 2024-07-04 11:38:33 +02:00
flip-content-line-resp.zeek HTTP: Implement FlipRoles() 2024-07-04 11:38:33 +02:00
http-09-content-length-confusion.zeek HTTP: Reset reply_message for HTTP/0.9 2023-03-13 14:13:50 +01:00
http-09.zeek http: Heuristic around rejecting malformed HTTP/0.9 traffic 2022-11-18 18:19:58 +01:00
http-11-request-then-cruft.pcap testing/http: http-11-request-then-cruft 2023-01-26 19:59:39 +01:00
http-bad-request-with-version.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
http-basic-auth-extra-space.zeek Merge branch 'master' of https://github.com/progmboy/zeek 2023-06-27 18:21:34 +02:00
http-connect-with-header.zeek Remove @load base/frameworks/dpd from tests 2022-08-31 17:00:55 +02:00
http-connect.zeek Remove @load base/frameworks/dpd from tests 2022-08-31 17:00:55 +02:00
http-desynched.zeek http: Prevent request/response de-synchronization and unbounded state growth 2023-08-28 15:02:58 +02:00
http-dpd-large-req.zeek btest: Remove unnecessary loading of frameworks/dpd 2022-08-31 16:50:37 +02:00
http-filename.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
http-header-crlf.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
http-methods.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
http-no-crlf.zeek http: Prevent script errors when http$current_entity is not set 2022-09-26 10:18:24 +02:00
http-pending-state-growth.zeek http: Prevent request/response de-synchronization and unbounded state growth 2023-08-28 15:02:58 +02:00
http-pipelining.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
missing-http-entity.zeek http: Prevent script errors when http$current_entity is not set 2022-09-26 10:18:24 +02:00
missing-zlib-header.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
multipart-body-length.zeek Spelling testing 2022-11-16 20:05:03 -05:00
multipart-extract.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
multipart-file-limit.zeek updates for gen-C++ maintenance, including skipping some inappropriate tests 2022-08-01 16:47:17 -07:00
no-uri.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
no-version.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
percent-end-of-line.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
version-mismatch.zeek testing/http: Add pcap extracted from m5-long external test-suite 2023-01-26 19:59:39 +01:00
x-gzip.zeek General btest cleanup 2020-08-11 11:26:22 -07:00
zero-length-bodies-with-drops.zeek GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00