The withdraw
function allows the highest bidder to withdraw their bid, enabling them to obtain the NFT without payment.
There is no check in the withdraw
function to prevent the highest bidder from withdrawing their bid amount after winning the auction.
Financial Loss to Owner: The highest bidder can withdraw their funds after receiving the NFT.
Integrity Compromise: Undermines the fairness of the auction.
Restrict Highest Bidder Withdrawal: Add a check:
The `withdraw` function allows the participants to receive back the value of all their unsuccessful bids. The problem is that the winner of the auction will receive all bids including the `highest_bid` that should be paid to the NFT owner.
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.