Using endtime for order cancelation deadline of gnosis auction could lead to bait and switch bid tactics #200
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
🤖_primary
AI based primary recommendation
sufficient quality report
This report is of sufficient quality
Lines of code
https://github.com/code-423n4/2024-07-reserve/blob/3f133997e186465f4904553b0f8e86ecb7bbacbf/contracts/plugins/trading/GnosisTrade.sol#L84-L157
Vulnerability details
Impact
Allowing users to cancel orders last moment can lead to bait and switch bids designed to obtain assets below market value
Proof of Concept
GnosisTrade.sol#L84-L157
Above we see that when creating an auction, both the auction end and order cancellation end are set to the same value.
EasyAuction.sol#L152-L227
We see from the gnosis auction contract that these unmodified time values are used directly for the auction. The result is that orders can be canceled up the the block before it is finalized. This opens up the ability to carry out a bait and switch MEV tactic on the auction.
This would work particularly well as gnosis auctions can't be utilized by searchers/bots so a majority of bidders would be assumed to be humans.
Tools Used
Manual review
Recommended Mitigation Steps
orderCancellationEndDate should be set to a few minutes before the end of the auction, allowing for others to see the bait and switch and bid accordingly.
Assessed type
MEV
The text was updated successfully, but these errors were encountered: