The LendingPool.sol
contract includes a withdrawalsPaused
variable intended to halt NFT withdrawals during emergencies or maintenance. However, the withdrawNFT
function does not reference this variable, allowing withdrawals even when the withdrawal functionality is explicitly paused.
Declared Pausing Mechanism Ignored:
The contract declares:
This variable is meant to control the ability of users to withdraw assets. However, the withdrawNFT
function lacks a check for withdrawalsPaused
.
In situations where withdrawals are paused to prevent potential exploits or maintain system stability, malicious actors or users could still withdraw NFTs, defeating the purpose of the emergency pause mechanism.
Manual Review
Integrate withdrawalsPaused
**Check : **Add a conditional check at the start of the withdrawNFT
function .
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.