Skip to content

fix(compression): brotli-decompressor 6.4.2 for dcb's check; fix(quic): handshake confirmation, and the close after a refused ClientHello - #357

Merged
PQCrypta merged 3 commits into
mainfrom
fix/brotli-decoder-handshake-confirmed
Dec 4, 2026
Merged

PQCrypta merged 3 commits into
mainfrom
fix/brotli-decoder-handshake-confirmed

Conversation

@PQCrypta

@PQCrypta PQCrypta commented Dec 4, 2026 •

Copy link
Copy Markdown
Owner

compression

brotli 9.1.5 and brotli-decompressor 6.4.2 in both lockfiles. Every dcb stream is decoded before it is sent, and decoders before 6.4.2 refused a dictionary copy that runs on into the stream's own window (dropbox/rust-brotli-decompressor#104), so a valid stream could be turned away and the response sent with a standard coding instead.

  • New test decode_dcb_reads_a_dictionary_copy_that_runs_into_the_window: a stream from the brotli crate's encoder at quality 2 against a 64 KiB dictionary. It passes with 6.4.2 and fails with 6.4.1 ("invalid dcb stream").
  • The comments that put the fault in the brotli crate's encoder are corrected: its streams were valid. mbrotli stays the encoder, for output identical to the reference encoder's.

quic (vendor/noq)

moq (the control fuzz check)

ClusterFuzzLite found a PUBLISH whose FILL_PARAMETERS carry a Range Filter of Length 0. Outside a REQUEST_UPDATE that is no filter, so the relay does not encode it again, and the check's round trip differed. The check listed the messages whose parameters may hold such a filter by hand and left out PUBLISH, where FILL_PARAMETERS may appear; it now asks of every message that carries parameters. The input is a moq_control seed, and control_check_takes_a_publish_with_an_empty_fill_filter runs it (it fails with the old check).

Checked

cargo fmt -p pqcrypta-proxy -- --check; cargo clippy --all-targets -- -D warnings; cargo test --lib compression (18 pass) and moq:: (75 pass); cargo test --manifest-path vendor/noq/Cargo.toml -p noq-proto -p noq --lib (494 + 39 pass); clippy on vendor/noq's noq-proto.

BEGIN_COMMIT_OVERRIDE
fix(compression): check dcb streams with brotli-decompressor 6.4.2, which reads a dictionary copy that runs on into the window
fix(quic): a connection closed in the Initial space is not handshake-confirmed, and answers an Initial sent again before validation with another CONNECTION_CLOSE
END_COMMIT_OVERRIDE

🤖 Generated with Claude Code

…): handshake confirmation, and the close after a refused ClientHello

compression: brotli 9.1.5 and brotli-decompressor 6.4.2 in both lockfiles.
Every dcb stream is decoded before it is sent, and decoders before 6.4.2
refused a dictionary copy that runs on into the stream's own window
(dropbox/rust-brotli-decompressor#104), so a valid stream could be turned
away and the response sent with a standard coding instead. New test:
decode_dcb_reads_a_dictionary_copy_that_runs_into_the_window, a stream from
the brotli crate's encoder at quality 2 against a 64 KiB dictionary, which
decoders before 6.4.2 refuse. The comments that put the fault in the brotli
crate's encoder are corrected: its streams were valid. mbrotli stays the
encoder, for output identical to the reference encoder's.

quic (vendor/noq): a handshake is confirmed once both the Initial and the
Handshake keys are gone. A connection that closed in the Initial space never
had Handshake keys, so it no longer counts as confirmed, and takes no probing
or migrating packets (n0-computer/noq#920). And a server that refused a
ClientHello before validating the path answers an Initial the client sends
again on that path with another CONNECTION_CLOSE, while the Initial keys
exist and within the anti-amplification limit: the client sends it again
because the first close did not arrive (n0-computer/noq#892). Tests:
closed_in_initial_space_is_not_handshake_confirmed and
handshake_confirmed_requires_established_without_handshake_keys.
server_close_only_initial_is_not_padded: a server that closes while its first flight is still queued sends CONNECTION_CLOSE alone in the Initial space, under 1200 bytes, so a close sent again for a retransmitted ClientHello stays within the anti-amplification limit.
…y message

ClusterFuzzLite found a PUBLISH whose FILL_PARAMETERS carry a Range Filter of Length 0: no filter outside a REQUEST_UPDATE, so the relay does not encode it again, and the check's round trip differed. The check listed the messages whose parameters may hold such a filter by hand and left out PUBLISH (FILL_PARAMETERS may appear in a PUBLISH); it now asks of every message that carries parameters. The input is a moq_control seed, and control_check_takes_a_publish_with_an_empty_fill_filter runs it.
@PQCrypta
PQCrypta merged commit dbd1d45 into main Dec 4, 2026
32 checks passed
@PQCrypta
PQCrypta deleted the fix/brotli-decoder-handshake-confirmed branch December 4, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants