# Source and history excerpts for the VPNL-2026-0013 retest at singlink-protocol 23bf613409fd836f2da7b2ba75827dc15d63c918 # Each block shows the command and its output, run in the repository root of a fresh clone. # generated: 2026-11-19T03:56:55Z ## F-02 Go toolchain $ sed -n 1,6p go.mod module github.com/SingLinkLabs/singlink-protocol go 1.26.11 toolchain go1.27.4 $ grep -n 'GOTOOLCHAIN\|go: \[\|govulncheck@\|check-latest' .github/workflows/ci.yml 24: GOTOOLCHAIN: local 53: check-latest: true 136: run: go install golang.org/x/vuln/cmd/govulncheck@v1.10.0 $ sed -n 12,34p Makefile test: $(GO) vet ./... $(GO) test -race ./... # Fails when the Go toolchain in use is older than the release toolchain. check-go: @v="$$($(GO) env GOVERSION)"; v="$${v#go}"; v="$${v%% *}"; \ case "$$v" in [0-9]*) ;; *) echo "release builds need a released Go >= $(RELEASE_GO), found $$v" >&2; exit 1 ;; esac; \ if [ -z "$(RELEASE_GO)" ] || [ "$$(printf '%s\n%s\n' "$(RELEASE_GO)" "$$v" | sort -V | head -n 1)" != "$(RELEASE_GO)" ]; then \ echo "release builds need Go >= $(RELEASE_GO), found go$$v (run with GOTOOLCHAIN=go$(RELEASE_GO))" >&2; exit 1; \ fi # Known vulnerabilities reachable from this module, including the standard # library of the toolchain in use; exits non-zero when any is found. vulncheck: $(GO) run golang.org/x/vuln/cmd/govulncheck@$(GOVULNCHECK_VERSION) ./... cli: check-go $(GO) build -trimpath -ldflags='-s -w' -o build/singlink ./cmd/singlink # Universal macOS library for the Flutter app. lib: check-go CGO_ENABLED=1 GOARCH=arm64 CC="clang -arch arm64" $(GO) build -trimpath -buildmode=c-shared -ldflags='$(LDFLAGS_LIB)' -o build/libsinglink-arm64.dylib ./ffi ## F-03 default destination policy $ grep -n '3fff::/20\|5f00::/16\|100:0:0:1::/64\|::ffff:0:0:0/96\|2000::/3' singlink/policy.go 168: "::ffff:0:0:0/96", // IPv4-translated (RFC 2765, obsoleted by RFC 6145 and RFC 6052) 171: "100:0:0:1::/64", // dummy IPv6 prefix (RFC 9780) 175: "3fff::/20", // documentation (RFC 9637) 176: "5f00::/16", // segment routing (SRv6) SIDs (RFC 9602) 191:// block there is not yet listed above (5f00::/16 and 100:0:0:1::/64 were 194:var globalUnicast6 = netip.MustParsePrefix("2000::/3") 204:var ipv4Translated = netip.MustParsePrefix("::ffff:0:0:0/96") ## F-04 cryptography slot $ sed -n 272,292p singlink/server.go // slot is released by defer, so a panic in this section (recovered by // handle) cannot leak it and eventually block every later handshake. func (s *Server) authenticate(flight []byte) (*serverHandshake, *Token, error) { s.guard.crypto <- struct{}{} defer func() { <-s.guard.crypto }() if s.cfg.cryptoHook != nil { s.cfg.cryptoHook() } hs, err := parseFirstFlight(flight, s.keys) if err != nil { return nil, nil, err } tok, err := s.cfg.Issuers.Verify(hs.req.token) if err != nil { return nil, nil, err } if !hs.verifyPoP(tok.DevicePub) { return nil, nil, errProbe } return hs, tok, nil } ## F-10 remediation references $ git grep -n -E '78cde5e|6a7cd58|26c1707|b8e6fd7|24b6b19|627d776|3eb3fd3' -- . || echo '(no match in the tree)' (no match in the tree) $ for c in 9b04898 6cd1884 fd7c848 3c201dd fe55c57 8dba7e2 1a992f1; do printf '%s ' $c; git cat-file -t $c; git merge-base --is-ancestor $c HEAD && echo ' ancestor of HEAD: yes'; done 9b04898 commit ancestor of HEAD: yes 6cd1884 commit ancestor of HEAD: yes fd7c848 commit ancestor of HEAD: yes 3c201dd commit ancestor of HEAD: yes fe55c57 commit ancestor of HEAD: yes 8dba7e2 commit ancestor of HEAD: yes 1a992f1 commit ancestor of HEAD: yes $ git log --format='%h %s' -1 9b04898; git log --format='%h %P' -1 fd7c848 9b04898 Display SingLink Beta in CLI and native version metadata fd7c848 9b0489807e72f09d6e4bfef99c2a2d35b58fdeea $ git log --format='%h %s' --grep='78cde5e\|24b6b19' HEAD 50d5740 Reference review-fix commit 24b6b19 in remediation table 1a992f1 Address independent review: revocation race, expired-token marks, docs 8dba7e2 Port audit reproductions as regression tests; key replay tags; prune expired state $ grep -n 'vpn.com.de/reports/VPNL-2026-0013' SPEC.md README.md SECURITY.md docs/SECURITY-REMEDIATION.md docs/SECURITY-REMEDIATION.md:445:) and confirmed the F-01 fix SPEC.md:14:). Their findings, the fixes and README.md:19: ([VPNL-2026-0013](https://vpn.com.de/reports/VPNL-2026-0013)), with fixes SECURITY.md:15:[VPNL-2026-0013](https://vpn.com.de/reports/VPNL-2026-0013)) with their