-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auctions will always be won by MEV bots and validators, leading to auctions ending at a low price #1122
Comments
any bid before endtime will break this vector. |
141345 marked the issue as sufficient quality report |
a2rocket (sponsor) disputed |
these are hypotheses, someone could bid at first a really high amount and then attackers may not wish to go so high also not everyone waits until last block. |
Duplicate of #736, discussion will be maintained there. |
alex-ppg changed the severity to QA (Quality Assurance) |
alex-ppg marked the issue as grade-c |
Disagree with QA. This is a well-known issue in auction contracts and as we can see here it was acknowledged as a valid Medium issue on a recent code4rena contest: |
Hey @trachevgeorgi, thanks for contributing to the PJQA process! I am familiar with the relevant ruling and have elaborated on the primary issue this submission is a duplicate of. Please let me know if there is any further clarification you require. |
Lines of code
https://github.com/code-423n4/2023-10-nextgen/blob/8b518196629faa37eae39736837b24926fd3c07c/smart-contracts/AuctionDemo.sol#L57-L61
Vulnerability details
Impact
Just like in https://code4rena.com/reports/2023-06-stader#m-13-no-bidder-has-incentive-to-bid-in-the-auction-except-doing-last-minute-mev-due-to-fixed-endblock auctions will be maliciously exploited by users bidding at the last block in order to win an auction with the lowest price possible.
As all auctions have a fixed end date, a bidder can perform an MEV attack and bid right before an auction ends with a bid only 1 wei higher than the previous highest bid.
This would not only prevent the previous highest bidder from outbidding the attacker and winning the auction, but could lead to severe losses for the protocol. As last-minute MEV is highly incentivized and a well-known vulnerability in auctions with fixed end times, it is possible that no user bids throughout the auction, but only races to bid in the final block of the auction, with the lowest price possible, which could be as low as 1 wei.
Proof of Concept
Here is a possible scenario:
As users know that MEV attacks are incentivized, all bidders aiming to bid at an auction, wait until the last block to make their bids. They all bid 1 wei, as no previous bids have been made, and the bidder, whose transaction is executed first wins the auction at practically no cost.
Tools Used
Manual review
Recommended Mitigation Steps
Increase an auction's end time after every bid and introduce a minimum bid price.
Assessed type
MEV
The text was updated successfully, but these errors were encountered: