]> git.ipfire.org Git - thirdparty/suricata.git/commit
http2: forbid data on stream 0
authorPhilippe Antoine <pantoine@oisf.net>
Tue, 15 Apr 2025 10:34:37 +0000 (12:34 +0200)
committerVictor Julien <vjulien@oisf.net>
Thu, 3 Jul 2025 10:16:22 +0000 (12:16 +0200)
commit1d6d331752e933c46aca0ae7a9679b27462246e3
treeee681bb7619842a6fdf6a59468f39ae8197213ae
parent116d1763d91914b9220847fb98333ebda052f66a
http2: forbid data on stream 0

Ticket: 7658

Suricata will not handle well if we open a file for this tx,
do not close it, but set the transaction state to completed.

RFC 9113 section 6.1 states:

If a DATA frame is received whose Stream Identifier field is 0x00,
the recipient MUST respond with a connection error (Section 5.4.1)
 of type PROTOCOL_ERROR.
rules/http2-events.rules
rust/src/http2/http2.rs