The approve function of Pool tokens overwrites the current allowance without checking if the spender already used it, allowing a spender to front-run a change in allowance and transfer both the old and new amounts. An attacker could thus transfer more tokens than the owner intended.
The first depositor can deposit a tiny amount and then donate to the vault to inflate the share price, causing later depositors to receive fewer shares due to truncation. This allows the first depositor to steal funds from subsequent depositors.
The fee share calculation in a smart contract incorrectly mints too many shares to the fee recipient, giving them more fees than intended and reducing interest for liquidity providers. An attacker could exploit this to drain value from the pool.
The collateralization ratio update calculation can be forced to zero by frequent small deposits, preventing the ratio from ever changing. An attacker could keep the pool's price stale, potentially causing losses for depositors.
The borrow function checks the new utilisation rate against a surge threshold, but a user can bypass this by depositing loan tokens, borrowing the remaining liquidity, and withdrawing the deposit in the same transaction. This allows an attacker to borrow all available loan tokens, pushing utilisation to 100% and preventing suppliers from withdrawing.
The pool's transferFrom function always deducted an allowance, even when the caller was the token holder themselves. This broke compatibility with protocols that only use transferFrom, which could leave tokens stranded in those protocols.
The interest calculation in getCurrentState() could round down to zero due to integer division when the debt token has low decimals (e.g., USDC) and the time delta is small. This would cause borrowers to pay no interest, leading to a loss for lenders.
The factory contract requires a non-zero fee recipient when setting a fee, but allows the fee recipient to be changed to the zero address afterwards. An operator could therefore set a fee and then set the recipient to address(0), bypassing the check.
The userCollateralRatioMantissa calculation divides raw debt and collateral values without normalising for token decimals, so for token pairs with very different precisions the ratio can round to zero. This can make some positions impossible to liquidate, breaking a key protocol invariant.
The collateralization ratio update mechanism can be bypassed by gifting a small amount of loan token to the pool, causing the utilization calculation to incorrectly apply a large time delta as an increase rather than a decrease. An attacker can then borrow at an inflated collateralization ratio, stealing funds from the pool.
SU
Surge
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.