User can always inflate the `totalSellReserveAmount` variable to block the auction from being ended
Source: https://github.com/sherlock-audit/2024-12-plaza-finance-judging/issues/723
This issue has been acknowledged by the team but won't be fixed at this time.
Found by
0x23r0, 0xDazai, 0xRaz, 0xc0ffEE, 0xmystery, AuditorPraise, Aymen0909, Benterkii, Boy2000, Chain-sentry, ChainProof, DenTonylifer, Hurley, KiroBrejka, Nave765, Ryonen, Saurabh_Singh, Waydou, ZoA, aswinraj94, copperscrewer, elolpuer, evmboi32, farismaulana, gegul, krishnambstu, moray5554, novaman33, pashap9990, queen, rudhra1749, sl1, solidityenj0yer, t0x1c, zxriptor
Summary
User can always inflate the totalSellReserveAmount variable to block the auction from being ended. This is an extremely and cheap attack to perform because the user practically loses nothing. He can call the Auction::bid function right before the end of the auction with some enormous buyReserveAmount as input. This will brick the money flow because he can do it over and over again for every auction, resulting in unprofitable investments for the people who hold bondETH
Root Cause
totalSellReserveAmount being easily inflatable without any checks to prevent it
Internal Pre-conditions
User making a valid bid with enormous buyReserveAmount as input, right before the end of the auction
External Pre-conditions
None
Attack Path
- User waits until for example 1 second before the end of the auction
- Then he calls the bid function, making a valid bid with big
buyReserveAmountinput
With this the attack is already performed. After this happens and someone call the Auction::endAuction function, the auction will be in FAILED_POOL_SALE_LIMIT state because of this check:
} else if (
totalSellReserveAmount >=
(IERC20(sellReserveToken).balanceOf(pool) * poolSaleLimit) / 100
)
Impact
The money flow can be bricked and a user can purposefully bring every auction to FAILED_POOL_SALE_LIMIT for no cost at all, since he can just call the Auction::claimRefund function afterwords
PoC
None
Mitigation
No response
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity business logic bug in Plaza Finance. Sherlock made it public on 9 February 2025. Found in the 682 audit contest (finding M-10), also found by 34 other wardens.
About Business logic
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
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.