{"id":"XE-13322","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"467","source_url":"https://github.com/xeprotocol/xe/issues/467","reporter_id":2483,"title":"[net/gossip.go] C6: broadcast() tidak handle message yang tidak valid — DoS","area":"p2p-sync","claimed_tier":null,"assessed_tier":null,"verdict":"invalid","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"invalid","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T20:42:09.434139+00:00","updated_at":"2026-11-20T00:51:28.947176+00:00","source_created_at":"2026-11-12T02:56:53+00:00","told_at":"2026-11-20T00:50:53+00:00","status_changed_at":"2026-11-20T00:33:27.534047+00:00","url":"https://bounty.xe.network/XE-13322","body":"## Ringkasan\nKalau message tidak valid, broadcast bisa menyebabkan DoS (Denial of Service).\n\n## Lokasi\n- File: `net/gossip.go`\n- Lines: 171-187\n\n## Kode\n```go\nfunc (g *Gossip) broadcast(key string, msg []byte, mode GossipMode) {\n    ...\n    for _, pid := range peers {\n        go g.sendToPeer(pid, key, msg)\n    }\n}\n```\n\n## Impact\nDoS kalau message tidak valid. Bisa menyebabkan service down.\n\n## Suggested Fix\n```go\nfunc (g *Gossip) broadcast(key string, msg []byte, mode GossipMode) {\n    ...\n    // validasi message sebelum broadcast\n    if !g.isValidMessage(msg) {\n        logging.Warnf(\"gossip: invalid message, not broadcasting\")\n        return\n    }\n    \n    // rate-limit broadcast\n    now := time.Now()\n    if last, ok := g.lastBroadcast[key]; ok && now.Sub(last) < g.rateLimit {\n        return\n    }\n    g.lastBroadcast[key] = now\n    \n    for _, pid := range peers {\n        go g.sendToPeer(pid, key, msg)\n    }\n}\n```","patch_refs":[],"thread":[{"id":13427,"source":"github","source_ref":"7026821671","author":"XE desk","team":true,"body":"Thanks for the report. We read it against the code and could not confirm a bug in what it describes.\n\nThis report is closed as invalid. If we have missed something, file a new report that links\nhttps://bounty.xe.network/XE-13322 and says what; it is read like any other.","created_at":"2026-11-20T00:50:53+00:00"}]}