Skip to content
Business logic Audit finding Beginner

Mismatch between doc and implementation for confirmationByOthersAfterSeconds minimum on XRP

The XRP deployment configuration and the settings initialiser contract enforce a two-hour minimum for the confirmation delay, while the protocol documentation states a six-hour minimum for XRP. This lets the deployed value sit below the documented protocol minimum, so actual behaviour does not match the specification.

Rhaydden Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

#45949 [SC-Insight] Mismatch between doc and implementation for `confirmationByOthersAfterSeconds` minimum on XRP

Submitted on May 22nd 2025 at 20:36:08 UTC by @Rhaydden for Audit Comp | Flare | FAssets

Description

Issue description

The doc specifies that the minimum value for confirmationByOthersAfter ("confirmationByOthersAfterSeconds") for XRP should be 6 hours (21,600 seconds). But, the songbird network config for f-xrp.json currently sets this value to 2 hours (7,200 seconds), and the code in SettingsInitializer.sol only enforces a minimum of 2 hours.

The parameters for BTC and DOGE are set correctly.

Relevant code/config snippets:

From songbird/f-xrp.json: https://github.com/flare-labs-ltd/fassets//blob/fc727ee70a6d36a3d8dec81892d76d01bb22e7f1/deployment/config/songbird/f-xrp.json#L50

"confirmationByOthersAfterSeconds": 7200,

From contracts/assetManager/library/SettingsInitializer.sol:

https://github.com/flare-labs-ltd/fassets//blob/fc727ee70a6d36a3d8dec81892d76d01bb22e7f1/contracts/assetManager/library/SettingsInitializer.sol#L81

require(_settings.confirmationByOthersAfterSeconds >= 2 hours, "must be at least two hours");

(This line only enforces a 2-hour minimum for all assets.)

Impact

The config and contract allow a value lower than the protocol-mandated minimum causing a mismatch between the actual behaviour and what is actually documented.

Fix

Either update the doc or update the params in the contracts.

Proof of Concept

Proof of Concept

The original report as published on Immunefi, by Rhaydden. 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 minimum-delay check is a single shared constant applied to every asset, so the stricter documented minimum for XRP was never encoded.

Impact

The configuration and contract permit a confirmation delay below the protocol-mandated minimum, creating a mismatch between actual behaviour and the documentation; no direct exploit is demonstrated.

What the attacker needed

Deployment of the XRP asset configuration

The fix

Either the documentation or the contract parameters should be updated so the enforced minimum matches the documented one.

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.

Some settings in a smart contract have a lowest allowed value, checked by a line of code that rejects anything smaller. Here that check allows a shorter waiting period than the project's own documentation promises for one asset, XRP. Nothing is stolen or broken directly; the deployed system simply does not follow its published rules.

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 Rhaydden

View all

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