matcha
matcha copied to clipboard
BUG: Session key race condition in encryption
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
- Multiple goroutines access session key
- One modifies while another reads
- 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
Already handled, close it.