Incorrect affordability checks admits invalid transactions allowing txpool and block building DoS
The transaction pool's admission check only verifies that a sender's balance covers the base fee, while block proposal validation requires the full EIP-1559 gas bid including priority fee. An attacker can flood the pool with high-tip transactions that pass admission but can never be included, causing block builders to produce empty blocks and preventing legitimate transactions from being admitted.
Submitted by oct0pwn, also found by 0xAsen and lian886
bft/monad-eth-txpool/src/pool/mod.rs#L184-L197bft/monad-eth-block-policy/src/lib.rs#L77-L84bft/monad-eth-block-policy/src/lib.rs#L541-L556
Transaction’s priority fee is ignored in txpool admission and only the base-fee is used to check affordability. However, proposal-time validation uses the full EIP-1559 gas bid. So an attacker can stuff the pool with transactions that pass the insert-time gate but are impossible to include.
During proposal, these fail try_add_transaction(...); they remain in the txpool and will be selected again on subsequent proposals. The pool can be filled with similar high-tip transactions causing empty blocks due to no other transactions being admitted into it, causing transaction inclusion to stop completely once transactions are forwarded or submitted to all 200 leaders.
Important! This is a separate issue and root cause from my other txpool stuffing issue: this one is due to gas_bid being checked incorrectly, the other is replacement-checks + nonce-gaps + eviction/promotion rules.
Impact
When all 200 leaders are affected (either due to forwarding or direct submissions):
- Block building starvation: proposals contain no txs because tracked is stuffed by high-tip transactions from senders with insufficient balances.
- Txpool admission DoS: attacker transactions fill up both pools and can never be included (insufficient balance) which prevents admission of other transactions due to limited capacity.
Root Cause
- Insert-time affordability check only uses base fee for balance check:
balance ≥ base_fee × gas_limit. - Proposal-time validation uses full EIP-1559 bid including max priority fee.
- Invalid transactions are returned to the tracked pool instead of being evicted to pending.
- No affordability-based pruning post-insert; eviction is time-based only, and easily bumped by replacement.
Affected Code
-
Insert-time affordability (base_fee-only gate):
- Balance vs base fee × gas limit in
insert_txs(...): - https://github.com/code-423n4/2025-09-monad/blob/main/bft/monad-eth-txpool/src/pool/mod.rs#L184-L197
- Balance vs base fee × gas limit in
-
Proposal-time affordability (full gas bid):
- Gas bid computation
compute_txn_max_gas_cost(...): - https://github.com/code-423n4/2025-09-monad/blob/main/bft/monad-eth-block-policy/src/lib.rs#L77-L84
EthBlockPolicyBlockValidator::try_add_transaction(...)enforces affordability at bid and reserve:- TFM-disabled path (maxfee × gaslimit): https://github.com/code-423n4/2025-09-monad/blob/main/bft/monad-eth-block-policy/src/lib.rs#L541-L556
- TFM-enabled emptying path (checks bid, value, reserve): https://github.com/code-423n4/2025-09-monad/blob/main/bft/monad-eth-block-policy/src/lib.rs#L574-L599
- Gas bid computation
-
Sequencer sampling and skip-on-failure (no backfill):
- Main proposal loop and selection:
- loop and pop: https://github.com/code-423n4/2025-09-monad/blob/main/bft/monad-eth-txpool/src/pool/tracked/sequencer.rs#L175-L185
- add-to-proposal gate; returns false on validator error: https://github.com/code-423n4/2025-09-monad/blob/main/bft/monad-eth-txpool/src/pool/tracked/sequencer.rs#L287-L296
-
Forwarding gate ignores bid (base_fee-only):
ValidEthTransaction::get_if_forwardable(...)checksmax_fee ≥ base_fee:- https://github.com/code-423n4/2025-09-monad/blob/main/bft/monad-eth-txpool/src/pool/transaction.rs#L260-L268
Preconditions
While no fees are paid (transactions aren’t included), the attacker needs to fund addresses:
- They need one address per
MAX_ADDRESSESfor Tracking pool. - So ~16k addresses with ~0.0021 MON each (21k min gas @ 100 gwei = 0.0021).
- Total~=34 MON. At 100B total supply and 20B valuation, this is roughly $7 in pre-funding.
Attack path
- Submit one high-tip EIP-1559 tx for each funded address, for each leader, with
gas_bid = base_fee + high-tip. Transactions will never be included, this costs no money. insert_txs(...)admits them (base-fee-only check).- Sequencer samples up to
tx_limitaddresses. try_add_transaction(...)rejects many on gas-bid affordability; those sampled addresses are skipped for this proposal, remain in the pool, and will be selected again.- Blocks are constructed empty, validators lose fees.
Recommended mitigation steps
- Tighten insert-time gate: use full gas-bid affordability (
compute_txn_max_gas_cost) for admission. - Evict invalid transactions to pending when they fail static checks.
- Gate forwarding on affordability at current gas bid.
View detailed Proof of Concept
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
Likely the insert-time affordability check uses only the base fee, while proposal-time validation uses the full gas bid including priority fee, and invalid transactions are not evicted.
Impact
If all 200 leaders are affected, block building can be starved of transactions and the txpool admission can be blocked, preventing legitimate transactions from being included.
What the attacker needed
~16k funded addresses with ~0.0021 MON each; Total pre-funding of about 34 MON; Transactions forwarded or submitted to all 200 leaders
The fix
The insert-time gate should use the full gas-bid affordability check, invalid transactions should be evicted to pending, and forwarding should be gated on affordability at the current gas bid.
How it was found
- Fund many addresses with just enough to cover the base fee times gas limit.
- Submit one high-tip EIP-1559 transaction per funded address to each leader.
- The transactions are admitted because the insert check only uses the base fee.
- The sequencer samples addresses and tries to add transactions to a block.
- Proposal-time validation rejects many due to insufficient balance for the full gas bid.
- Rejected transactions remain in the pool and are selected again, causing empty blocks.
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.
When you send a transaction on a blockchain, you offer a fee to have it included in a block. The system checks if you have enough money to pay that fee, but it does this check in two different places using different rules. The first check only looks at the minimum fee, while the second check looks at the total fee you offered. An attacker can exploit this mismatch by sending many transactions that pass the first check but fail the second, filling up the waiting area so real transactions cannot get in.
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.