Full nodes panic in read-only mode whenever a transaction is sent
A full node running in read-only mode panics and shuts down when it receives a SubmitTransaction request. An attacker can send such a request to the node's API to cause a denial of service.
Originally disclosed on Immunefi
- Disclosed after under an hour
#41980 [BC-Insight] Full nodes panic in read-only mode whenever a transaction is sent
Submitted on Mar 19th 2025 at 18:50:44 UTC by @HollaDieWaldfee for Attackathon | Movement Labs
- Report ID: #41980
- Report Type: Blockchain/DLT
- Report severity: Insight
- Target: https://github.com/immunefi-team/attackathon-movement/tree/main/protocol-units/execution/maptos/opt-executor
- Impacts:
- RPC API crash affecting programs with greater than or equal to 25% of the market capitalization on top of the respective layer
Description
Brief/Intro
When a full node is run in read-only mode and a SubmitTransaction request is sent to the full node, the full node will panic and shut down.
Vulnerability Details
To understand how this happens, we need to take a look at the implementation inside of read_only.rs.
If the next request of the mempool_client_receiver is a SubmitTransaction request, the node panics. As a result, the node is shut down (reference (1)).
A node is run in read-only mode whenever the maptos_config.chain.maptos_read_only flag is set to true. This can be seen in reference (2).
Impact Details
An attacker can send a SubmitTransaction request to the full node API to shut down the node.
The solution is to return an error upon invalid API calls but not to shut down the node.
References
Proof of Concept
Proof of Concept
- A full node is run in read-only mode.
- The next request of the
mempool_client_receiveris a SubmitTransaction request. This causes the node to panic. Again, this can be verified by taking a look at reference (1).
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 read-only request handler calls a panic (or unwrap) when it receives a SubmitTransaction request instead of returning an error.
Impact
An attacker could shut down a full node by sending a SubmitTransaction request to its API.
What the attacker needed
Node runs in read-only mode; attacker can reach the node API
The fix
The node should return an error for invalid API calls instead of shutting down.
How it was found
- Run a full node in read-only mode.
- Send a SubmitTransaction request to the node's API.
- The node panics and shuts down.
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 full node is a computer that keeps a complete copy of a blockchain and answers requests from other computers. In read-only mode it is only supposed to read data, not accept new transactions. The bug is that when someone sends a transaction anyway, the node crashes instead of politely refusing it, so an attacker can take the node offline.
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.