{"id":"XE-13247","kind":"bounty","visibility":"public","source":"github","source_repo":"xeprotocol/xe","source_ref":"376","source_url":"https://github.com/xeprotocol/xe/issues/376","reporter_id":1343,"title":"[High] Gossip block validator never verifies signatures — invalid blocks relayed mesh-wide with no peer-score penalty","area":"p2p-sync","claimed_tier":"high","assessed_tier":null,"verdict":"duplicate","duplicate_of":"XE-0029","tracked":true,"internal_ref":"#1058","internal_url":"https://github.com/xeprotocol/core/issues/1058","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:03.403870+00:00","updated_at":"2026-11-20T00:06:55.578530+00:00","source_created_at":"2026-11-11T12:04:36+00:00","told_at":"2026-11-20T00:04:54+00:00","status_changed_at":"2026-11-20T00:04:30.536330+00:00","url":"https://bounty.xe.network/XE-13247","body":"## Summary\n\n`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.\n\n## Reproduction (full PoC: `poc-f7.md`)\n\nLocal 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:\n\n- **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.\n- **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.\n- **Hash mismatch:** all 20 mismatch publish attempts failed locally with `validation ignored`; zero arrived anywhere.\n\n## Honest caveat\n\nAt 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.\n\n## Fix direction\n\nVerify signatures in the validator and return `Reject` (not `Ignore`) for structurally invalid blocks so scoring applies.\n\nMy XE address for any reward: 5422b32c07cf2b2ca53b00c2073be5a895dae3fdf13645c05ebdd1c08864cf8f\n\n— @agngmarley\n\n[poc-f7.md](https://github.com/user-attachments/files/34686542/poc-f7.md)","patch_refs":[],"thread":[{"id":12682,"source":"github","source_ref":"7025799251","author":"Joseph Denne","team":true,"body":"Thanks. This is the same finding as https://bounty.xe.network/XE-0029, 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-13247 and says what differs; it is read like any other.","created_at":"2026-11-20T00:04:54+00:00"}]}