Hunt prep
Before you test Cap
What 10 disclosed reports say about Cap: 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 |
| 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.
-
Cannot repay or liquidate on paused asset
The interest realisation should only call the Vault's borrow and reward distribution when the realised interest is greater than zero, which was shown to make repayment on a paused asset possible.
Disclosed
-
Utilization rate multiplier will not shift if oracle is consulted frequently
The issue was fixed by changing the order of operations to multiply before dividing, avoiding rounding down to zero.
Disclosed
-
`ViewLogic::maxLiquidatable()` doesn't take the bonus into account, making the agent liquidatable again
The bonus should be included in the debt-to-repay calculation so the resulting health equals the target.
Disclosed
-
Attacker/partial liquidator can extend Liquidation action by resetting $.liquidationStart[_agent] to 0
The liquidation should be closed only after the delegation amount has been slashed, so the health factor reflects the true position health.
Disclosed
-
Lender DoS if all asset is borrowed or realized
The protocol team fixed this issue by adding a check to only borrow and distribute rewards when realizedInterest is greater than zero.
Disclosed
-
VaultAdapter::multiplier not initialized can lead first borrows to have `utilizationRate` = 0
The multiplier should be initialised to its neutral value rather than left at zero.
Disclosed
-
Restaker rewards on zero coverage agent will be stolen by subsequent restaker interest realization
The interest should not be sent to the Delegation contract when coverage is zero; it should go to the FeeAuction contract for scUSD holders, or the realisation amount should be zero in that case.
Disclosed
-
Missing slippage protection in liquidation allows unexpected collateral loss
Add a minimum collateral received parameter to the liquidate function to act as a guard.
Disclosed