Skip to content
DoS Audit finding Beginner

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.

HollaDieWaldfee Follow

Originally disclosed on Immunefi

Informational View original
  • 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

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

(1): https://github.com/immunefi-team/attackathon-movement/blob/a2790c6ac17b7cf02a69aea172c2b38d2be8ce00/protocol-units/execution/maptos/opt-executor/src/background/read\\_only.rs#L23

(2): https://github.com/immunefi-team/attackathon-movement/blob/a2790c6ac17b7cf02a69aea172c2b38d2be8ce00/protocol-units/execution/maptos/opt-executor/src/executor/initialization.rs#L208-L209

Proof of Concept

Proof of Concept

  1. A full node is run in read-only mode.
  2. The next request of the mempool_client_receiver is a SubmitTransaction request. This causes the node to panic. Again, this can be verified by taking a look at reference (1).

The original report as published on Immunefi, by HollaDieWaldfee. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

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

  1. Run a full node in read-only mode.
  2. Send a SubmitTransaction request to the node's API.
  3. 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.

More by HollaDieWaldfee

View all

39 more disclosed reports, best first.

More from Movement Labs

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.