# Chain halt as VerifyVoteExtensionHandler is not guaranteed to run

Seda chain's PrepareProposal injects unvalidated late precommit vote extensions; ProcessProposal then rejects them, letting one validator halt the chain.

- Payout: Audit contest
- Severity: high
- Program: Seda Protocol
- Found by: Boy2000
- Disclosed: 2024-12-20
- Write-up quality: 7/10
- Original: https://github.com/sherlock-audit/2024-12-seda-protocol-judging/issues/30
- Library page: https://bugbountylibrary.com/r/sherlock%3A2024-12-seda-protocol%3AH-1
- Tags: area:web3 domain:web3 impact:dos kind:contest platform:sherlock sev:high tech:go technique:source-review vuln:dos

**Target:** Cosmos SDK ABCI++ PrepareProposal/ProcessProposal handlers
**Root cause:** PrepareProposal marshals req.LocalLastCommit into the block without app-level re-verification of vote extensions, while ProcessProposal strictly validates every commit vote extension and batch signature, so an invalid late vote extension causes ProcessProposal to fail deterministically.
**Steps:**
1. Wait for a height where a batch exists (collectSigs true) and VoteExtensionsEnableHeight passed.
2. As a validator, send a late precommit vote with an invalid vote extension after +2/3 votes so VerifyVoteExtensionHandler is not run on it.
3. The invalid extension lands in LocalLastCommit of the next proposer.
4. PrepareProposal injects LocalLastCommit as tx[0] without app-level validation.
5. ProcessProposal unmarshals tx[0], calls ValidateVoteExtensions and verifyBatchSignatures, which fails on the invalid extension, returning an error and rejecting the proposal.
**How found:** Code review of the ABCI handlers: noticed PrepareProposal only calls baseapp.ValidateVoteExtensions (which checks signatures, not app-level extension validity) before injecting LocalLastCommit, while ProcessProposal additionally runs verifyBatchSignatures on every commit vote extension, creating an asymmetry exploitable by late votes that skip VerifyVoteExtensionHandler.
**Exploitation:** A single malicious or misbehaving validator injects an invalid vote extension at a batch-signing height; the next proposer includes it, ProcessProposal fails repeatedly, and the chain halts.
**Insight:** In ABCI++ chains, compare what PrepareProposal injects versus what ProcessProposal validates; late precommit votes bypass VerifyVoteExtensionHandler, so any extension accepted into LocalLastCommit without app-level re-check becomes a deterministic halt vector.

