Skip to content
Business logic Audit finding Intermediate

XRP Deposit Authorization Griefing Attack on Minting Process

An agent can enable XRP Deposit Authorization on their underlying address so that minters' payments are rejected, then wait for the payment window to expire and claim the reservation fee without providing any backing. This lets a malicious agent farm fees from minters who cannot complete minting.

Bluedragon Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

#47150 [SC-Insight] XRP Deposit Authorization Griefing Attack on Minting Process

Submitted on Jun 9th 2025 at 08:37:00 UTC by @Bluedragon for Audit Comp | Flare | FAssets

Description

Summary:

Agents can enable Deposit Authorization on their XRP accounts to block all incoming payments from minters, causing minting payment defaults and allowing agents to collect reservation fees without providing any service.

Vulnerability Details:

The attack exploits the XRP Ledger's Deposit Authorization feature combined with the fAssets minting process:

  1. Normal Minting Flow: Minters reserve collateral and pay fees, then must send underlying payments to agent's XRP address to complete minting.
  2. Deposit Authorization Blocking: When agents enable Deposit Authorization on their XRP accounts, all direct payments are rejected with tecNO_PERMISSION error.
  3. Payment Default Exploitation: As the minters' underlying payments fail due to Deposit Authorization, after the lastUnderlyingPaymentTimestamp expires, agents can call mintingPaymentDefault() to collect the reservation fees without providing any backing or service.

Impact

  • Systematic Minter Exploitation: Minters lose reservation fees for failed mintings they cannot complete
  • Agent Fee Farming: Agents can continuously collect fees without backing any assets
  • System Reliability: Undermines trust in the minting process for XRP fAssets
  • Economic Attack: Low-cost, high-reward attack vector for malicious agents

References:

Recommended Mitigation:

Implement a payment status check in the execute minting process to check that if the payment is failed with error code 2 which is RECEIVER_FAILURE, if thats the case allow the minter to get back the reservation fee.

Solidity
// Add validation in execute minting 
if(
    _payment.data.responseBody.status == 2 // RECEIVER_FAILURE
) {
  uint256 totalFee = crt.reservationFeeNatWei + unclaimedExecutorFee;
  // Refund the reservation fee to the minter  
  traTransfers.transferNAT(crt.executor, unclaimedExecutorFee);
}

Proof of Concept

Proof of Concept (Scenario step by step):

  1. Malicious agent creates agent vault and enters available agents list
  2. Agent enables Deposit Authorization on their XRP underlying address
  3. Minter calls reserveCollateral() and pays reservation fee
  4. System emits CollateralReserved event with agent's XRP address for payment
  5. Minter attempts to send underlying payment to agent's XRP address
  6. XRP Ledger rejects payment with tecNO_PERMISSION due to Deposit Authorization
  7. Minter cannot complete executeMinting() within time window
  8. Agent calls minting payment default and collects reservation fee
  9. Agent repeats process with multiple minters

The original report as published on Immunefi, by Bluedragon. 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 minting flow does not check why an underlying payment failed, so a receiver-side rejection (Deposit Authorization) is treated the same as a minter default and the fee is forfeited.

Impact

Minters lose their reservation fees on mintings they cannot complete, and agents can repeatedly collect fees without backing any assets, undermining trust in XRP fAsset minting.

What the attacker needed

Attacker registers as an agent; attacker controls the agent XRP address; victim mints against that agent

The fix

The minting execution should check for a receiver-failure payment status and, in that case, refund the reservation fee to the minter.

How it was found

  1. A malicious agent creates an agent vault and joins the available agents list.
  2. The agent enables Deposit Authorization on their XRP underlying address.
  3. A minter reserves collateral and pays the reservation fee.
  4. The minter sends the underlying payment, which the XRP Ledger rejects.
  5. The minter cannot complete minting before the time window expires.
  6. The agent calls the payment default function and collects the reservation fee.

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.

When someone mints an asset, they first pay a small reservation fee and then send a payment to the agent's XRP address. The XRP network has a setting that makes an account refuse incoming payments, and if an agent turns it on, the minter's payment always fails. Once the deadline passes, the agent keeps the fee even though nothing was delivered.

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 Bluedragon

View all

11 more disclosed reports, best first.

More from Flare | FAssets

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.