The liquidation condition in Particle LAMM subtracts the liquidation reward from the premiums before checking whether the premiums are sufficient to cover the owed tokens. This can cause a lien to be considered underwater and liquidated even when it would otherwise be healthy.
A borrower can repeatedly close and reopen a position just before the loan term expires, resetting the start time and preventing the liquidity provider from reclaiming their funds. This lets a malicious borrower lock up the LP's liquidity indefinitely.
A borrower could call addPremium() immediately after the LP calls reclaimLiquidity(), setting the lien's start time equal to the renewal cutoff time. This equality bypasses the check in liquidatePosition(), preventing the LP from forcibly closing the position and retrieving liquidity.
The Particle position manager allowed opening a position without actually holding the Uniswap V3 NFT, as long as the NFT owner had approved the manager as an operator. An attacker could then open a position on behalf of the original owner, reduce the original liquidity, and maintain sufficient premium to avoid liquidation.
The fee used to calculate the premium owed by a borrower is read from the Uniswap v3 position manager at the time the position is closed, so a malicious lender can inflate that fee by adding liquidity and swapping back and forth, forcing the borrower to pay a higher premium. The lender can recover most of the swap fees if they dominate the liquidity in the tick range.
The contract hardcodes the minimum amount parameters to zero when increasing or decreasing liquidity in Uniswap V3 positions, removing slippage protection. An attacker could front-run these transactions to cause the user to receive much less than expected.
The contract refunds surplus tokens to the borrower during position closure, but if the borrower is blacklisted by the token (e.g., USDC), the transfer reverts, blocking closure and locking LP liquidity. An attacker could exploit this to prevent liquidation and cause bad debt for LPs.
The openPosition function stored fee growth values from the Uniswap position manager that were not up to date, because they only update when liquidity is increased, decreased, or collected. This caused borrowers to pay extra fees when closing their positions.
The contract's fee growth calculation for Uniswap V3 positions uses checked arithmetic, which reverts on underflow. This can cause operations like liquidation to fail unexpectedly, especially for low-fee pools.
The protocol passed the current block timestamp as the deadline when calling Uniswap's position manager, so the deadline check always passed. An attacker could hold a pending transaction and execute it later, potentially causing the user to suffer unfavourable price movements.
The protocol's liquidation check uses the current global loan term setting rather than the term agreed when a position was created. If an admin reduces the loan term, existing positions can be liquidated earlier than their original terms allowed.
The liquidatePosition() function allows the liquidator to supply arbitrary swap data, which can be manipulated to steal the borrower's profit. By constructing malicious data and using a fake token with a callback, the liquidator can repay less than the collateral value and keep the difference.
Some ERC20 tokens revert on zero-value transfers, and the liquidation reward calculation can produce zero, causing the liquidation transfer to revert and blocking liquidations. An attacker could open a position with such a token to prevent its liquidation.
The close position function does not verify that the liquidity added back to the LP covers the original borrowed liquidity. An attacker could potentially close a position with less liquidity returned, causing a loss to the LP.
The openPosition function allowed both premium portions to be zero, so when a position was out of price, an attacker could borrow liquidity without paying any fees. This could lead to malicious occupation of liquidity and prevent liquidators from acting because there was no profit.
Precision loss when calculating token premium portions in the ParticlePositionManager causes small amounts of tokens to become stuck in the contract. An attacker could potentially exploit this to accumulate dust over time, but the report only demonstrates the issue with a proof of concept.
The openPosition function in ParticlePositionManager underflows when a user supplies a marginTo larger than collateralTo minus amountToBorrowed, causing the transaction to revert. This prevents users from providing a larger margin to increase their premium.
The protocol charges a fee on the margin provided when opening a position, but not when adding margin later via addPremium. A borrower can avoid part of the fee by opening a position with minimal margin and then adding the rest via addPremium.
The collectLiquidity function only allows the caller to receive the collected tokens, with no option to specify a different recipient. If the caller is blacklisted by one of the tokens (e.g., USDC), they cannot collect either token, including the other token (e.g., WETH).
The contract's onERC721Received() check only blocks registered marketplaces, but when buying through Reservoir's router, the actual NFT transfer comes from an executor contract that is not whitelisted. This allows a new lien to be created during buyNftFromMarket(), so two liens track the same NFT.
The function _execBuyNftFromMarket() checks only ETH balance changes, not WETH, so leftover WETH approved to the marketplace can be stolen by another user. An attacker could set amount to zero and use the leftover WETH to buy an NFT, effectively stealing that WETH.
Anyone can call addCredit() with a tiny amount of ether, which changes the stored hash of a lien. By front-running, an attacker can cause validateLien() checks to fail, blocking legitimate actions such as bidding, starting or stopping auctions, and repaying with an NFT.
The withdrawNftWithInterest function allowed a lender to withdraw an NFT even when another lien on the same NFT was active, because it only checked that the caller was the lender and did not verify that the lien had no active loan. An attacker could take away another lien's NFT, causing loss of the NFT and funds.
A borrower contract can revert its receive function to block auctionBuyNft and withdrawEthWithInterest calls, preventing the lender from concluding an auction or claiming funds. This denial-of-service can be triggered at low cost by the borrower.
The contract owner can change the treasury fee rate at any time, and the new rate applies to existing loans. This means a lender who agreed to a 5% fee could suddenly face a 50% fee when claiming interest, reducing their payout.
The contract's sell function checks payment by comparing balance changes, but lacks reentrancy protection. An attacker can reenter the function during an NFT transfer to make multiple sales while only paying once, stealing funds from the contract.
The withdrawEthWithInterest function transfers the full interest amount to the lender without deducting the treasury fee, so the protocol loses the fee it should have collected. An attacker (or any lender) could repeatedly withdraw interest and deprive the treasury of its share.
The contract's buy function checked that the NFT was owned by the contract after the purchase, but did not check that it was not already owned before. An attacker could supply an NFT that was already in the contract as collateral for a second lien, then call the buy function with trade data for a different NFT, causing the contract to buy that other NFT while the check still passed.
PL
Particle Leverage AMM Protocol Invitational
High
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.