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.
- 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
- Report ID: #45949
- Report Type: Smart Contract
- Report severity: Insight
- Target: https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/library/SettingsInitializer.sol
- Impacts:
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:
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
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.