Sparkn

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

Incorrect contest expiration validation may lead to contest manipulations

Summary

Incorrect expiration validation allows the owner to distribute rewards when the contest is not expired.

Vulnerability Details

It is verified if the saltToCloseTime[salt] + EXPIRATION_TIME > block.timestamp which allows to call the distributeByOwner and deployProxyAndDistributeByOwner functions when the saltToCloseTime[salt] + EXPIRATION_TIME == block.timestamp.

Impact

This may result in tokens distribution manipulations.

Tools Used

Recommendations

Verify if the saltToCloseTime[salt] + EXPIRATION_TIME not >= than block.timestamp.

Support

FAQs

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