A partial repayment of a lien updates the stored lien amount to include accrued interest but does not update the last-updated timestamp, so a later slope calculation counts the same interest twice. This distorts the public vault's slope accumulator, making the vault's implied value either too low or too high, which can cause liquidity providers to lose funds.
The function _deleteLienPosition is public and lacks caller validation, allowing anyone to delete any lien from any collateral. This could let a borrower bypass the release check and withdraw collateral without repaying the loan, effectively stealing lender funds.
Cancelling an auction with zero bids only partially repays the outstanding debt because the initiator fee is deducted from the reserve price, leaving unpaid liens. This prevents the borrower from releasing their collateralised NFT even after paying the reserve price, locking it forever.
The PublicVault contract fails to deduct the payment amount from yIntercept in beforePayment(), causing the vault's inferred total assets to be inflated. This miscalculation can lead to vault insolvency.
The claim function in LiquidationAccountant had no access control, so anyone could call it repeatedly after finalAuctionEnd. This allowed an attacker to manipulate the vault's yIntercept, potentially causing vault insolvency.
A malicious lien buyer can deliver a lien token to a contract they control that implements supportsInterface() with arbitrary code, such as reverting. Because the protocol calls this function in several places, the attacker can block auctions, liquidation and payments, locking funds and collateral.
When a lien is bought out with new terms, the slope of the associated public vault is not updated to reflect the changed lien terms. This can cause liquidations involving the public vault to revert and lead to incorrect vault share calculations due to an outdated slope value.
The `finalAuctionEnd` variable is set to a fixed duration (3 days) instead of an actual timestamp, so the check for auction end is incorrect. This allows epochs to be progressed during an ongoing auction, which can disrupt liquidation logic and potentially cause loss of LP funds and locked collateral.
The contract stores liens in an array and deletes entries when fully paid, which shifts the indices of remaining liens. Paying or liquidating multiple liens in a loop then reverts or pays the wrong lien, and an attacker can front-run a payment to force the victim to pay the attacker's lien instead.
The LienToken.createLien function checks the total potential debt before adding the new lien to the liens array, so the check ignores the new lien. An attacker could take multiple loans on different collateral tokens, each within the limit, but together exceeding the maximum potential debt, risking vault insolvency and loss of LP funds.
The transferWithdrawReserve function in PublicVault.sol lacks access control, allowing anyone to call it repeatedly. An attacker could decrement the withdrawReserve state variable to zero when the withdrawal proxy address is zero, preventing legitimate withdrawals.
The liquidation logic checks whether an auction will end in a future epoch using only the auction window, ignoring that auctions can be extended by up to one day. As a result, an auction may end in the next epoch without proper accounting, causing users who withdrew in the current epoch to be underpaid.
The vault fee is stored in basis points but the fee calculation divides by 1,000 instead of 10,000, so strategists receive ten times the intended fee. An attacker who is a strategist could take a much larger share of payments made to the vault.
The auction for liquidated collateral uses a one-time English auction with a reserve price equal to the total outstanding debt, but the reserve price is not enforced except that the borrower can cancel if the bid is below it. This design may fail to attract bids high enough to cover the debt, leading to losses for liquidity providers.
The isValidRefinance function incorrectly required both a rate decrease and a duration increase to be true, instead of either condition, causing valid refinances to be rejected. An attacker could not directly exploit this, but it would prevent legitimate refinance attempts.
The isValidRefinance function incorrectly checks whether the new interest rate is greater than a minimum rate, rather than less than a maximum rate, so it approves refinances with higher rates and rejects those with lower rates. This allows invalid refinances and blocks valid ones.
The changeInSlope function calculates a new slope without accounting for interest and the interest denominator, making the value inflated and causing an underflow when subtracting from the old slope. This can lead to reverts and vault insolvency because users cannot determine the implicit value of vaults.
The protocol specification states that new loan durations must not exceed the end of the next epoch, but the implementation does not enforce this restriction. An attacker could create loans with durations longer than allowed, potentially causing miscalculations and fund loss.
The claim function in LiquidationAccountant can attempt a token transfer of zero when the withdrawal ratio is 100 percent. For tokens that revert on zero-value transfers, this makes the funds unclaimable, causing a loss of funds.
The createLien function assumed that a missing auction meant the borrower was safe to receive a new loan, but an auction only exists once someone calls the liquidate function. An attacker could therefore obtain a new loan for a borrower who had already defaulted and should have been liquidated.
The _getInterest() function uses block.timestamp instead of the provided timestamp in a condition, causing it to return incorrect interest values. This can lead to miscalculations in several protocol functions that rely on accurate interest amounts.
The timeToEpochEnd function in a smart contract returns zero when the epoch is still ongoing, instead of the remaining time. This causes all liquidations to be treated as future-epoch payouts, leading to incorrect accounting and potential reverts.
Liquidations can be triggered for a collateral after a lien expires but before the auction window at epoch end. The liquidation logic skips decreasing the lien count and setting up the liquidation accountant, so auction proceeds go directly to lien owners and the epoch cannot advance, causing loss and lock of funds.
Auction bids that only partially repay an expired lien cause a revert because the lien's last payment timestamp is updated to the current time, which is later than the lien's end time, leading to a subtraction underflow. This prevents partial bids and can cause loss of funds to liquidity providers.
The public vault's total asset calculation is incorrect until the first payment, causing depositors to receive fewer vault shares than expected. This happens because the total assets are based on the current ERC-20 balance, which is reduced by borrowed amounts.
The protocol fee denominator is never initialised and has no setter, so enabling the fee causes a division-by-zero revert in getProtocolFee. This prevents borrowers from depositing collateral and requesting loans.
A bid placed within the final time buffer of a max-duration auction causes an arithmetic underflow when the contract tries to cap the extended duration, reverting the bid. This effectively ends the auction early and cuts off bidders who intended to bid near the end.
The WithdrawProxy contract inherits deposit and mint functions from ERC4626Cloned, allowing anyone to deposit WETH and receive shares. An attacker could deposit just before yield is distributed and redeem for a profit, diluting returns for legitimate LPs.
AS
Astaria
High
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.