Closed sherlock-admin4 closed 7 months ago
In the test case, the submitter is using a mock batch auction module, and not the EMP auction module that is actually within scope. The EMP auction module forbids an auction lot to be cancelled once it has started, which prevents this scenario.
web3tycoon
high
Upon cancelling a
Batch
Auction, Refunds are never returned to thebidders
.Summary
When a seller creates a
Batch
auction, then later, the sellercancels
the auctio.Refunds
are only sent back to theSeller
. and if the bidders callRefund()
the transaction reverts with aAuction_MarketNotActive
error.Vulnerability Detail
place the following code in moonraker/test/AuctionHouse/bid.t.sol
Impact
The
Bidder
will get rekt whenever, a batch auction is cancelled.Code Snippet
https://github.com/sherlock-audit/2024-03-axis-finance/blob/main/moonraker/src/bases/Auctioneer.sol#L301
Tool used
Manual Review
Recommendation
Add functionality in
Auctioneer.sol
, on cancel the amount is sent back to theBidders
andSellers
succesfully, not just theSellers