A malicious Admin can cancel any auction without refunds. to the Seller or bidder
Summary
When an auction is prefunded, and the parent or admin calls cancelAuction(uint256 lotId_) the amount of the seller is forcefully set to zero, locking the funds of the seller
web3tycoon
high
A malicious Admin can cancel any auction without refunds. to the
Seller
orbidder
Summary
When an auction is
prefunded
, and the parent or admin callscancelAuction(uint256 lotId_)
the amount of the seller is forcefully set to zero, locking the funds of the sellerVulnerability Detail
Make sure to import all dependenciess
Impact
This will result to permanenlty locking funds
Code Snippet
https://github.com/sherlock-audit/2024-03-axis-finance/blob/main/moonraker/src/modules/Auction.sol#L351 https://github.com/sherlock-audit/2024-03-axis-finance/blob/main/moonraker/src/modules/Auction.sol#L363
Tool used
Manual Review
Recommendation
add functionality on cancelling funds are not locked in the smartcontract but refunded to the bidders and sellers
Duplicate of #169