The current check, checks if the required collateral is greater than the remaining which is correct but doesn't check if its equal.
If the remaining collateral(collateralValue - nftValue) == the required collateral (userDebt.percentMul(liquidationThreshold)), this check will revert which is not supposed to happen.
Undercollateralized NFTs will pass this check causing the NFT to bypass the undercollateralization
Attacker can utilize this to withdraw their undercollateraized NFT before it is liquidated
manual review
```solidity
if (collateralValue - nftValue <= userDebt.percentMul(liquidationThreshold)) {
revert WithdrawalWouldLeaveUserUnderCollateralized();
}
````
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.