Vault creator can’t change quitPeriod
The vault's quitPeriod can only be changed by the owner, but the VaultController contract lacks a function to call setQuitPeriod, making the function unusable. As a result, every vault is stuck with the default 3-day quitPeriod, limiting configuration.
Submitted by Ruhum
The vault’s quitPeriod can be updated through the setQuitPeriod() function. Only the owner of the contract (AdminProxy through VaultController) can call it. But, the VaultController contract doesn’t implement a function to call setQuitPeriod(). Thus, the function is actually not usable.
This limits the configuration of the vault. Every vault will have to use the standard 3-day quitPeriod.
Proof of Concept
setQuitPeriod() has the onlyOwner modifier which only allows the AdminProxy to access the function. The AdminProxy is called through the VaultController.
function setQuitPeriod(uint256 _quitPeriod) external onlyOwner {
if (_quitPeriod < 1 days || _quitPeriod > 7 days)
revert InvalidQuitPeriod();
quitPeriod = _quitPeriod;
emit QuitPeriodSet(quitPeriod);
}
The VaultController doesn’t provide a function to execute setQuitPeriod(). Just search for setQuitPeriod.selector and you won’t find anything.
Recommended Mitigation Steps
Add a function to interact with setQuitPeriod().
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 setQuitPeriod, so the onlyOwner restriction makes the function unreachable.
Impact
Every vault is forced to use the standard 3-day quitPeriod, preventing customisation of this parameter.
What the attacker needed
None
The fix
Add a function to the VaultController that calls setQuitPeriod 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 vault is a smart contract that holds funds and has settings. One setting, quitPeriod, controls how long users must wait before withdrawing. The only way to change it is through a function that only the owner can call, but the owner's main contract has no way to trigger that function, so the setting can never be changed.
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.