Submitted by leastwood
The BeaconProxyDeployer.deploy() function is used to deploy lightweight proxy contracts that act as each assets vault. The function does not revert properly if there is a failed contract deployment or revert from the create2 opcode as it does not properly check the returned address for bytecode. The create2 opcode returns the expected address which will never be the zero address (as is what is currently checked).
The recommended mitigation was to update iszero(result) to iszero(extcodesize(result)) in the line mentioned above. This change has already been made in the corresponding library which can be found here, however, this needs to also be reflected in Mochis contracts.
ryuheimat (Mochi) confirmed
