<!-- XE-13247 · [High] Gossip block validator never verifies signatures — invalid blocks relayed mesh-wide with no peer-score penalty · testnet -->
*Markdown view of <https://bounty.xe.network/XE-13247>. The page is the record; this is the same page for reading.*

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](https://github.com/xeprotocol/xe/issues/376)
filed 2026-11-11 12:04 UTC
by agung marley

Verdict
:   Duplicate

Tier
:   —

Claimed
:   High

Area
:   P2P / sync

Duplicate of
:   [XE-0029](https://bounty.xe.network/XE-0029) accepted

Tracked
:   internally

Updated
:   2026-11-20 00:06 UTC

Told
:   2026-11-20 00:04 UTC

### Patches

None linked.

### History

- [543779](https://bounty.xe.network/log/543779) 2026-11-20 00:05 UTC github.state\_pushed
- [543777](https://bounty.xe.network/log/543777) 2026-11-20 00:05 UTC github.labels
- [543752](https://bounty.xe.network/log/543752) 2026-11-20 00:04 UTC reply.mirrored
- [543121](https://bounty.xe.network/log/543121) 2026-11-20 00:04 UTC proposal.adopted
- [543120](https://bounty.xe.network/log/543120) 2026-11-20 00:04 UTC reply.sent
- [543119](https://bounty.xe.network/log/543119) 2026-11-20 00:04 UTC ticket.status new → closed
- [541312](https://bounty.xe.network/log/541312) 2026-11-20 00:04 UTC proposal.adopted
- [541311](https://bounty.xe.network/log/541311) 2026-11-20 00:04 UTC ticket.facts area
- [541310](https://bounty.xe.network/log/541310) 2026-11-20 00:04 UTC proposal.adopted
- [541309](https://bounty.xe.network/log/541309) 2026-11-20 00:04 UTC ticket.facts
- [541308](https://bounty.xe.network/log/541308) 2026-11-20 00:04 UTC proposal.adopted
- [541307](https://bounty.xe.network/log/541307) 2026-11-20 00:04 UTC ticket.facts

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

### 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](https://github.com/user-attachments/files/34686542/poc-f7.md)

### Thread

**Joseph Denne**team2026-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.
