The SpiceAuction::recoverToken
function in the smart contract lacks a check to ensure that the current auction is not active before allowing token recovery. This oversight could lead to unauthorized token recovery during an active auction.
The recoverToken
function is designed to allow DAO executor access to recover tokens. However, it does not verify whether the current auction is active. This missing check could potentially be exploited to recover tokens during an active auction, leading to unintended disruptions and possible financial losses.
The absence of an active auction check in the recoverToken
function can result in unauthorized recovery of tokens during an active auction. This can disrupt the auction process, causing financial harm to participants and undermining the integrity of the auction mechanism.
Manual Review
Add a check within the recoverToken
function to verify that the current auction is not active before allowing token recovery. This can be achieved by implementing a condition that checks the auction status and reverts the transaction if the auction is active.
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.