TempleGold

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

Zero address can claim auction token

Summary

The claimfunction in the SpiceAuctiontoken can be called by a zero address. The token is unintentionally burnt if this happens!

Vulnerability Details

Here is the vulnerable line of code in the said function:

IERC20(auctionToken).safeTransfer(msg.sender, claimAmount);

Before this line, there was no check to checkmate a zero address. Which means a zero address can successfully claim theauctionToken.

Impact

Unintentional token burning as the claimed auctionTokencan neither be accessed nor recovered.

Tools Used

Manual review.

Recommendations

include a custom error that stops a zero address from claiming the tokens.

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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