Sparkn

CodeFox Inc.
DeFiFoundryProxy
15,000 USDC
View results
Submission Details
Severity: medium
Valid

Insufficient check in CREATE2

Summary

CREATE2 is used to deploy proxy contracts . As per Ethereum Yellow Paper, Create2 does not revert , but returns address(0) in the following cases:-

  • A contract already exists at the destination address.

  • Insufficient value to transfer.

  • Sub context reverted.

  • Insufficient gas to execute the initialisation code.

  • Call depth limit reached.

Vulnerability Details

proxy deployment failure assumed successful which can lead to loss of sponsored funds

Impact

Unintended Behaviour

Tools Used

Recommendations

Add a check to ensure deployed proxy address != address(0)

Support

FAQs

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