The WiseLending contract's reentrancy guard could be reset by sending ETH directly to the contract, allowing an attacker to re-enter functions like withdrawExactAmountETH and paybackBadDebtForToken to steal funds. An attacker could withdraw their deposit, use the reentrancy to pay off their own loan as bad debt, and profit.
The function that removes a token from a user's borrow position does not verify that the supplied token is actually part of that position, so calling it with an unrelated token can delete the real debt entry. An attacker could thereby erase their debt and borrow further funds without repayment.
Partial liquidations of a position with bad debt increment the global bad debt counter by the full new shortfall each time, while the position's own bad debt is overwritten with only the latest figure. This leaves a permanent surplus in the global counter that cannot be paid back, so the beneficial fee claim function reverts forever and no new incentives are distributed.
In an uncollateralized position, the liquidation percentage meant only for the private collateral is also applied to the normal (public) collateral, allowing a liquidator to pay less than required and drain the private balance. The attacker can steal the user's funds and increase the protocol's bad debt.
The contract uses the wrong identifier (the WiseLending NFT ID instead of the PowerFarm key ID) to check whether a position is an Aave position, causing incorrect borrow shares to be fetched. This prevents users from manually paying back Aave positions and can block liquidation of such positions.
The contract assumes a 1:1 peg between stETH and ETH when calculating the minimum ETH output for a Curve swap, so if stETH depegs, the swap reverts because the requested minimum exceeds what the pool can provide. An attacker could exploit this to cause legitimate users' transactions to fail, potentially disrupting operations.
The contract used the full proxy roundId (which combines a phase ID and an aggregator round counter) when fetching historical prices, so subtracting a flat number could cross into a different phase and cause calls to revert. This could make new price feeds unusable or prevent recalibration, potentially allowing stale prices to be returned.
The first depositor of a PendlePowerFarmToken can inflate the share price by donating a large amount of underlying assets, causing a subsequent depositor to receive far fewer shares than expected and lose a significant portion of their deposit when withdrawing.
The withdrawal check for uncollateralized deposits uses the bare collateral value instead of the weighted collateral value, so a user can withdraw funds even when their position is liquidatable. An attacker could remove uncollateralized deposits to avoid liquidation, contrary to the protocol's stated intent.
The protocol lacks a minimum borrowing amount and a minimum withdrawal amount, allowing users to create small positions that are not worth liquidating. This can leave bad debt to the protocol because liquidators have no incentive to liquidate small positions.
The oracle helper's min/max comparison used strict inequalities, so it did not revert when a Chainlink aggregator reported exactly its configured minimum or maximum answer. During a flash crash the feed would keep returning the minimum answer, and the check would pass, letting users borrow against a wrongly reported price.
The TransferHelper::_safeTransferFrom() function ignores the boolean return value from _callOptionalReturn(), so if an ERC-20 token's transferFrom() returns false instead of reverting, the transfer failure goes undetected. An attacker could exploit this to deposit collateral or liquidate positions without actually supplying tokens.
A borrower can front-run a liquidation by repaying a tiny amount of shares, reducing the total borrow shares so that the liquidator's specified share amount exceeds the new maximum allowed, causing the liquidation transaction to revert. This denial-of-service could increase the risk of bad debt.
The liquidation mechanism allows a liquidator to choose which collateral token to seize, so by repeatedly liquidating the highest collateralFactor token first, the position's weighted collateral drops faster, enabling further liquidations beyond the intended 50% limit. This can result in up to 81% of the position being liquidated in the proof of concept, exceeding the protocol's intended maximum.
The setPoolFee function changes a pool's fee without first syncing the pool, so the next sync applies the new fee to the period before the change. This can cause the protocol or users to pay or receive incorrect fees, especially when setPoolFeeBulk changes many pools.
The PendlePowerManager contract calls Pendle router functions using signatures from an older router version, but the latest PendleRouterV3 added a new parameter, causing those calls to revert. An attacker could not exploit this directly, but it prevents users from opening farm positions.
The PendlePowerFarmToken contract allows anyone to donate rewards via addCompoundRewards, which increases totalLpAssetsToDistribute but does not immediately affect the share price. This causes the share price growth check to fail on subsequent deposits and withdrawals, temporarily locking user funds until enough time passes.
The function that allocates lending shares during liquidation calculates the share price with a rounding direction meant for deposits, causing a validation check to revert. As a result, liquidations fail when the pool lacks enough tokens to pay the liquidator, preventing the liquidation and leaving bad debt.
The heartbeat recalibration function sets the expected update interval to the second-largest gap between the last 50 Chainlink updates, so a period of rapid updates can make the oracle appear dead after just one minute of inactivity. An attacker can call recalibrate to disable the market that uses the oracle, causing bad debt or griefing.
The fee calculation in the _preparePool function performs division before multiplication, causing precision loss and underreporting of fee amounts. An attacker could exploit this to reduce fees owed to the pool.
A user entering a PowerFarm on Arbitrum can lose more value than the allowed spread because the deposit amount is reduced by a Uniswap swap before the final value check, causing the check to compare against a lower baseline. The user may lose up to approximately $45.24 more than intended on a $1000 deposit with a 105% spread.