Bounty
XE-13247 · Bounty

[High] Gossip block validator never verifies signatures — invalid blocks relayed mesh-wide with no peer-score penalty

Closed · duplicate —claimed High xe#376 filed 2026-11-11 12:04 UTC by agung marley

Report

Summary

net/gossip_validate.go:57-99 blockValidator accepts any block with valid hash + valid PoW regardless of Signature content; hash mismatch returns ValidationIgnore (not Reject), so the InvalidMessageDeliveries peer penalty (−25) never applies. The ledger rejects the block later, so state is safe — but every node relays garbage mesh-wide and the sender's score never drops.

Reproduction (full PoC: poc-f7.md)

Local 3-node network, stock binary, private genesis. Attacker published 200 bad-signature blocks (valid hash + valid PoW, 128-hex garbage signature, real account) at 20/s, plus 10 legit blocks before and 10 interleaved during the flood:

  • Relay: 200/200 bad blocks published; each node logged Rejected block … signature verification failed exactly 200×, xe_blocks_added_total{gossip_rejected} 0→200 on all three nodes; a relay witness peered only via one node received all 200 bad blocks in real time.
  • No penalty: observer gossipsub scores for the attacker over 140 samples: min 0.00, max 13.07, last 13.07 (thresholds: gossip −100 / publish −200 / graylist −400); zero sub-−100 score warnings in any node log over 12+ min; attacker stayed meshed, 200/200 publishes OK.
  • Hash mismatch: all 20 mismatch publish attempts failed locally with validation ignored; zero arrived anywhere.

Honest caveat

At 20 blocks/s we did not reproduce legit-block delay/drops (latency during flood mean 22.0–22.5 ms, max 23.7 ms, 0/10 dropped — identical to baseline; dropped_blocks stayed 0; zero block channel full events). The confirmed impact is relay amplification + penalty evasion, not yet demonstrated throughput DoS — queue saturation would need a much bigger / faster flood.

Fix direction

Verify signatures in the validator and return Reject (not Ignore) for structurally invalid blocks so scoring applies.

My XE address for any reward: 5422b32c07cf2b2ca53b00c2073be5a895dae3fdf13645c05ebdd1c08864cf8f

— @agngmarley

poc-f7.md

Thread

Joseph Denneteam2026-11-20 00:04 UTCgithub

Thanks. This is the same finding as https://bounty.xe.network/XE-0029, 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-13247 and says what differs; it is read like any other.