The MoneyMarketHook.execute function does not handle the returnNative parameter correctly when withdrawing tokens, so the withdrawn tokens are not sent to the hook contract and cannot be converted to native currency for the caller. This could disrupt integrations that expect native tokens.
The repay, liquidate and liquidateWLp functions take a share amount as their argument, but the debt owed grows with time because interest accrues by timestamp. If a user approves exactly the amount needed and the transaction settles a few blocks later, the transfer can fail because the debt has grown beyond the approval.
A whitelisted wLP token used as collateral can later be blacklisted by the governor, and the withdrawal function then rejects it, so users cannot withdraw their deposited wLP. The same check in the liquidation function could also block liquidators, though the sponsor's planned blacklisting flow reduces that risk.
The Api3OracleReader contract subtracts the oracle timestamp from the current block timestamp without checking which is larger, so if the oracle timestamp is in the future the subtraction underflows and the transaction reverts. An attacker could not directly set the timestamp, but a normal relayer update within the allowed one-hour future window would make price lookups revert, blocking any code that depends on the oracle.
The collateralizeWLp function checks whether collateralization is paused, but the collateral credit for wrapped LP tokens is calculated from the live LP token balance of the tokenId, which anyone can increase by donating tokens directly. An attacker could therefore add collateral to a position even when the admin has paused collateralization.
After a liquidation seizes all of a borrower's collateral, any remaining debt cannot be written off because the collateral-removal function rejects a zero share amount. This leaves bad debt permanently recorded, inflating total assets and blocking other users from borrowing.
The setPosMode function allows a position owner to change the position's mode without checking whether the wLp token used as collateral is still whitelisted. An attacker could move blacklisted collateral into a new mode, breaking the invariant that only whitelisted tokens can be used as collateral.
The removeCollateralWLpTo function only checks that a tokenId belongs to the position when the full amount is removed, so an attacker can use another user's tokenId with a partial withdrawal to steal their wrapped LP tokens and rewards.
The admin's restriction on which lending pools can be used as collateral can be bypassed by donating tokens directly to a pool and then triggering a cash sync via a flash loan. This inflates the pool's share value, allowing an attacker to borrow more than intended, especially if they can mint tokens infinitely.
The MoneyMarketHook contract allows a caller to perform multiple withdrawals in one multicall. If a later withdrawal involves an ERC777 token, the recipient's hook can re-enter the execute function and steal the wrapped native tokens that were withdrawn earlier but not yet sent to the original caller.
The MoneyMarketHook contract calculates the repayment amount based on user-provided debt shares without checking the actual debt shares of the position, so if a liquidator front-runs and reduces the debt, the transferred tokens exceed what is needed and the excess becomes stuck in the hook. An attacker could exploit this by front-running a user's repayment with a liquidation, causing the user's tokens to be locked in the contract.
The setPosMode function did not check whether the new mode's canRepay flag was enabled, so a position owner could switch to a mode where repayment and liquidation were paused. This allowed them to prevent their position from being liquidated when it approached the liquidation threshold.
The position manager incorrectly assumes that a pool's debt share to amount conversion always increases, but a liquidation can reduce the debt amount, causing subsequent debt share updates to revert. An attacker can frontrun a liquidation with a tiny self-liquidation of 1 wei, making the victim's liquidation transaction revert and preventing the liquidation.
When repaying is paused, the pool still accrues interest on debt shares, so users cannot reduce their debt and it continues to grow. An attacker could exploit this by waiting for a pause to increase their debt, but the text does not describe an active attack.
The LendingPool contract's decimals() function returns only the underlying token's decimals, omitting the offset introduced by VIRTUAL_SHARES. This makes share tokens appear worth less than the underlying asset on exchanges and data feeds.
IC
INIT Capital Invitational
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.