<!-- XE-13393 · [High] Block gossip validator returns ValidationIgnore for hash-mismatch blocks — sender is never peer-scored, enabling an unpenalized validator flood · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13393>. The page is the record; this is the same page for reading.*

XE-13393 · Bounty

# \[High\] Block gossip validator returns ValidationIgnore for hash-mismatch blocks — sender is never peer-scored, enabling an unpenalized validator flood

Closed · duplicate
—claimed High
[xe#551](https://github.com/xeprotocol/xe/issues/551)
filed 2026-11-14 07:15 UTC
by syhrii

Verdict
:   Duplicate

Tier
:   —

Claimed
:   High

Area
:   P2P / sync

Duplicate of
:   —

Tracked
:   —

Updated
:   2026-11-20 14:45 UTC

Told
:   2026-11-20 14:44 UTC

### Patches

- [xe#556](https://github.com/xeprotocol/xe/pull/556) open by Khanhtnq
  net: deliver multisig blocks in Gossip.Subscribe and reject invalid gossip messages (Fixes #552, Fixes #551)

### History

- [606636](https://bounty.xe.network/log/606636) 2026-11-20 14:45 UTC github.state\_pushed
- [606635](https://bounty.xe.network/log/606635) 2026-11-20 14:45 UTC github.labels
- [606444](https://bounty.xe.network/log/606444) 2026-11-20 14:44 UTC reply.mirrored
- [606388](https://bounty.xe.network/log/606388) 2026-11-20 14:44 UTC proposal.adopted
- [606387](https://bounty.xe.network/log/606387) 2026-11-20 14:44 UTC reply.sent
- [606386](https://bounty.xe.network/log/606386) 2026-11-20 14:44 UTC ticket.status new → closed
- [605850](https://bounty.xe.network/log/605850) 2026-11-20 14:44 UTC proposal.adopted
- [605849](https://bounty.xe.network/log/605849) 2026-11-20 14:44 UTC ticket.facts area
- [605848](https://bounty.xe.network/log/605848) 2026-11-20 14:44 UTC proposal.adopted
- [605847](https://bounty.xe.network/log/605847) 2026-11-20 14:44 UTC ticket.facts
- [605846](https://bounty.xe.network/log/605846) 2026-11-20 14:44 UTC proposal.adopted
- [605845](https://bounty.xe.network/log/605845) 2026-11-20 14:44 UTC ticket.facts

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

### Report

## Summary

In `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.

## Location

- `net/gossip_validate.go:81-84` (`blockValidator`), commit `89a542e` (testnet-0005).
- Second instance: `marketplaceValidator` default branch, `net/gossip_validate.go:207-208` (unknown marketplace `Type` → `ValidationIgnore`).

```
expected, err := core.HashBlock(b)
if err != nil || expected != b.Hash {
	return pubsub.ValidationIgnore
}
```

Compare with the surrounding branches — bad JSON, nil block, bad hash/account format, bad signature length, bad PoW — which all return `ValidationReject`.

## Impact

Any 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).

## Reproduction

In 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/`)

## Suggested fix

Return `ValidationReject` on hash mismatch (and on unknown marketplace `Type`), matching every other invalid-input branch in the file.

## Severity

**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.

## Dedup check

Checked 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).

### Thread

**Joseph Denne**team2026-11-20 14:44 UTCgithub

Thanks. This is the same finding as an earlier report that is not public, which was filed first; the programme pays the
first verifiable submission, so this one closes as a duplicate. If you believe it is a different
bug, file a new report that links https://bounty.xe.network/XE-13393 and says what differs; it is read like any other.
