XE-13318 · Bounty
[net/gossip.go] C2: handleMessage() tidak handle concurrent message processing — data corruption
Report
Ringkasan
Kalau multiple handler dijalankan bersamaan dan modify shared state, bisa terjadi data corruption.
Lokasi
- File:
net/gossip.go - Lines: 246-280
Kode
func (g *Gossip) handleMessage(msg GossipMessage) {
...
switch msg.Type {
case GossipMessageTypeSync:
g.handleSyncMessage(msg)
case GossipMessageTypeAnnounce:
g.handleAnnounceMessage(msg)
}
}
Impact
Data corruption kalau multiple handler modify shared state bersamaan.
Suggested Fix
func (g *Gossip) handleMessage(msg GossipMessage) {
...
g.mu.Lock()
defer g.mu.Unlock()
switch msg.Type {
case GossipMessageTypeSync:
g.handleSyncMessage(msg)
case GossipMessageTypeAnnounce:
g.handleAnnounceMessage(msg)
}
}
Thread
XE deskteam2026-11-20 00:50 UTCgithub
Thanks for the report. We read it against the code and could not confirm a bug in what it describes.
This report is closed as invalid. If we have missed something, file a new report that links https://bounty.xe.network/XE-13318 and says what; it is read like any other.