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.
Originally disclosed on Immunefi
- 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
- Report ID: #47150
- Report Type: Smart Contract
- Report severity: Insight
- Target: https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/facets/MintingFacet.sol
- Impacts:
- Direct theft of any user funds, whether at-rest or in-motion, other than unclaimed yield
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:
- Normal Minting Flow: Minters reserve collateral and pay fees, then must send underlying payments to agent's XRP address to complete minting.
- Deposit Authorization Blocking: When agents enable Deposit Authorization on their XRP accounts, all direct payments are rejected with
tecNO_PERMISSIONerror. - Payment Default Exploitation: As the minters' underlying payments fail due to Deposit Authorization, after the
lastUnderlyingPaymentTimestampexpires, agents can callmintingPaymentDefault()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:
- Deposit Authorization docs (https://xrpl.org/docs/concepts/accounts/depositauth)
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.
// 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):
- Malicious agent creates agent vault and enters available agents list
- Agent enables Deposit Authorization on their XRP underlying address
- Minter calls
reserveCollateral()and pays reservation fee - System emits
CollateralReservedevent with agent's XRP address for payment - Minter attempts to send underlying payment to agent's XRP address
- XRP Ledger rejects payment with
tecNO_PERMISSIONdue to Deposit Authorization - Minter cannot complete
executeMinting()within time window - Agent calls minting payment default and collects reservation fee
- Agent repeats process with multiple minters
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
- A malicious agent creates an agent vault and joins the available agents list.
- The agent enables Deposit Authorization on their XRP underlying address.
- A minter reserves collateral and pays the reservation fee.
- The minter sends the underlying payment, which the XRP Ledger rejects.
- The minter cannot complete minting before the time window expires.
- 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.