Repository navigation
utls: REALITY replay guard on dev-1.9, no server_name ack a dest cannot match - #210
Merged
Merged
Conversation
…server_name ack getmikan/utls v0.0.0-20261205232209-e83190d8a0e5, the dev-1.9 line Citrus is on, now with fork PR 8 (a REALITY server takes a ClientHello once and learns the target's records ahead of the first client; a client re-checks a resumed session's chain against the current roots) and e83190d: REALITY's EncryptedExtensions carry no server_name ack, which a target without ALPN and without the ack cannot hold, so every handshake with such a target failed on a negative padding.
…r_name ack, 203 PRs
Miroshka000
added a commit
to Miroshka000/mikan
that referenced
this pull request
Dec 6, 2026
… not have getmikan/utls e83190d on its dev-1.9 line (v0.0.0-20261205232209-e83190d8a0e5). A REALITY server pads its records to the target's and cannot shorten one; the server_name ack Go's crypto/tls has sent since 1.25 made its EncryptedExtensions 4 bytes longer than those of a target without ALPN and without the ack, and every authenticated handshake with such a target failed. The nodes' REALITY sends no ack now. Citrus takes the same pin in getmikan/Citrus#210. Checked: go vet, go build, the tests of internal/node (but the three that fail on Windows), internal/proto, internal/sub/mihomo and cmd/mikan (TestDepsLinkNoCore).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Raises the
utlsreplace to getmikan/utlsv0.0.0-20261205232209-e83190d8a0e5(dev-1.9, wasb60cfbd40b44):server_nameack. A dest that negotiates no ALPN and sends no ack has 6 bytes of EncryptedExtensions against the server's 10; REALITY cannot shorten a record, so every handshake with such a dest failed (padding: -4). Covered byTestRealityTargetWithEmptyEncryptedExtensionsin the fork.Checked locally (Go 1.26.11, Windows):
go mod tidy,go vet ./...,go build ./...,go test ./listener/... ./component/tls/... ./transport/... ./adapter/outbound/....