Core Contracts

Regnum Aurum Acquisition Corp
HardhatReal World AssetsNFT
77,280 USDC
View results
Submission Details
Severity: high
Valid

Liquidated NFTs are locked permanently in StabilityPool

Summary

Since liquidated NFTs are locked permanently in StabilityPool, tokens for minted these NFTs will also be locked permanently.

Vulnerability Details

When user's NFTs are liquidated by LendingPool#finalizeLiquidation() called from StabilityPool#liquidateBorrower() and StabilityPool will own these NFTs, but due to no withdrawal mechanism of these NFTs in StabilityPool, these NFTs are locked permanently in StabilityPool.

function finalizeLiquidation(address userAddress) external nonReentrant onlyStabilityPool {
...
// Transfer NFTs to Stability Pool
for (uint256 i = 0; i < user.nftTokenIds.length; i++) {
uint256 tokenId = user.nftTokenIds[i];
user.depositedNFTs[tokenId] = false;
@> raacNFT.transferFrom(address(this), stabilityPool, tokenId);
}
...
}

Impact

Funds for minted NFTs are locked forever

Tools Used

manual

Recommendations

Add withdrawal NFT to transfer funds for minted these NFTs to a operational wallet.

Updates

Lead Judging Commences

inallhonesty Lead Judge 4 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Liquidated RAACNFTs are sent to the StabilityPool by LendingPool::finalizeLiquidation where they get stuck

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.