{"id":"XE-13393","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"551","source_url":"https://github.com/xeprotocol/xe/issues/551","reporter_id":2366,"title":"[High] Block gossip validator returns ValidationIgnore for hash-mismatch blocks — sender is never peer-scored, enabling an unpenalized validator flood","area":"p2p-sync","claimed_tier":"high","assessed_tier":null,"verdict":"duplicate","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"duplicate","github_state":"closed","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-14T20:42:17.004815+00:00","updated_at":"2026-11-20T14:45:49.318456+00:00","source_created_at":"2026-11-14T07:15:22+00:00","told_at":"2026-11-20T14:44:32+00:00","status_changed_at":"2026-11-20T14:44:25.221957+00:00","url":"https://bounty.xe.network/XE-13393","body":"## Summary\n\nIn `net/gossip_validate.go`, `blockValidator` returns `pubsub.ValidationIgnore` (not `ValidationReject`) when a block's `Hash` does not match `core.HashBlock(b)`. Every other invalid-input branch in the same file returns `ValidationReject`. Per gossipsub scoring, an `Ignore`d message is explicitly *not* penalized (`markInvalidMessageDelivery` is never called), while a `Reject`ed message counts toward the quadratic invalid-message penalty (weight −25 in `net/gossip_score.go`). So a peer can flood mesh peers with hash-mismatched blocks indefinitely and never be graylisted or de-meshed.\n\n## Location\n\n- `net/gossip_validate.go:81-84` (`blockValidator`), commit `89a542e` (testnet-0005).\n- Second instance: `marketplaceValidator` default branch, `net/gossip_validate.go:207-208` (unknown marketplace `Type` → `ValidationIgnore`).\n\n```go\nexpected, err := core.HashBlock(b)\nif err != nil || expected != b.Hash {\n\treturn pubsub.ValidationIgnore\n}\n```\n\nCompare with the surrounding branches — bad JSON, nil block, bad hash/account format, bad signature length, bad PoW — which all return `ValidationReject`.\n\n## Impact\n\nAny connected, subscribed peer can send hash-mismatched blocks (up to the 256 KiB `MaxGossipMessageSize`, `net/gossip.go:27`) with no private key or valid signature — only a JSON unmarshal + `HashBlock` canonical marshal + SHA-256 per message on every receiving node — indefinitely, filling the shared 512-deep validate queue (`net/gossip.go:54`) and delaying honest block validation, and can never be graylisted or de-meshed for it. The marketplace unknown-type `Ignore` is the same escape hatch (cheaper per message — unmarshal only — same shared queue).\n\n## Reproduction\n\nIn a copy of the repo, add a test calling `blockValidator` with a `BlockSend` whose 64-hex hash differs from `HashBlock()` in one digit → returns `ValidationIgnore`. Controls: malformed JSON → `ValidationReject`; correct hash with failing PoW at `DefaultDifficulty` → `ValidationReject`. A second test confirms an unknown marketplace `Type` returns `ValidationIgnore`. (`go test ./net/`)\n\n## Suggested fix\n\nReturn `ValidationReject` on hash mismatch (and on unknown marketplace `Type`), matching every other invalid-input branch in the file.\n\n## Severity\n\n**High.** Unauthenticated, repeatable, network-wide validation-delay DoS that defeats the designed peer-scoring defense. No crash and no fund loss, so not Severe/Critical.\n\n## Dedup check\n\nChecked against the bounty board (visible tickets) — no match for `ValidationIgnore` / hash mismatch. Closest: XE-0029 (block validator forwards garbage-signature blocks — different: those have a *correct* hash, are `Accept`ed and *forwarded*; these have a *wrong* hash, are `Ignore`d and escape scoring). XE-8347 (vote flood — votes return `Reject` on bad signature, so senders are penalized). XE-6370 (no block dedup — replay of valid blocks).","patch_refs":[{"id":581,"repo":"xeprotocol/xe","kind":"pr","ref":"556","title":"net: deliver multisig blocks in Gossip.Subscribe and reject invalid gossip messages (Fixes #552, Fixes #551)","url":"https://github.com/xeprotocol/xe/pull/556","note":"","state":"open","author":"Khanhtnq","added_by":"desk","created_at":"2026-11-14T20:42:20.330367+00:00"}],"thread":[{"id":14906,"source":"github","source_ref":"7042419488","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the\nfirst verifiable submission, so this one closes as a duplicate. If you believe it is a different\nbug, file a new report that links https://bounty.xe.network/XE-13393 and says what differs; it is read like any other.","created_at":"2026-11-20T14:44:32+00:00"}]}