[High] Block gossip validator returns ValidationIgnore for hash-mismatch blocks — sender is never peer-scored, enabling an unpenalized validator flood
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 Ignored message is explicitly not penalized (markInvalidMessageDelivery is never called), while a Rejected 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), commit89a542e(testnet-0005).- Second instance:
marketplaceValidatordefault branch,net/gossip_validate.go:207-208(unknown marketplaceType→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 Accepted and forwarded; these have a wrong hash, are Ignored 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
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.