Dos vulnerability in da light node via unbounded height parameter
The DA Light Node's gRPC endpoint for streaming blobs from a given height lacks validation on the height parameter. An attacker can set height to zero, causing the node to stream all blobs from genesis, which can overwhelm the node and lead to a denial of service.
- Disclosed after under an hour
#43177 [BC-Critical] dos vulnerability in da light node via unbounded height parameter
#43177 [BC-Critical] DoS Vulnerability in DA Light Node via Unbounded Height Parameter
Submitted on Apr 3rd 2025 at 09:41:01 UTC by @Blockian for Attackathon | Movement Labs
- Report ID: #43177
- Report Type: Blockchain/DLT
- Report severity: Critical
- Target: https://github.com/immunefi-team/attackathon-movement/tree/main/protocol-units/da/movement/protocol/light-node
- Impacts:
- Network not being able to confirm new transactions (total network shutdown)
Description
Movement Bug Report
DoS Vulnerability in DA Light Node via Unbounded Height Parameter
Summary
The stream_read_from_height gRPC endpoint in the DA Light Node lacks proper validation on the height parameter. An attacker can exploit this by setting height = 0, effectively requesting all blobs from genesis. As the network grows over time, this results in an increasingly large data request, which can overwhelm the node, leading to a denial of service (DoS) scenario.
Root Cause Analysis
The stream_read_from_height endpoint accepts a user-controlled height parameter and internally calls the stream_da_blobs_from_height function:
fn stream_da_blobs_from_height(
&self,
start_height: u64,
) -> Pin<Box<dyn Future<Output = Result<DaBlobStream<C>, DaError>> + Send + '_>> {
let certificate_stream = self.stream_certificates().await?;
// ... (omitted non-relevant code)
let mut last_height = start_height;
let mut certificate_stream = certificate_stream;
while let Some(certificate) = certificate_stream.next().await {
match certificate {
Ok(Certificate::Height(height)) if height > last_height => {
let blob_stream = self
.stream_da_blobs_between_heights(last_height, height)
.await?;
tokio::pin!(blob_stream);
while let Some(blob) = blob_stream.next().await {
yield blob?;
}
// ... (omitted non-relevant code)
}
Here, the function stream_da_blobs_from_height uses the user-supplied start_height to stream blobs from the earliest specified height up to the latest known height (retrieved from stream_certificates). Without validation, this can lead to excessive and unbounded data retrieval.
Impact
If an attacker sets start_height = 0 and the latest height is large, the node will:
- Enter a long-running loop while attempting to stream all blobs from genesis.
- Suffer from performance degradation or potentially become unresponsive.
- Compromise the availability and liveness of the network by tying up resources.
Proposed Fixes
- Introduce a maximum allowed range between
start_heightand the latest height when callingstream_da_blobs_between_heights. - Implement a failsafe to break out of the loop if the stream exceeds a predefined safe limit.
Proof of Concept
Proof of Concept (PoC)
- Start the DA Light Node.
- Set up a fake DA source populated with a large number of blobs across a high range of heights.
- Send a gRPC request to the Light Node’s
stream_read_from_heightendpoint withheight = 0.
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 endpoint accepts a user-controlled start height without validating it against the latest height or enforcing a maximum range, so a request for height zero triggers an unbounded stream of all blobs from genesis.
Impact
The node could enter a long-running loop, suffer performance degradation or become unresponsive, compromising network availability and liveness.
What the attacker needed
Access to the DA Light Node's gRPC endpoint; Ability to send a crafted gRPC request
The fix
The endpoint should enforce a maximum allowed range between the start height and the latest height, and include a failsafe to break out of the loop if the stream exceeds a predefined safe limit.
How it was found
- Start the DA Light Node.
- Set up a fake DA source populated with a large number of blobs across a high range of heights.
- Send a gRPC request to the Light Node's stream_read_from_height endpoint with height set to zero.
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 light node is a lightweight program that helps a blockchain network by fetching and checking data without storing everything. This report found that one of its functions accepts a number from the user that says where to start reading data, and it never checks if that number is sensible. By asking it to start from the very beginning of the blockchain, an attacker can make the node do a huge amount of work and possibly crash it.
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.