Bounded channel panic in TokioTaskUpdater causes node crash leading to realistic chain halt
The TokioTaskUpdater executor uses a bounded channel of 1024 slots and calls expect on try_send, so when an attacker sends more ForwardedTx messages than the channel can hold, the executor panics and crashes the node. An unauthenticated attacker could crash any validator and potentially halt the chain by killing all validators in the current epoch.
Submitted by dontonka
bft/monad-updaters/src/lib.rs #L141-L161
The TokioTaskUpdater executor uses a bounded channel with only 1024 slots for command batches. When an attacker sends ForwardedTx messages that exceed this capacity, the executor panics with “executor is lagging” instead of gracefully handling the overflow. An unauthenticated attacker can crash any validator by sending ForwardedTx messages with batches_per_conn × num_connections > 1024 (e.g., 500 batches × 5 connections = 2,500 batches). The vulnerability stems from using .expect() on try_send() rather than implementing proper backpressure or error handling.
#[cfg(feature = "tokio")]
impl<U, E> Executor for TokioTaskUpdater<U, E>
where
U: Updater<E>,
U::Command: Send + 'static,
E: Send + 'static,
{
type Command = U::Command;
fn exec(&mut self, commands: Vec<Self::Command>) {
self.verify_handle_liveness();
self.command_tx
.try_send(commands)
.expect("executor is lagging")
}
fn metrics(&self) -> ExecutorMetricsChain {
ExecutorMetricsChain::from(&self.metrics)
}
}
Impact
- Crash the node: crash any discoverable node in seconds.
- Chain halt: very realistic scenario by simply killing all the validator sets in the current epoch.
Likelihood
- Anyone can trigger this attack (see PoC), no need to be an official node in the chain (validator, full node, etc.), it simply requires connection to the node port, which is required to be open as this is how peers communicate in Monad.
- There is no cost for this attack in terms of money, only very little resources are needed.
Recommended mitigation steps
Implement proper backpressure or error handling such that it doesn’t crash.
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
The code uses expect on try_send for a bounded channel without handling the full-queue error, so overflow causes a panic.
Impact
An unauthenticated attacker could crash any discoverable node in seconds and, by crashing all validators in the current epoch, could realistically halt the chain.
What the attacker needed
Connection to the node port; no authentication needed
The fix
The executor should implement proper backpressure or error handling so that a full channel does not crash the node.
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 node runs a small queue to pass work between parts of the program. The queue has a fixed size, and the code assumes it will never fill up. If someone sends too many messages at once, the queue overflows and the program crashes instead of waiting or dropping messages.
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.