Skip to content
Business logic Audit finding Intermediate

No bidder has incentive to bid in the Auction except doing last-minute MEV due to fixed endBlock

The auction for SD tokens has a fixed end block, so bidders are incentivised to wait until the last block to bid, potentially leading to a lower final price and unfair advantage for those who can include transactions at the last moment. An attacker with MEV capabilities could exploit this to win the auction at a lower price.

0xWaitress Follow with LaScaloneta, Josiah and 3 others

Originally disclosed on Code4rena

Submitted by 0xWaitress, also found by LaScaloneta, Josiah, peanuts, RaymondFam, and T1MOH

Proof of Concept

The auction of SD Token has a fixed endBlock. Bidder(s) would like to get SD Token with the least amount of ETH and they are all incentivized to just bid at the last block, leading to loss of protocol principle during the auction.

    function createLot(uint256 _sdAmount) external override whenNotPaused {
        lots[nextLot].startBlock = block.number;
        lots[nextLot].endBlock = block.number + duration;
        lots[nextLot].sdAmount = _sdAmount;

Genearally, auctions with a fixed endtime has the known vulnerability of being bid on at the last block. Essentially, the validator/MEVer who has the ability to slip in transaction at the last block has the highest likelihood to get the bid. This basically gives them an advantage and would lead to the auction to end at lower price.

Recommended Mitigation Steps

Extend the final endBlock at each bid. This can be activated at the end of 1h, for example, to ensure the highest bidder can take the auction on in a fair manner.

Assessed type

MEV

manoj9april (Stader) disputed and commented:

MEV bots are welcome to be bidders.

Picodes (judge) commented:

This is a valid vulnerability in my opinion. MEV are, of course welcome to bid, but the problem is the current auction system doesn’t allow for a proper price discovery. From a game theory standpoint, no one has any interest in revealing their bid before the end of the auction; and when bidding, you tend to not reveal your max bid but try to guess the “second-highest bid”. Therefore, the current design can quickly lead to a suboptimal final price as someone may have increased their bid, given more time.

Note as well, that it is currently relatively cheap to censor a transaction for a few blocks by bribing block builders. So with the current design, value may easily be lost trying to censor other bidders or bribing miners to be included.

manoj9april (Stader) acknowledged, disagreed with severity and commented:

Yes, We agree with your point. But for now, we would prefer to go with a current simpler approach and improve later phases, based your recommendation.

I think this should be considered as low severity.


The original report as published on Code4rena, by 0xWaitress. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The auction has a fixed end block, which incentivises last-minute bidding and prevents proper price discovery.

Impact

The auction may end at a lower price, and MEV bots or validators who can insert transactions at the last block have an advantage, potentially leading to value loss.

What the attacker needed

Auction with fixed end block; bidders can submit transactions

The fix

The final endBlock should be extended at each bid, for example after the first hour, to allow fair competition and better price discovery.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

In an auction, people bid to buy something. If everyone knows exactly when the auction ends, they might all wait until the very last second to bid, hoping to win without others having a chance to respond. This report says that because the end time is fixed, bidders can take advantage by bidding at the last moment, which can make the final price lower than it should be.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by 0xWaitress

View all

3 more disclosed reports, best first.

More from Stader Labs

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.