Hunt prep
Before you test Duality Focus contest
What 5 disclosed reports say about Duality Focus contest: 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 |
|---|---|---|---|---|---|
| Access control lesson | 3 | 0 | – | – | $0 |
| Business logic lesson | 2 | 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.
-
Undercollateralized loans possible
The function should be fixed by adding a check that each collateral factor is at most 100% before storing it.
Disclosed
-
Dysfunctional CToken._acceptAdmin due to lack of function to assign pendingAdmin
A proposePendingAdmin function should be added so the current admin can set a successor, enabling admin transitions.
Disclosed
-
Comptroller._setUniV3LpVault will always cause in-use uniswapV3 positions to become stuck in UniV3LpVault
The option to change Comptroller.uniV3LpVault should be removed, or all NFTs should be forcefully evicted before any change.
Disclosed
-
Arbitrary contract call within UniV3LpVault._swap with controllable swapPath
The fix is to validate the entire swap path against a whitelist of allowed tokens.
Disclosed
-
Not calling approve(0) before setting a new approval causes the call to revert when used with Tether (USDT)
The code should set the approval to zero before setting a new approval, or use OpenZeppelin's SafeERC20 safeTransfer().
Disclosed