{"id":"XE-0608","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":230,"title":"Regression bundle: 3 tickets closed patched but still broken at HEAD (XE-0061 codec lease_renew, XE-0084 faucet docs, XE-0005 partial gossip recover)","area":"consensus","claimed_tier":"medium","assessed_tier":null,"verdict":null,"duplicate_of":null,"tracked":true,"internal_ref":"","internal_url":null,"status":"triaging","closed_reason":null,"github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-05T06:17:32.374410+00:00","updated_at":"2026-11-11T10:14:48.949744+00:00","source_created_at":null,"told_at":"2026-11-08T20:18:47.316117+00:00","status_changed_at":"2026-11-08T20:18:21.585470+00:00","url":"https://bounty.xe.network/XE-0608","body":"# 🐞 Bug Report (Bug bounty — XE Protocol)\r\n\r\n## Summary\r\n\r\nThree tickets marked `patched` are **still broken at HEAD `02e9641`** (verified by direct code inspection at the pinned commit). Reported as one bundle because the shared root cause is a **fix-verification process gap**: each fix was merged/partial without a regression test that would have caught it.\r\n\r\n### 1. XE-0061 (minor, closed `patched` 2026-10-29) — codec still rejects `lease_renew` on decode\r\n\r\nThe encoder maps `BlockLeaseRenew → typeByteLeaseRenew (0x0E)` (`core/encoding.go`), but the decoder `unmarshalBlock` type-byte switch (`core/encoding.go:363-407`) **has no case for 0x0E** → falls through to `default: \"UnmarshalBlock: unknown type byte 0x%02x\"` (`:405-406`). The tail-decoder's combined `case BlockLease, …, BlockLeaseRenew:` exists but is **dead code** — the type-byte mapping was forgotten. Any `lease_renew` round-trip through the binary codec fails. The fix was half-applied.\r\n\r\n### 2. XE-0084 (minor, closed `patched` 2026-10-29) — faucet documentation stale\r\n\r\n`README.md:74` — \"grants **1,000 XE** per address per rolling 24 hours\"; repeated at `README.md:226`. The faucet now grants 1 XE; docs unchanged at HEAD.\r\n\r\n### 3. XE-0005 (medium, closed) — partial fix: \"gossiped block kills node\" class still reachable\r\n\r\nValidator hardening landed (`net/gossip_validate.go:63-98`) + `recover()` on the msg-RPC path (`net/msg.go:70-74`) — but the **gossip ingestion and block-pull goroutines have no recover** (only 2 recover() exist in the whole repo; `net/gossip.go` has none; `node/node.go:893-906` `pullPhantomBlocks` goroutine → `AddBlock` has none). Open ticket XE-0096 documents an unguarded `pk[:12]` slice in `VerifyMultisig` (`core/multisig.go:94,99,103`) reachable from block verification → a panic primitive inside block processing still exists, so the original crash-the-process class is **narrowed, not closed**.\r\n\r\n## Steps to Reproduce\r\n\r\n- XE-0061: build any `BlockLeaseRenew` block → `core.MarshalBlock` → `core.UnmarshalBlock` → error `UnmarshalBlock: unknown type byte 0x0e`. (Codec round-trip; source-verified at HEAD.)\r\n- XE-0084: read `README.md:74` and `:226` at HEAD.\r\n- XE-0005: send a block that trips the XE-0096 `pk[:12]` slice via the gossip ingestion path (no recover in `net/gossip.go`) → process exits.\r\n\r\n## Impact\r\n\r\n- XE-0061: any lease_renew flow via the binary codec fails — functional break of a core block type.\r\n- XE-0005: remotely triggerable node crash class persists (Medium).\r\n- XE-0084: misleading docs (Minor).\r\n- Meta-impact: `patched` status without a covering regression test — future fixes in these files can silently re-break.\r\n\r\n## Suggested fix\r\n\r\n- XE-0061: add `case typeByteLeaseRenew:` to the `unmarshalBlock` switch (the tail decoder already supports the type) + a codec round-trip test for every block type.\r\n- XE-0084: update README faucet terms.\r\n- XE-0005: wrap gossip-ingestion and block-pull goroutines with recover (parity with `net/msg.go:70-74`) + fix XE-0096's unguarded slice.","patch_refs":[],"thread":[{"id":1106,"source":"desk","source_ref":"reply:656","author":"Joseph Denne","team":true,"body":"Thanks for checking these against the current tree. We have confirmed the points you raise and are reviewing the state of each fix. We will update you here: https://bounty.xe.network/XE-0608","created_at":"2026-11-08T20:17:41.885067+00:00"}]}