Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: high
Invalid

MEV Attackers can preemptively call Vault::initVault, resulting in token theft

Summary

MEV Attackers can preemptively call Vault::initVault, resulting in token theft

Vulnerability Details

After the deployment of the Vault contract, attackers can front-run the call to Vault::initVault(loveTokenAddress, attackerAddress), approve the LoveToken to their own address, thus stealing LoveToken.

Impact

There is a risk of 500,000,000 * 2 quantity of love tokens being stolen

Tools Used

manual review

Recommendations

In the Vault contract constructor call the initVault or add an owner permission to only allow the owner to call the Vault::initVault() function

Updates

Lead Judging Commences

0xnevi Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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