Skip to content

Fix B-01–B-23 security and correctness bugs (v1.4.1) - #5

Merged
cursor[bot] merged 1 commit into
masterfrom
cursor/fix-b01-b23-f738
Sep 17, 2026
Merged

cursor[bot] merged 1 commit into
masterfrom
cursor/fix-b01-b23-f738

Conversation

@Warexpor

Copy link
Copy Markdown
Owner

Summary

Closes every confirmed finding from the Project bug review (B-01–B-23). Connection-flow-sensitive items use safer alternatives so happy-path connect behavior stays intact where we cannot live-test.

Connection-safe approaches

  • B-04: Close UDP before PeerManager.Stop / leave cleanup
  • B-05: Persist last-room only on room_joined
  • B-06/B-07: Auth wait + CloseAttempt (non-intentional) mirroring reconnect
  • B-10: https:// always → wss (no silent cleartext downgrade)
  • B-11: Relay REG binds first UDP remote for the token
  • B-14: Critical signaling blocks briefly instead of silent drop
  • B-16: TUN setup off WS read loop
  • B-21: P2P match by full ip:port

Other

Update SHA-256 gate, Electron sandbox + sidecar hash before setcap, server token defaults, owner-token hash-at-rest, WS limits, atomic writes, log perms, invite without password, version 1.4.1.

Test plan

  • go test ./... in server/ and client/
  • CI green
  • After merge: tag v1.4.1 to run Release workflow (publishes Entangled.exe.sha256)
Open in Web Open in Cursor 

Connection-sensitive fixes use safer alts (lifecycle order, auth wait
mirroring reconnect, persist-after-ACK, https→wss fail-closed, UDP bind
on relay REG). Non-connection hardening covers update SHA-256, Electron
sandbox/setcap integrity, server token defaults, and related issues.

Co-authored-by: Warexpor <warexpor@gmail.com>
@Warexpor
Warexpor marked this pull request as ready for review September 17, 2026 13:52
@cursor
cursor Bot merged commit 71e7296 into master Sep 17, 2026
3 checks passed
@cursor
cursor Bot deleted the cursor/fix-b01-b23-f738 branch September 17, 2026 13:53
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