An unchecked addition when updating a public vault's yIntercept can overflow, making totalAssets report far less than the real balance. Liquidity providers are then unable to withdraw a large fraction of their deposited assets.
The ERC4626Cloned vault's deposit and mint functions handle the first deposit differently: previewMint returns a fixed 10e18 shares while previewDeposit returns shares equal to assets. An attacker can use deposit to mint a single share and manipulate the pool, defeating the intended protection against first-depositor frontrunning.
When an NFT is used as collateral a second time, a leftover token allowance from the first liquidation causes the approval call in the clearing house to revert, so the debt cannot be repaid from auction funds.
Refinancing a loan is permissionless and does not check the liquidationInitialAsk parameter, so an attacker can refinance just before liquidation with a very low initial ask. This could cause the borrower's NFT to be liquidated at a price far below its fair value, benefiting the attacker.
A borrower can set their liquidationInitialAsk equal to their loan amount, causing any future borrows to fail because the contract checks that the total potential debt does not exceed each lien's liquidationInitialAsk. This blocks the borrower from taking additional loans.
The processEpoch function in PublicVault sets the withdraw reserve to zero whenever the vault's total assets are less than or equal to the amount expected from an auction, even when the withdraw ratio is 100%. As a result, withdrawing liquidity providers can receive less than they are owed, and in the example given they could lose all of the vault's funds.
When a public vault buys out another public vault's lien token, the buying vault's liensOpenForEpoch is not increased, so later repayment or liquidation attempts underflow when decreasing that counter, blocking repayment and auction.
The vault stores withdrawal ratios in a fixed 1e18 scale but does not convert them to the underlying token's decimals when calculating transfer amounts. For tokens with fewer than 18 decimals, this causes an underflow and revert in the claim function, locking all funds in the vault and withdraw proxy.
The settleAuction function uses an incorrect logical condition (AND instead of OR) when checking auction state, so it can proceed even when there is no bid. This allows ClearingHouse.safeTransferFrom() to execute successfully without a valid auction.
The minimum deposit requirement in a public vault is enforced inconsistently between the deposit and mint functions when the share price is not one, allowing a user to bypass the intended minimum by calling the less restrictive function. An attacker could become a liquidity provider with a deposit below the intended threshold, leading to unexpected deposit amounts and degraded filtering of participants.
The processEpoch function in PublicVault.sol uses an unchecked block to calculate withdrawReserve, assuming no overflow. Because arbitrary ERC20 tokens are allowed, a token with a very large totalAssets could cause an overflow, leading to incorrect reserve values.
The PublicVault contract assumes that the amount of tokens received equals the amount transferred, which is incorrect for fee-on-transfer tokens. If such a token is used, the vault's accounting becomes inaccurate, potentially locking tokens and preventing depositors from withdrawing their shares.
The liquidator reward is not included when calculating potential debt, so if the liquidation initial ask is set to the minimum, the vault can lose funds because the reward is paid from the vault's share. An attacker could exploit this to cause a loss to the vault.
The authority check in the loan commitment validation only accepts the caller if it is approved for all NFTs, not if it is approved for the single collateral NFT. As a result, the normal flow where the Router (approved for one NFT) calls the function reverts, forcing users to grant blanket approval to the Router.
When a private vault lends ERC777 tokens, the vault owner can refuse to receive repayment in the token's transfer callback, preventing the borrower from repaying. The borrower's collateral can then be liquidated when the loan expires.
The protocol's token transfer helper does not verify that a token address contains contract code, so transfers to non-existent tokens silently succeed. An attacker could create vaults for token addresses not yet deployed and later profit when a real token is deployed at that address and users deposit into the trap vault.
The canLiquidate function only allows the collateral owner or anyone after the lien's end time to liquidate, but approved operators of the collateral owner cannot liquidate even though they can request loans. This means an approved operator cannot liquidate a lien when they should be able to.
The PublicVault contract hardcodes its decimals to 18 instead of mirroring the underlying ERC20 token's decimals. For tokens with fewer decimals, such as USDC (6 decimals), this mismatch breaks share-to-asset conversions and liquidation ratio calculations.
The private vault's deposit function lacks the pause and shutdown checks that the public vault enforces, so deposits can still be made after the vault is shut down. An attacker who is on the allowlist could deposit funds into a vault that should no longer accept them.
The ClearingHouse contract's safeTransferFrom function lacks access control, allowing anyone to call it. An attacker can transfer a tiny amount of the payment token to the contract and then call safeTransferFrom to settle the auction, blocking the liquidator from claiming the NFT and forcing lenders to bear the loss.
The processEpoch function in PublicVault calculates a new yIntercept by subtracting a value derived from totalAssets() and the liquidationWithdrawRatio. When most users withdraw, this subtraction can underflow because totalAssets() exceeds yIntercept, causing processEpoch to revert and blocking epoch progression and user withdrawals.
A function that settles a debt deletes an entry from a memory copy of an auction stack rather than from storage, so the position is never actually removed. The text claims this leaves stale state behind, though it does not show a concrete attacker action or theft.
The public vault owner (strategist) can call buyoutLien before transferWithdrawReserve, preventing liquidity providers from withdrawing their funds. This allows the strategist to indefinitely block withdrawals, effectively controlling all funds in the vault.
The AstariaRouter contract approves the public vault to spend only the number of shares, not the required assets, when minting shares. When the vault's share price exceeds 1, the vault's mint function tries to transfer more assets than approved, causing the transaction to fail and preventing users from minting shares via the router.
The WithdrawProxy contract allows redeem() to be called before the withdraw reserve is transferred in, because the onlyWhenNoActiveAuction modifier does not block calls when no auction has started and totalAssets() is based on the contract's current balance. An attacker could deposit a small amount to make totalAssets() positive and trick a depositor into redeeming early, causing them to receive less than their fair share and benefiting remaining holders.
The LienToken contract restricts transfers to public vault addresses, but an attacker can predict a public vault's address and front-run its creation by transferring a private vault's LienToken to that address. This corrupts the public vault's accounting variables, causing it to malfunction.
A malicious strategist can set an extremely high vault fee when creating a public vault, causing loan repayment to revert due to an integer conversion failure. This can force borrowers into liquidation, making them lose their NFT collateral.
A lien's liquidationInitialAsk can be set to any uint256, but when liquidating, the value is cast to uint88, causing a revert if it exceeds the maximum uint88. This prevents the auction from starting, permanently locking the collateral.
The borrower could pass a different vault address in the strategy details when committing to a lien, so the system used the borrower's own vault (with a worthless token) for repayment instead of the lender's vault. This allowed the borrower to drain all funds from any vault that accepted their collateral.
During a buyout, the vault's slope is decreased when the old lien is burned but not increased when the new lien is created, so the new lien generates no interest. As a result, the borrower pays no interest and liquidity providers lose rewards.
AC
Astaria contest
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.