Position can be opened even when the particle position manger does not hold the Uniswap V3 Position NFT
mediumLines of code
Vulnerability details
Impact
Position can be opened even when the position manger does not hold the Uniswap V3 Position NFT
Proof of Concept
As long as user approve the PositionManager for as a operator of their NFT position
even the particle position manager does not hold the Uniswap V3 NFT
anyone can open the position on behalf of the original NFT owner
the original owner may incapable of calling reclaimLiquidity and the borrower just open the position to reduce the original liquidity, as long as he maintain sufficient premium, he will never be liquidated
or even the original own is capable of calling reclaim liquidity, the borrower still capable of leverage trading for LOAN_TERM length while forcefully reduce the liquidity of original nft
this is because when open the position, the code does not check if the particile position manager hold the Uniswap V3 NFT
the external call to decrease liquidity and collect the token is subject to the check
https://etherscan.io/address/0xc36442b4a4522e871399cd717abdd847ab11fe88#code#F1#L184
soliditymodifier isAuthorizedForToken(uint256 tokenId) { require(_isApprovedOrOwner(msg.sender, tokenId), 'Not approved'); _; }
while user approve ParticlePositionManager is not a normal flow
user approve particlePositionManager does not signal user wants to borrow the fund
only when user transfer the NFT into the ParticlePositionManager, borrower can borrow with lender's implicit permision
Tools Used
Manunal Review
Recommended Mitigation Steps
recommendation validting the particle position mange hold the position nft when position is opened
Assessed type
Invalid Validation
