Thanks to visit codestin.com
Credit goes to github.com

Skip to content

QUIC: ignore version negotiation packets. #411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 26, 2024
Merged

Conversation

arut
Copy link
Contributor

@arut arut commented Dec 26, 2024

Previously, such packets were treated as long header packets with unknown version 0, and a version negotiation packet was sent in response. This could be used to set up an infinite traffic reflect loop with another nginx instance.

Now version negotiation packets are ignored. This behavior fully compiles with RFC 9000. Version negotiation packets are supposed to be sent by servers and handled by clients.

Fixes #412.

@arut arut added the bug label Dec 26, 2024
Previously, such packets were treated as long header packets with unknown
version 0, and a version negotiation packet was sent in response.  This
could be used to set up an infinite traffic reflect loop with another nginx
instance.

Now version negotiation packets are ignored.  As per RFC 9000, Section 6.1:

  An endpoint MUST NOT send a Version Negotiation packet in response to
  receiving a Version Negotiation packet.
@arut arut merged commit a52ba8b into nginx:master Dec 26, 2024
1 check passed
@arut arut deleted the quic-vneg branch December 26, 2024 14:58
@Maryna-f5 Maryna-f5 added this to the nginx-1.27.4 milestone Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Traffic loop in QUIC.
3 participants