A typo in the lending protocol's code caused the wrong token price to be used when calculating a user's supply balance, leading to incorrect account health assessments. This could result in protocol insolvency because all borrows, withdrawals, transfers, and liquidations rely on this miscalculation.
The withdrawUniPosition function in LendingPair does not accrue debt before allowing a user to withdraw their Uniswap V3 position NFT, which serves as collateral. In low-activity markets, this could let an account with a de-facto negative health ratio withdraw collateral without repaying debt.
The contract uses Chainlink's deprecated latestAnswer() function, which could stop working if Chainlink removes support. This would prevent the protocol from obtaining prices, causing it to halt and requiring redeployment.
A malicious user can escape liquidation by depositing a Uni v3 position with zero liquidity, because the liquidation process calls decreaseLiquidity which fails when liquidity is zero. This allows undercollateralized debt to remain unliquidated, potentially causing bad debt for the protocol.
The `uniClaimDeposit` function mints supply shares without first accruing the total supply, allowing an attacker to mint shares and then call `accrue` to increase the share price before withdrawing. Combined with the ability to deposit a Uniswap V3 position whose liquidity has been decreased but not collected, an attacker can steal most of the accrued `lpRate` in a single transaction.
The function `withdrawBorrowETH` calls `_wethWithdrawTo`, which uses a low-level call to transfer ether, making it vulnerable to re-entrancy. An attacker could re-enter the contract to bypass the `MIN_RESERVE` check and potentially manipulate the reserve.
The liquidateAccount function fails to accrue and update the cumulative interest rate before liquidating, so the borrower's state is stale. An attacker could avoid paying interest by liquidating themselves instead of repaying when under-water.
The reward distribution function in a lending protocol calculates a user's share of rewards using outdated total supply and debt values, because it distributes rewards before updating the accrual state. This can cause users to receive incorrect reward amounts, with some users getting more than their fair share and others getting less.
The contract used Chainlink's latestAnswer, which returns a price without freshness checks. An attacker could exploit stale or invalid price data to cause incorrect valuations and potentially serious consequences.
The total debt and total LP supply are not increased by the full new interest on each accrual, only by the interest of the updated user. This leads to an incorrect utilization ratio and thus wrong borrow rates, causing less debt to accrue than expected.
The liquidation function attempts to transfer underlying supply tokens to the liquidator, but the contract may not hold enough of those tokens if they are lent out. This prevents liquidations, potentially leading to insolvency and loss of user funds.
The TransferHelper contract's _safeTransferFrom function does not use the SafeERC20 library, so it fails when interacting with non-standard ERC20 tokens like USDT. An attacker could exploit this to cause deposits to revert, preventing users from depositing into pools.
WC
Wild Credit contest
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.