Missing setAutoClaiming Function
The AgentVault contract's documentation describes a setAutoClaiming function that lets the vault owner authorise executors and recipients to claim rewards and airdrops automatically, but the function is not implemented in the contract. As a result, owners cannot configure automated claiming and any frontend or system that expects the function will fail when it calls it.
Originally disclosed on Immunefi
- Disclosed after under an hour
#45813 [SC-Insight] Missing `setAutoClaiming` Function
Submitted on May 20th 2025 at 21:27:19 UTC by @Victor_TheOracle for Audit Comp | Flare | FAssets
- Report ID: #45813
- Report Type: Smart Contract
- Report severity: Insight
- Target: https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/implementation/AgentVault.sol
- Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
Description
Brief/Intro
The AgentVault documentation specifies a setAutoClaiming function that allows the vault owner to authorize specific executors and recipients to automatically claim delegation rewards and airdrops. However, this function is entirely absent from the contract implementation.
Vulnerability Details
According to the official documentation, the setAutoClaiming function is designed to let the vault owner define which addresses are allowed to automatically claim both rewards and airdrops on their behalf.
However, in the current implementation of the AgentVault contract, no such function is present. The absence of setAutoClaiming results in the following issues:
- Automated claiming cannot be configured, despite the documentation implying otherwise.
- Any systems or frontends that integrate with the contract expecting this feature will break.
This omission represents a significant deviation from the specified functionality.
Impact Details
The primary consequence of this missing function is loss of automation as vault owners cannot assign trusted claim executors despite this functionality being explicitly documented.
References
- AgentVault Documentation for
setAutoClaiming– https://github.com/flare-foundation/fassets/blob/fc727ee70a6d36a3d8dec81892d76d01bb22e7f1/docs/IAgentVault.md?plain=1#L40-L41 - AgentVault.sol (source): function not implemented - https://github.com/flare-foundation/fassets/blob/main/contracts/assetManager/implementation/AgentVault.sol
Proof of Concept
setAutoClaimingis described as a function callable only by the vault owner to set executors and recipients for auto-claiming.
**setAutoClaiming** - Set executors and recipients that can then automatically claim rewards and airdrop.
NOTE: only the owner of the agent vault may call this method.
- The
AgentVault.solcontract does not definesetAutoClaiminganywhere in its implementation. - Callers attempting to use the function via ABI or frontend integration will get an error that tells them that the function does not exist.
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 implementation was never updated to match the documented interface, so the promised function is missing from the contract.
Impact
Vault owners lose the documented automation and cannot assign trusted claim executors, and integrating frontends or systems may break, though no funds are lost.
What the attacker needed
None
The fix
The contract should implement the documented setAutoClaiming function, restricted to the vault owner, so executors and recipients can be configured as described.
How it was found
- Check the documentation, which describes setAutoClaiming as owner-only and used to set executors and recipients for auto-claiming.
- Search the AgentVault contract implementation and find no definition of setAutoClaiming.
- Call the function through the ABI or a frontend and receive an error that the function does not exist.
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 smart contract is a program that runs on a blockchain, and its published documentation tells users what functions it offers. Here the documentation promises a function for setting up automatic claiming of rewards, but the actual code never includes it. Anyone trying to use that promised feature simply gets an error saying the function does not exist.
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.