Normally, token transfers to and from the vault should validate amounts and ensure that operations succeed, preventing unexpected failures or stuck funds.
The contract does not check return values of transferFrom or transfer, which can cause deposits or withdrawals to fail silently if the token does not return a boolean or behaves differently.
Likelihood:
Occurs whenever the vault interacts with ERC20 tokens that do not follow the standard properly or fail during transfer.
Occurs whenever transfer or transferFrom return false, which the contract currently ignores.
Impact:
Impact 1: Deposits or withdrawals can fail silently, leaving user balances inconsistent.
Impact 2: Funds may become stuck in the vault or users may lose confidence due to failed operations.
The PoC shows that if an ERC20 token’s transfer or transferFrom fails or returns false, the vault does not detect it. This can cause deposits or withdrawals to fail silently, leaving user balances inconsistent or funds stuck in the vault.
Always check the return value of transfer and transferFrom to ensure token operations succeed, preventing failed deposits or withdrawals and avoiding stuck funds.
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.