{"id":"XE-11477","kind":"bounty","visibility":"public","source":"web","source_repo":"","source_ref":"","source_url":"","reporter_id":2253,"title":"core: VerifyBlock never verifies signatures for non-open or multisig blocks (latent — current callers re-check via verifyBlockCredential)","area":"consensus","claimed_tier":"medium","assessed_tier":null,"verdict":"invalid","duplicate_of":null,"tracked":false,"internal_ref":"","internal_url":"","status":"closed","closed_reason":"invalid","github_state":"","disclosed_at":null,"award_xe":null,"award_approved":false,"paid_ref":"","created_at":"2026-11-13T04:04:11.448193+00:00","updated_at":"2026-11-22T04:53:30.805997+00:00","source_created_at":null,"told_at":"2026-11-20T13:20:11.187965+00:00","status_changed_at":"2026-11-20T13:03:22.245372+00:00","url":"https://bounty.xe.network/XE-11477","body":"Summary\r\n\r\nThe only signature check in VerifyBlock is its final line, reached solely for open blocks (Previous == \"0\", no multisig signatures). A non-open block with a garbage/forged Signature passes (hash self-consistency is the only check, and the attacker computes the hash themselves), as does any block with len(Signatures) > 0, regardless of whether those signatures are valid, from keyset members, or meet threshold.\r\n\r\nClaimed severity: Medium. Suggested award: 2500 XE. Area: Node / API (core crypto).\r\n\r\nValidity warning — stated honestly: main ingestion is safe today. Ledger.addBlock (core/ledger.go:755 -> :801) calls verifyBlockCredential (core/ledger.go:1416-1465), which does the real VerifyBlockSignatureWith / VerifyMultisig / VerifyMultisigAny check. SwapBlock uses VerifyBlock as first gate, but swapBlockLocked ends with dispatchValidateAndAdd which calls verifyBlockCredential first. So this is defence-in-depth: VerifyBlock is the exported verifier any future/external caller will trust, and it silently accepts forged blocks. One refactor away from Critical. Claimed Medium as latent, not a live forgery.\r\n\r\nCode\r\n\r\n```\r\nxe/core/crypto.go:145-166\r\nfunc VerifyBlock(b *Block) error {\r\n    // hash check; ValidatePubKeyDeclaration\r\n    if len(b.Signatures) > 0 { return nil }\r\n    if b.Previous != \"0\" { return nil }\r\n    return VerifyBlockSignatureWith(b, b.PubKey)\r\n}\r\n```\r\n\r\nReproduction (code sketch, not executed, no Go toolchain)\r\n\r\nBuild a BlockSend with Previous \"abc123\", SignBlock it, replace Signature with 128 hex chars of garbage; VerifyBlock returns nil. Same for a multisig block with one garbage signature.\r\n\r\nFix\r\n\r\nDelete the two early `return nil` branches; always verify — single-sig via the declared key, multisig via threshold — or document VerifyBlock as hash-only and that it must never be used as a signature gate.\r\n\r\nPre-filing check: searched the desk for \"VerifyBlock\" before filing. No live ticket covers this finding exactly (XE-0029 is the gossip validator forwarding garbage signatures; XE-0995 is verifyBlockCredential using the unfinalized frontier keyset; XE-0096/XE-9384 are VerifyMultisig panics).\r\n\r\nPayout address: xe:a8d062ed9cbe9e67b44e2552729fe64fc40024043fdcec8c0daa73fe91314ede\r\nReporter: George Agbe, GitHub georgeonweb3, georgeterlumun3@gmail.com","patch_refs":[],"thread":[{"id":14746,"source":"desk","source_ref":"reply:12660","author":"XE desk","team":true,"body":"Thanks for the report. We read it against the code and could not confirm a bug in what it describes.\n\nThis report is closed as invalid. If we have missed something, file a new report that links\nhttps://bounty.xe.network/XE-11477 and says what; it is read like any other.","created_at":"2026-11-20T13:20:11.186789+00:00"}]}