core: VerifyBlock never verifies signatures for non-open or multisig blocks (latent — current callers re-check via verifyBlockCredential)
Report
Summary
The 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.
Claimed severity: Medium. Suggested award: 2500 XE. Area: Node / API (core crypto).
Validity 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.
Code
xe/core/crypto.go:145-166
func VerifyBlock(b *Block) error {
// hash check; ValidatePubKeyDeclaration
if len(b.Signatures) > 0 { return nil }
if b.Previous != "0" { return nil }
return VerifyBlockSignatureWith(b, b.PubKey)
}
Reproduction (code sketch, not executed, no Go toolchain)
Build 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.
Fix
Delete 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.
Pre-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).
Payout address: xe:a8d062ed9cbe9e67b44e2552729fe64fc40024043fdcec8c0daa73fe91314ede Reporter: George Agbe, GitHub georgeonweb3, georgeterlumun3@gmail.com
Thread
Thanks for the report. We read it against the code and could not confirm a bug in what it describes.
This report is closed as invalid. If we have missed something, file a new report that links https://bounty.xe.network/XE-11477 and says what; it is read like any other.