Hunt prep
Before you test BakerFi Invitational
What 23 disclosed reports say about BakerFi Invitational: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 11 | 0 | – | – | $0 |
| DoS lesson | 5 | 0 | – | – | $0 |
| Access control lesson | 4 | 0 | – | – | $0 |
| Race condition lesson | 1 | 0 | – | – | $0 |
| Smart contracts lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
There are multiple issues with the decimal conversions between the vault and the strategy
The recommendation is to align the vault's decimals with the underlying token's decimals instead of using 18 decimals, and the project mitigated the issue via a pull request.
Disclosed
-
Users may encounter losses on assets deposited through StrategySupplyERC4626
The strategy's deploy and undeploy functions should return the asset amount, and the balance function should convert shares to assets; the project mitigated this via a pull request.
Disclosed
-
Anyone can call StrategySupplyBase.harvest , allowing users to avoid paying performance fees on interest
The harvest function should be restricted to the owner by adding an onlyOwner modifier.
Disclosed
-
_deployedAmount not updated on StrategySupplyBase.undeploy , preventing performance fees from being collected
The undeploy function should subtract the withdrawn amount from _deployedAmount.
Disclosed
-
The implementation of pullTokensWithPermit poses a risk, allowing malicious actors to steal tokens
The router should not integrate permit in this way; the report states the current router is not suitable for integrating permit to handle token input, and the project mitigated it via a pull request.
Disclosed
-
StrategySupplyBase.undeploy does not return the amount of assets actually undeployed, which can cause a withdrawal to fail
The undeploy function should return the actual withdrawn amount (withdrawalValue) and update the balance accordingly.
Disclosed
-
VaultRouter cannot be used for deposits when it reaches the maximum deposit limit
The deposit limit should be enforced at the router level, giving the router an unlimited deposit limit, or the vault should track deposits per actual user rather than per caller.
Disclosed
-
Malicious actors can exploit user-approved allowances on VaultRouter to drain their ERC20 tokens
The PULL_TOKEN_FROM and PUSH_TOKEN_FROM commands should only be executable when the caller (msg.sender) is the same as the 'from' address.
Disclosed
-
The Vault Manager is unable to delete the last strategy from MultiStrategyVault
The strategy should be removed from the arrays before calling _allocateAssets, or a zero-check should be added to prevent division by zero.
Disclosed
-
Cannot withdraw tokens from all strategies in MultiStrategyVault when one third party is paused
The vault should allow excluding a paused strategy from withdrawals, for example by adding a mechanism to skip or temporarily remove it without requiring a withdrawal request.
Disclosed
-
The calculation of assetsMax is incorrect.
The calculation of assetsMax should use expectedSupplyAssets to include accrued interest and fees, and the project mitigated this via a pull request.
Disclosed
-
The withdrawal of Multi strategies vault could be DoSed while asset deposits remain unaffected
The withdrawal loop should skip strategies when the calculated share is zero.
Disclosed
-
Non-whitelisted recipient can receive shares
The receiver of vault shares should be checked against the whitelist.
Disclosed
-
VaultBase is not ERC4626 compliant
The vault should be modified to comply with the ERC4626 specification, including overriding view functions in MultiStrategyVault to simulate multi-strategy deposits and withdrawals with rounding losses.
Disclosed
-
Malicious actors can exploit user-approved allowances on VaultRouter to drain their ERC4626 tokens
The redeem and withdraw handlers should set the owner to msg.sender instead of reading it from calldata, ensuring only the caller's own shares are handled.
Disclosed