collectUsdcFromSelling, user can drain the fundsWhen a seller collects proceeds, the locked collateral for the sold token should be returned and cleared so it cannot be claimed again.Explain the specific issue or problem in one or more sentences. However, collectUsdcFromSelling transfers the collateral back to the seller but never sets collateralForMinting[tokenId] = 0, allowing repeated calls to reclaim the collateral if the contract has funds.
Likelihood:
Sellers can call collectUsdcFromSelling multiple times for the same inactive listing.
Any remaining or incoming USDC in the contract can be drained via repeated collateral claims.
Impact:
Double-claim of collateral leading to loss of contract funds.
collateral is not reset to zero after collecting USDC from sold NFT. No accounting for collected USDC
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.