Attacker can game the auction, resulting in either winning the NFT at 1 wei
or freezing the funds!
#947
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
duplicate-1785
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/main/smart-contracts/AuctionDemo.sol#L116
Vulnerability details
Impact
Attacker can game the auction, resulting in either winning the NFT at
1 wei
or freezing the funds!Proof of Concept
tokenId
(NFT) starts.1 wei
1 wei
claimAuction
and freezing the funds of everybody!The attacker can do this for every tokenId that comes to the auction, resulting in getting NFT in all the auctions at a minimum price or freezing participants' funds!
Tools Used
Manual
Recommended Mitigation Steps
A fixed amount of gas should be passed to the receiver at the time of refund.
Assessed type
ETH-Transfer
The text was updated successfully, but these errors were encountered: