The vault's onERC721Received function calls _cleanupLoan before updating collateral, and _cleanupLoan transfers the old NFT back to the owner, triggering a callback. A malicious owner can reenter borrow during that callback, causing _updateAndCheckCollateral to run twice and inflate the vault's total debt shares, which can block other borrowers.
The V3Utils.execute() function did not check that the caller owned the Uniswap V3 position NFT being handled. An attacker could back-run a user's approval to V3Utils and withdraw all liquidity from the position to themselves.
The oracle's TWAP calculation rounded a negative tick delta toward zero instead of down, so the returned tick could be higher than the true time-weighted average. This could produce an incorrect reference price, potentially letting unhealthy loans appear healthy or affecting swap enablement in the automator.
When liquidating a position, the protocol calls safeTransferFrom to return the NFT to the borrower, which invokes the borrower's onERC721Received callback. A malicious borrower can make that callback return an invalid value, causing the transfer to revert and preventing liquidation.
A malicious contract implementing the ERC721 receive callback can burn all gas and revert when the AutoRange bot transfers a newly minted NFT to it, causing the bot's execute transaction to fail. Because the token config is only cleared at the end of execute, the griefing can repeat and drain the off-chain operator's gas budget.
The protocol updates interest rates only once per block, so a borrower can take a loan and repay it within the same block without paying any interest. An attacker could repeatedly do this to exhaust the daily borrowing limit and deny service to other users, though the cost and likelihood are debated.
The daily lend and borrow increase limits were calculated incorrectly, allowing users to deposit or borrow up to 110% of the intended limit instead of 10%. An attacker could exceed the daily limits, potentially destabilising the protocol's risk controls.
The price calculation in V3Oracle.sol overflows when the reference token has 18 decimals and the Chainlink price exceeds a threshold, causing getValue() to revert. This makes the Chainlink price feed unusable, forcing reliance on the TWAP source and reducing pricing security.
The loan health check in V3Vault compares collateral value directly to debt without a safety buffer, so a borrower who takes the maximum loan can be pushed into liquidation by small market movements. An attacker can deliberately sink the victim's position in the Uniswap pool and then liquidate it for profit.
The _deposit function compared the total supply of lender shares against the global lending limit instead of converting those shares to their underlying asset value. This allowed more assets to be lent than the protocol's global limit intended.
The V3Vault contract's maxDeposit, maxMint, maxWithdraw, and maxRedeem functions do not comply with ERC-4626 because they return amounts that would cause a revert when the corresponding deposit, mint, withdraw, or redeem function is called. This could mislead integrating protocols and users, potentially damaging the protocol's brand and limiting growth.
Some ERC20 tokens revert when a zero-value transfer is attempted, and the contract calls safeTransfer or safeTransferFrom without checking for a zero amount. An attacker could cause transactions to revert by triggering a zero-value transfer, potentially blocking liquidations or other operations.
The protocol uses a token's collateral factor of zero to mean it is not accepted as collateral, but setting it to zero for an already-approved token breaks liquidation and health checks because calculations divide by that zero factor. An attacker could not directly exploit this, but the admin action of removing a collateral would cause liquidations to revert, locking funds.
The contract calculates the price difference between the current price and a verified price using two different formulas depending on whether the current price is above or below the verified price. This makes the allowed deviation asymmetric, so a price above the verified price can deviate more than one below it before being rejected.
The liquidation fee for underwater positions was calculated as 10% of the position's full value rather than 10% of the debt, so as the collateral value fell further below the debt, the liquidator's reward shrank. This reduced the incentive for liquidators to participate, contrary to the protocol's stated design.
The AutoRange contract allows users to change their fee-handling preference (onlyFees) after an operator has set the reward parameter, so a user can front-run the operator's transaction to switch to a lower fee mode. This causes the protocol to receive a much smaller fee than intended, leading to a loss.
The liquidate() function does not increase the daily debt increase limit counter, unlike repay(), so repaid amounts from liquidations cannot be borrowed again. On days with many large liquidations this leaves excess assets in the vault that cannot be borrowed, sharply lowering the utilisation rate.
The protocol passed the current block timestamp as the deadline to Uniswap position manager calls, which makes the deadline check ineffective. An attacker or MEV bot could hold a pending transaction and execute it later, potentially to the submitter's detriment.
The V3Oracle contract calculates the token amounts of a position using the current spot price from the Uniswap pool, which can be manipulated within a single transaction. An attacker could distort the spot price via a flash loan to inflate or deflate the position value, potentially borrowing or repaying at favourable conditions.
The repay and liquidate functions revert if the requested shares exceed the current debt shares, so an attacker can repay a tiny amount (e.g., one share) to make a user's full repayment or self-liquidation fail. This can prevent users from improving their health or self-liquidating, potentially leading to liquidation by the attacker.
A newly created position with zero debt could be repaid with a zero amount, causing the contract to treat it as fully repaid and remove the position from the vault. An attacker could then prevent the user from borrowing against that position, forcing them to recreate it and waste gas.
The AutoRange contract stores a per-token position configuration that is not cleared when the token is transferred to a new owner. A new owner could therefore have their position executed using a configuration set by the previous owner, potentially affecting the swap and the protocol's incentive.
The protocol allows loans with no minimum size, so liquidators have no economic incentive to liquidate small underwater positions. An attacker could borrow many small loans that become underwater but remain unliquidated, pushing the protocol into bad debt.
The collateral value limit factor checks are not performed when withdrawing lent tokens, so an attacker can supply tokens, borrow against them, and then withdraw the supplied tokens in one transaction to exceed the intended limit. This can also cause calls from the AutoRange automator to revert because the limit is surpassed.
The V3Vault transform function only checks the tokenId parameter for ownership, not the tokenId encoded in the calldata passed to the transformer. Any vault position holder could call an approved transformer with arbitrary parameters to manipulate any position delegated to that transformer, potentially draining funds or causing losses.
The V3Vault contract accepted Permit2 signatures without verifying that the transferred token was USDC, allowing an attacker to use a permit for any ERC20 token and have it treated as USDC. This could let an attacker deposit a worthless token and steal USDC from the vault.
The AutoRange and AutoExit contracts call _validateSwap even when amountIn is zero, meaning no swap is intended. This causes transactions to revert when the price deviates from the TWAP by more than the configured threshold, preventing users from withdrawing their tokens and cutting losses.
The setReserveFactor function updates the reserve factor without first updating global interest, so the new reserve factor is applied retroactively to the period since the last interest update. This causes the lending exchange rate to change unexpectedly, giving lenders a slightly different rate than they should have received.
RL
Revert Lend
Medium
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.