matcha icon indicating copy to clipboard operation
matcha copied to clipboard

BUG: Session key race condition in encryption

Open andrinoff opened this issue 7 months ago • 1 comments

Describe the bug Session key access at config/encryption.go:49-68 lacks synchronization. GetSessionKey() returns pointer to internal slice that could be modified concurrently.

To reproduce

  1. Multiple goroutines access session key
  2. One modifies while another reads
  3. Race condition, potential data corruption

Expected behavior Use mutex or return copy of session key

Matcha version master

OS All

Additional context File: config/encryption.go lines 49-68 No locking on session key access

andrinoff avatar Apr 21 '26 14:04 andrinoff

Already handled, close it.

mavonx avatar May 10 '26 13:05 mavonx