Malicious proposer can submit a request with large invalid transactions because of no mempool to bloat the block store
The SEDA Chain configured its proposal handlers with a no-op mempool, so transactions in proposed blocks were not validated. A malicious proposer could fill blocks with invalid transactions up to the maximum block size, causing permanent storage bloat and resource consumption.
Boy2000 Follow with bronze_pickaxe and g
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2024-12-seda-protocol-judging/issues/241
Found by
Boy2000, bronze_pickaxe, g
Summary
Context:
- Raw transaction bytes of every transaction included in a proposed block will be stored by CometBFT in its Blockstore
- There is no BlockStore pruning done by SEDA Chain
The SEDA Chain's proposal handlers are configured with a no-op mempool. This default ProcessProposal handler is called after the vote extensions have been verified. Since the handler is configured with a no-op mempool, no additional processing is done and the transactions are accepted with verification.
Given the above, a malicious proposer can abuse the lack of transaction validation and fill every block they propose with invalid transactions up to the MaxBlockSize (a consensus parameter set in CometBFT).
Root Cause
In app.go:1012, the default proposal handlers are configured to use the NoOpMempool. However, it is not advisable to use that in production because
of the lack of transaction verification.
defaultProposalHandler := baseapp.NewDefaultProposalHandler(mempool.NoOpMempool{}, bApp)
Internal Pre-conditions
None
External Pre-conditions
None
Attack Path
- A proposer proposes a block with a valid first transaction and the rest of the block filled with invalid transactions up to the MaxBlockSize.
- This block with mostly invalid transactions will be accepted by every validator even if all the other transactions fail. The raw transaction bytes of all the transactions will be recorded in the BlockStore.
Impact
Permanent storage of invalid transactions that would bloat the chain unnecessarily and consume more resources during:
- Block propagation (network bandwidth)
- Block processing (CPU/memory)
- Block storage (disk space)
- Future node synchronization
PoC
None
Mitigation
Consider replacing NoOpMempool with a valid mempool when configuring the proposal handlers.
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/sedaprotocol/seda-chain/pull/520
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The proposal handlers were configured with a no-op mempool, which skips transaction validation before accepting a block.
Impact
Invalid transactions are stored permanently, bloating the chain and consuming more resources for block propagation, processing, storage, and future node synchronisation.
What the attacker needed
Attacker is a block proposer
The fix
The issue was fixed by replacing the no-op mempool with a valid mempool when configuring the proposal handlers.
How it was found
- A proposer proposes a block with a valid first transaction and the rest filled with invalid transactions up to the maximum block size.
- Validators accept the block even though most transactions fail, and the raw bytes are stored in the block store.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A blockchain block is like a page in a public ledger. Normally, before a page is accepted, each entry (transaction) is checked to make sure it is valid. Here, the checking step was turned off, so someone who gets to propose a page could fill it with nonsense entries. Those nonsense entries still get saved forever, wasting space and slowing things down.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.