Bidders can settle Auctions prematurely before the deadline of 3 days hit
When settling an auction with BidBeastsNFTMarket:settleAuction, there is no check to see if the deadline of 3 days have passed, instead it checks if block.timestamp >= listing.auctionEnd and this is not fool-proof as it is possible that listing.auctionEnd is less than 3 days, because it is only incremented by
S_AUCTION_EXTENSION_DURATION which is only 15 minutes
Likelihood:
Reason 1 : This will occur whenever the current Listing.auctionEnd has passed, and there are no new bids placed
Impact:
Auction can be ended prematurely
It makes the game unfair to latter users as early users can close the auction
The code below shows a bidder settling an auction 15 minutes after the auction started
Place the following code in BidBeastsNFTMarketTest.t.sol
Add a check to see if 3days have passed after the auction started
Documentation for BidBeasts Marketplace is incomplete or inaccurate, potentially leading to misconfigurations or security misunderstandings.
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.