Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: high
Valid

Losing tokens can occur when an invalid winner's array address is entered

Summary

To avoid losing tokens, the organizer must input the correct array of winners. If the array contains any address(0) values, the tokens will be lost.

Vulnerability Details

If the organizer sends a winner with address(0) in the winners array, the token will be lost.

Impact

It is possible to use address(0) as a winner and lose the tokens associated with that winner.

Tools Used

Manual Review

Recommendations

It is recommended to validate the winners address before transfer the tokens

Support

FAQs

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