# Missing Minimum Length Check in verifyBatchSignatures Allows Chain Halting Attack

verifyBatchSignatures in Seda chain only checks max vote extension length; a validator submitting <65 bytes triggers slice out-of-bounds panic, halting the chain.

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

**Target:** ABCI vote extension handler (verifyBatchSignatures) in seda-chain
**Root cause:** verifyBatchSignatures enforces MaxVoteExtensionLength but never checks the 65-byte minimum before slicing voteExtension[:65] for Ecrecover, so a short extension causes an out-of-bounds panic.
**Steps:**
1. Craft a vote extension with fewer than 65 bytes.
2. Submit it as a validator during consensus so VerifyVoteExtensionHandler or ProcessProposalHandler calls verifyBatchSignatures.
3. `voteExtension[:65]` panics on the short slice, crashing the node and halting the chain.
**How found:** Code review of the vote extension length validation in handlers.go: noticed only an upper bound was checked before a fixed 65-byte slice for Ecrecover.
**Exploitation:** A single malicious validator submits a malformed short vote extension; the panic in consensus handling propagates, taking down all validators and halting the network.
**Insight:** When a fixed-offset slice feeds a crypto primitive (Ecrecover pubkey), check both min and max length bounds; consensus-path panics are chain-halting DoS.

