TempleGold

TempleDAO
Foundry
25,000 USDC
View results
Submission Details
Severity: low
Invalid

Bidders may end up bidding in the wrong epoch

Summary

DaiGoldAuction.bid() and SpiceAuction.bid() don't let the bidders choose which epoch they wish to bid in. Because of this a bidder may end up bidding in a less favorable epoch.

Vulnerability Details

Transactions may stay in the mempool for a long time. There are different reasons for why this may happen - network congestion, block stuffing attack, too low gas paid, etc..

If Alice sees epoch X is an epoch with a lot of rewards, she may decide to bid. If her transaction stays for too long, her bid may be executed in epoch X + 1, for example.

Impact

Bidding executed in an unexpected epoch.

Tools Used

Manual Review

Recommendations

Add an epoch parameter to the bid functions that must be equal to the current epoch.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement
Assigned finding tags:

bid should have epochId as input to avoid bidding for the next auction if bid is called at cutoff.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.