Hunt prep
Before you test Lavarage Invitational
What 7 disclosed reports say about Lavarage 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 | 7 | 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.
-
Malicious borrowers will never repay loans with high interest
The liquidation check should include the owed interest in the total debt amount.
Disclosed
-
Borrowers can avoid the payment of an interest share fee by setting themselves as a fee_receipient
The fee_receipient should be restricted, for example by making it a property of the Pool struct set at pool creation.
Disclosed
-
Small loans will never be liquidated, generating bad debt for lenders
A minimum loan amount should be enforced so that each position is large enough to make liquidation worthwhile.
Disclosed
-
Collateral can be claimed back without repaying its corresponding loan due to insufficient instruction validation
The fix should add a check that the position_account in the repay_sol instruction matches the position_account being closed, replacing the existing checks.
Disclosed
-
Innocent borrower could incur losses caused by a malicious lender
The fix should allow the borrower to pass a maximum interest rate parameter, or store the interest rate on the position level, or implement a time delay check on rate updates.
Disclosed
-
A borrower can borrow SOL without backing it by a collateral
The borrow function should validate that the collateral account is associated with the same position being borrowed against.
Disclosed