Closed code423n4 closed 2 years ago
This is not considered a DOS as attacker is basically executing 1000 legitimate trades with the seller, as intended. Report does not specify any interesting quirks to make the DOS do any harm to the auction.
0xean marked the issue as duplicate
0xean marked the issue as satisfactory
Lines of code
https://github.com/code-423n4/2022-11-size/blob/main/src/SizeSealed.sol#L157-L159
Vulnerability details
Impact
Because contract did not limit number of bids for each address at 1 auction, attacker can bid many times (same auction) in 1 transaction. If it makes
bids.length
increase up to 1000, and other bidders can not bid at this auction.Proof of Concept
Contract just limit 1000 number of bids at 1 auction. See in this condition in function
bid()
:And contract has no limit of the number of bids for each bidder at 1 auction. So attacker can easily bid up to 1000 times in 1 transaction and prevent bidding from others.
Tools Used
VS Code
Recommended Mitigation Steps
Limit number of bids for each bidder at 1 auction or remove limitation of 1000 bids.