<!-- XE-13315 · [net/gossip.go] H14: gossipHandler() tidak handle message yang tidak diketahui — panic risk · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13315>. The page is the record; this is the same page for reading.*

XE-13315 · Bounty

# \[net/gossip.go\] H14: gossipHandler() tidak handle message yang tidak diketahui — panic risk

Closed · invalid
—
[xe#460](https://github.com/xeprotocol/xe/issues/460)
filed 2026-11-12 02:55 UTC
by wahyu20260100233-ops

Verdict
:   Invalid

Tier
:   —

Claimed
:   —

Area
:   P2P / sync

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 00:51 UTC

Told
:   2026-11-20 00:50 UTC

### Patches

None linked.

### History

- [559433](https://bounty.xe.network/log/559433) 2026-11-20 00:50 UTC reply.mirrored
- [558489](https://bounty.xe.network/log/558489) 2026-11-20 00:49 UTC reply.sent
- [554090](https://bounty.xe.network/log/554090) 2026-11-20 00:36 UTC github.state\_pushed
- [554089](https://bounty.xe.network/log/554089) 2026-11-20 00:36 UTC github.labels
- [553368](https://bounty.xe.network/log/553368) 2026-11-20 00:33 UTC proposal.adopted
- [553188](https://bounty.xe.network/log/553188) 2026-11-20 00:33 UTC proposal.adopted
- [553187](https://bounty.xe.network/log/553187) 2026-11-20 00:33 UTC ticket.status new → closed
- [552847](https://bounty.xe.network/log/552847) 2026-11-20 00:33 UTC proposal.adopted
- [552846](https://bounty.xe.network/log/552846) 2026-11-20 00:33 UTC ticket.facts area
- [552845](https://bounty.xe.network/log/552845) 2026-11-20 00:33 UTC proposal.adopted
- [552844](https://bounty.xe.network/log/552844) 2026-11-20 00:33 UTC ticket.facts
- [550413](https://bounty.xe.network/log/550413) 2026-11-20 00:29 UTC note.added

[Full history](https://bounty.xe.network/log?ref=XE-13315) · [JSON](https://bounty.xe.network/v1/tickets/XE-13315) · [markdown](https://bounty.xe.network/XE-13315.md)

### Report

## Ringkasan

Kalau message type tidak diketahui, handler bisa panic atau melakukan sesuatu yang tidak diinginkan.

## 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)
    }
    // kalau type tidak diketahui, tidak ada handling
}
```

## Impact

Kalau message type tidak diketahui, handler tidak melakukan apa-apa. Bisa menyebabkan message yang tidak valid di-proses.

## Suggested Fix

```
func (g *Gossip) handleMessage(msg GossipMessage) {
    ...
    switch msg.Type {
    case GossipMessageTypeSync:
        g.handleSyncMessage(msg)
    case GossipMessageTypeAnnounce:
        g.handleAnnounceMessage(msg)
    default:
        logging.Warnf("gossip: unknown message type: %d", msg.Type)
        return
    }
}
```

### Thread

**XE desk**team2026-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-13315 and says what; it is read like any other.
