Skip to content

Code4rena

Lavarage Invitational

Every publicly disclosed report for Lavarage Invitational and what kind of bugs they were.

disclosed reports
7
most reported class
Business logic
bug classes found
1
first disclosure
2024
Find Lavarage Invitational on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Lavarage Invitational chose to make public.

Business logic

Malicious borrowers will never repay loans with high interest

The liquidation check only compares the original borrowed amount to the collateral value and ignores accrued interest, so a borrower whose interest has grown large can never be liquidated as long as the original loan-to-value ratio stays under 90%. This lets borrowers avoid repaying interest indefinitely, causing bad debt for lenders.

Lavarage Invitational

High
Business logic

Small loans will never be liquidated, generating bad debt for lenders

The protocol has no minimum loan size, so a borrower can open many tiny loans in one transaction. When the loan-to-value ratio exceeds 90%, liquidating each small loan costs more in transaction fees than it recovers, so lenders are left with bad debt.

Lavarage Invitational

Medium
Business logic

Collateral can be claimed back without repaying its corresponding loan due to insufficient instruction validation

The borrow_collateral function did not verify that the position account passed to the repay_sol instruction matched the position being closed, allowing a user to repay a different (or already repaid) position and still claim collateral. An attacker could drain a trading pool by repeatedly claiming collateral without repaying the corresponding loan.

Lavarage Invitational

High
Business logic

Innocent borrower could incur losses caused by a malicious lender

The lender can change the interest rate at the trading pool level at any time, and the borrower cannot specify a maximum acceptable rate. A malicious lender could front-run a borrowing transaction by raising the rate to the maximum, causing the borrower to incur losses even if they repay immediately because interest is charged for at least one day.

Lavarage Invitational

Medium
Business logic

A borrower can borrow SOL without backing it by a collateral

The borrower could open two positions and link both collateral deposits to the first position, then repay only the first position to withdraw all collateral, leaving the second position's borrowed SOL unbacked. This allowed the borrower to steal the borrowed SOL from the lender.

Lavarage Invitational

High