When creating a vault the owner sets the depositCap
to any number. The reason for this is that a user should not be allowed to deposit or the vault should not have a number of assets greater than the depositCap
.
The deposit
function in the VaultAssetBranch.sol
is external and called by user to deposit assets in the vaults and get shares in exchange. These vaults have a deposit cap which is the max number of assets that can be deposited in the vault. But in the deposit
function there is no validation for or restriction for the user that means that anyone can deposit any arbitrary amount of assets which can exceed the depositCap
which was set at the time of creating the vault
Due to lack of input validation the vault can be deposited by assets greater than its depositCap
Manual Review
Enforce some input validation like a check for the assets > depositCap
then revert.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.