Skip to content
Business logic Audit finding Intermediate

Insufficient validation in da light node allows malicious override of application priority

The DA Light Node does not validate the application_priority field on incoming transactions, and this field is not part of the signed payload. A malicious node can arbitrarily alter the priority of a transaction, leading to unfair ordering, priority inflation, or censorship of other transactions.

Blockian Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

#43324 [BC-High] insufficient validation in da light node allows malicious override of application priority

#43324 [BC-High] Insufficient Validation in DA Light Node Allows Malicious Override of `application_priority`

Submitted on Apr 4th 2025 at 15:57:44 UTC by @Blockian for Attackathon | Movement Labs

Description

Movement Bug Report

Insufficient Validation in DA Light Node Allows Malicious Override of application_priority

Summary

The DA Light Node does not validate the application_priority field on incoming transactions. Because this field is not part of the signed payload, a malicious node can arbitrarily alter the priority of a transaction, allowing for unfair ordering or censorship of other transactions.


Root Cause Analysis

During the batch_write process, the prevalidator validates incoming transactions through the following logic:

RS
	#[tonic::async_trait]
impl PrevalidatorOperations<Transaction, Transaction> for Validator {
	/// Verifies a Transaction as a Valid Transaction
	async fn prevalidate(
		&self,
		transaction: Transaction,
	) -> Result<Prevalidated<Transaction>, Error> {
		let application_priority = transaction.application_priority();
		let sequence_number = transaction.sequence_number();

		let aptos_transaction = AptosTransactionValidator.prevalidate(transaction).await?;
		let aptos_transaction = self
			.whitelist_validator
			.prevalidate(aptos_transaction.into_inner())
			.await?
			.into_inner();

		Ok(Prevalidated(Transaction::new(
			bcs::to_bytes(&aptos_transaction).map_err(|e| {
				Error::Internal(format!("Failed to serialize AptosTransaction: {}", e))
			})?,
			application_priority,
			sequence_number,
		)))
	}
}

However, the application_priority is not part of the signed transaction payload. This means:

  • The priority value is not cryptographically tied to the transaction content.
  • The value can be modified by any party submitting the transaction (e.g., a malicious node).
  • There is no verification step to ensure the priority value matches the calculated original intent.

Impact

The application_priority field plays a role in transaction ordering. Allowing it to be arbitrarily modified introduces several vulnerabilities:

  • Priority Inflation: A malicious actor can artificially boost the priority of their own transactions, gaining unfair access to limited execution bandwidth.
  • Transaction Starvation: Legitimate transactions with genuine lower priorities may be delayed or dropped due to queue saturation.
  • Targeted Censorship: An attacker can reduce the priority of a victim’s transaction to push it behind attacker-controlled transactions.
  • Loss of Fairness and Predictability: The system’s ability to enforce deterministic or economic ordering (e.g., fee-based) is undermined if priority is mutable.

Proposed Fixes

Derive Priority On the Da Light Node
Eliminate the client-provided application_priority entirely and compute it deterministically on the Light Node.

Proof of Concept

Proof of Concept (PoC)

  1. Run the DA Light Node.
  2. Identify a legitimate transaction to target.
  3. Copy the transaction’s data, sequence_number, and id, but modify the application_priority to a higher or lower value.
  4. Send a gRPC request to the Light Node’s write_batch endpoint with the modified transaction.
RS
// Pseudo-code
let manipulated_tx = Transaction {
	data: original_tx.data.clone(),
	application_priority: 9999, // Arbitrarily priority
	sequence_number: original_tx.sequence_number,
	id: original_tx.id,
};

The original report as published on Immunefi, by Blockian. 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 application_priority field is not included in the signed transaction data and is not validated by the light node, so it can be modified by any party.

Impact

A malicious actor could inflate priority to gain unfair execution bandwidth, starve legitimate transactions, or censor specific transactions by lowering their priority.

What the attacker needed

Access to the DA Light Node's gRPC endpoint; ability to submit transactions

The fix

The application_priority should be derived deterministically on the DA Light Node instead of being provided by the client.

How it was found

  1. Run the DA Light Node.
  2. Identify a legitimate transaction to target.
  3. Copy the transaction's data, sequence_number, and id, but modify the application_priority to a higher or lower value.
  4. Send a gRPC request to the Light Node's write_batch endpoint with the modified transaction.

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 checks transactions. Each transaction has a priority number that decides the order it is processed. The problem is that this priority number is not protected by the transaction's digital signature, so anyone can change it without being detected. This lets an attacker jump the queue or push other people's transactions back.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Blockian

View all

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

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.