Vault creator can’t change feeRecipient after deployment
The vault's fee recipient can only be changed by the owner (VaultController), but VaultController lacks a function to call setFeeRecipient, making the function unusable. As a result, the vault creator cannot update the fee recipient and may lose access to those funds.
Submitted by Ruhum, also found by 0xMirce and 0xRobocop
The vault’s feeRecipient can be updated through the setFeeRecipient() function. Only the owner of the contract (VaultController) can call it. But, the VaultController contract doesn’t implement a function to call setFeeRecipient(). Thus, the function is actually not usable.
Since the vault creator won’t be able to change the fee recipient they might potentially lose access to those funds.
Proof of Concept
setFeeRecipient has the onlyOwner modifier which only allows the AdminProxy to access the function. The AdminProxy is called through the VaultController.
function setFeeRecipient(address _feeRecipient) external onlyOwner {
if (_feeRecipient == address(0)) revert InvalidFeeRecipient();
emit FeeRecipientUpdated(feeRecipient, _feeRecipient);
feeRecipient = _feeRecipient;
}
The VaultController doesn’t provide a function to execute setFeeRecipient(). Just search for setFeeRecipient.selector and you won’t find anything.
Recommended Mitigation Steps
Add a function to interact with setFeeRecipient().
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 VaultController contract was not given a wrapper function to call the vault's setFeeRecipient, so the onlyOwner restriction makes the function unreachable.
Impact
The vault creator cannot change the fee recipient, potentially losing access to those funds.
What the attacker needed
Vault deployed with feeRecipient set; creator is not the owner
The fix
Add a function to VaultController that calls setFeeRecipient on the vault.
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 has a function to change who receives fees, but only the contract's owner is allowed to call it. The owner is another contract that has no way to trigger this function, so the change can never happen. This means the fee recipient is stuck forever, and the creator might not be able to access the fees.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.