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

initVault() can be called by anyone

Summary

The initVault() function is publicly accessible, which means that anyone can call it.

Vulnerability Details

The initVault() function is publicly accessible, which means that anyone can call it.

Impact

This poses a security risk because once the vault contracts are deployed, unauthorized actors could potentially deploy and initialize their own malicious airdrop or staking contracts.

Tools Used

Manual review

Recommendations

To mitigate this risk, the function should be restricted to only the contract owner or a designated role that has the authority to initialize the vault.

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.