No access control for the init function in HolographFactory #144
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
duplicate
This issue or pull request already exists
edited-by-warden
invalid
This doesn't seem right
Lines of code
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/HolographFactory.sol#L143
Vulnerability details
Impact
Detailed description of the impact of this finding.
There is no access control for the init function in contract HolographFactory. Therefore anybody can call this function and set malicious parameters and addresses.
Proof of Concept
Provide direct links to all referenced code in GitHub. Add screenshots, logs, or any other relevant proof that illustrates the concept.
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/HolographFactory.sol#L143
Tools Used
manual
Recommended Mitigation Steps
Add a modifier or an if-revert statement to ensure the caller is the designated deployer/factory as described in the documentation.
The text was updated successfully, but these errors were encountered: