Hunt prep
Before you test BakerFi Invitational
What 12 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 | 8 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| DoS 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.
-
Vault is vulnerable to first depositor inflation attack
The issue was fixed by the BakerFi team, as indicated in a pull request.
Disclosed
-
Vault can be DoS
The share calculation should also check if total supply is zero and handle that case by returning the elastic amount as base.
Disclosed
-
Min and maxAnswer never checked for oracle price feed
The issue was fixed by adding a check that the oracle answer is within the aggregator's minimum and maximum price bounds.
Disclosed
-
BalancerFlashLender#receiveFlashLoan does not validate the originalCallData
The issue was fixed by recording a hash of the parameters in flashLoan and verifying that hash in receiveFlashLoan.
Disclosed
-
Rounding-down of flashFee can result in calls to flash loan to revert
The fee calculation was changed to round up in favour of the protocol, and the project confirmed a fix was merged.
Disclosed
-
deposit() afterDeposit calculation formula is incorrect
The formula was corrected to divide by the token-per-ETH rate, and the project confirmed it was fixed in a pull request.
Disclosed
-
StrategyLeverage.harvest doesn’t account flashloan fee
The fix was to make _adjustDebt return the fee and use it to decrease collateral.
Disclosed
-
All supplied WETH to Aave as a deposit by a Strategy will be irrecoverable
The strategy should use the excess WETH to repay more debt instead of supplying it to Aave; the issue was fixed in a pull request.
Disclosed
-
Multiple swap lack slippage protection
The swap function should set the minimum output amount to the caller-provided value, and callers should calculate an accurate slippage allowance.
Disclosed
-
ETHOracle.getLatestPrice needs to convert to 18 decimals
The issue was fixed by converting the price to 18 decimals.
Disclosed