TempleGold

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

Tokens Can Be Recovered Even After Spicy Auction Has Started

Summary

The comment of SpicyAuction::recoverToken() states "Recover auction tokens for last but not started auction". However, tokens actually can be recovered after the auction has started.

Vulnerability Details

The function SpicyAuction::recoverToken() is missing checks for the current auction epoch:

  • It is not active.

  • It is not ended.

Therefore, auction tokens could be withdrawn even after the spicy auction has been started. This could lead to bidders cannot claim auction tokens.

Impact

Bidders may be unable to claim auction tokens if they are withdrawn prematurely.

Tools Used

vscode

Recommendations

Add aforementioned checks.

Updates

Lead Judging Commences

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

Support

FAQs

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