Repository navigation
fix(connector): verify the Anycubic LAN control TLS pin before login - #965
Merged
Merged
Conversation
(cherry picked from commit c7c02798020a10e7cbe60b33d1027dc02d2234c0)
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.
Held: awaiting the Full Review exact-head verdict. Please do not merge before it.
Follow-up to #963, which merged before its review fixes. Security fix for the Kobra 4 / Kobra S1 Max LAN control path:
connectAnycubicTls(the [low] Kobra X TLS pin is checked after the handshake #848 path used by the Kobra X client,transport.tsand provisioning) instead of disabling certificate checking and comparing the pin after the handshake. A wrong pin sends no MQTT bytes, so the username and password never reach an unverified server, and a CA plus a pin checks both.publishWeballowlist: a test now shows that a type outside info/light/print is refused and nothing is published.finished, notcancelled. Send-once with no resend is unchanged. This addsfinishedto the observation states accepted by the shared dispatcher (control/pause-dispatcher.ts).Not reachable today, because
ANYCUBIC_QUALIFIED_WRITESships empty, but this is the code any qualified pair would use. Each fix has a test intests/node/fix-963.test.tsthat fails on revert.Validated locally: unit check 1070 pass / 0 fail. Local typecheck errors were confined to
tests/node/farm-route-authorization.test.ts, which needs a dependency missing from the local install (typescript-ast, added in #503). CI installs fresh. The host's required checks must pass on this head before merging.Refs #963