Submitted by jonah1005
In MochiVaultFactory.sol#L26-L37, theres no permission control in the vaultFactory. Anyone can create a vault. The transaction would be reverted when the government tries to deploy such an asset.
As the protocol checks whether the vault is a valid vault by comparing the contracts address with the computed address, the protocol would recognize the random vault as a valid one.
I consider this is a medium-risk issue.
Heres a web3.py script to trigger the bug.
Recommend to add a check.
ryuheimat (Mochi) confirmed
