Skip to content
DoS Audit finding Intermediate

Blob sizes remain unchecked leading to chain halt

The full node's blob streaming code reads blob data from the data availability layer without ever checking the size of that data. A malicious user could submit extremely large blobs, which the node would try to process, potentially halting the chain.

okmxuse Follow

Originally disclosed on Immunefi

Critical View original
  • Disclosed after under an hour

#41489 [BC-Critical] Blob sizes remain unchecked leading to chain halt

Submitted on Mar 15th 2025 at 20:47:46 UTC by @okmxuse for Attackathon | Movement Labs

Description

The blob transactions are handled in the following way:

JavaScript
	pub async fn execute(&self) -> Result<(), anyhow::Error> {
		// Get the config

		let mut client = MovementDaLightNodeClient::try_http2(self.light_node_url.as_str())
			.await
			.context("Failed to connect to light node")?;

		let mut blocks_from_da = client
			.stream_read_from_height(StreamReadFromHeightRequest { height: self.from_height })
			.await
			.context("Failed to stream blocks from DA")?;

		info!("streaming blocks from DA");

		while let Some(block_res) = blocks_from_da.next().await {
			let response = block_res.context("Failed to get block")?;
			let (_block_bytes, block_timestamp, block_id, da_height) = match response
				.blob
				.ok_or(anyhow::anyhow!("No blob in response"))?
				.blob_type
				.ok_or(anyhow::anyhow!("No blob type in response"))?
			{
				blob_response::BlobType::SequencedBlobBlock(blob) => {
					tracing::info!("Receive SequencedBlobBlock blob");
					(blob.data, blob.timestamp, blob.blob_id, blob.height)
				}
				blob_response::BlobType::PassedThroughBlob(blob) => {
					tracing::info!("Receive PassedThroughBlob blob");
					(blob.data, blob.timestamp, blob.blob_id, blob.height)
				}
				blob_response::BlobType::Heartbeat(_) => {
					tracing::info!("Receive heartbeat blob");
					continue;
				}
				_ => {
					anyhow::bail!("Invalid blob type in response")
				}
			};
			// pretty print (with labels) the block_id, block_timestamp, and da_height
			tracing::info!(
				"Block ID: {}, Block Timestamp: {:?}, DA Height: {}",
				hex::encode(block_id),
				// unix date string from the block timestamp which is in microseconds
				chrono::DateTime::from_timestamp_micros(block_timestamp as i64)
					.context("Failed to convert timestamp to date")?,
				da_height
			);
		}

		info!("Finished streaming blocks from DA");

		Ok(())
	}
}

They are retrieved and categorized into three categories. a Sequenced blob, a Passed through blob and finally an invalid blob.

The issue however is that the blob.data size remains unchecked and is never checked at all. This is an easy DOS factor for a malicious user by simply providing enermous blobs and therefore causing a chain halt.

Impact

Malicious user can cause chain halt

Recommendation

Introduce a blob.data check to ensure that the blob is a valid size.

Proof of Concept

POC

Since this is a common DOS factor we will showcase this with a POC walkthrough:

  • Bob, a malicious user submits blobs
  • Bob submits these blobs by creating a script and submitting multiple blobs with the blob.data being of an enermous amount
  • The execute function will pick this up and try to execute it, but due to the size of the blob it will eventually cause the chain to halt

The original report as published on Immunefi, by okmxuse. 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 blob handling code accepts blob data of any size because no maximum size validation is performed before processing.

Impact

A malicious user could cause a chain halt, meaning the network may be unable to confirm new transactions.

What the attacker needed

Ability to submit blobs to the DA layer

How it was found

  1. A malicious user writes a script to submit blobs.
  2. The script submits multiple blobs whose data is extremely large.
  3. The node's execute function picks up these blobs and tries to process them.
  4. The oversized blobs eventually cause the chain to halt.

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 node reads blocks of data (blobs) from a storage layer and processes them. This code never checks how big each blob is, so someone could send a huge one and overwhelm the node, stopping the chain from confirming transactions.

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 okmxuse

View all

9 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.