Open c4-submissions opened 1 year ago
minhquanym marked the issue as primary issue
minhquanym marked the issue as duplicate of #313
MarioPoneder changed the severity to QA (Quality Assurance)
MarioPoneder marked the issue as grade-c
MarioPoneder marked the issue as grade-b
Lines of code
https://github.com/code-423n4/2023-11-canto/blob/main/asD/src/asDFactory.sol#L33-L39
Vulnerability details
Impact
asD's are created from the asDFactoryvia CREATE1, an attacker can frontrun create to deploy at the same address but with different config. If the deployed chain reorg, a different asD might also be deployed at the same address.
Proof of Concept
A simple scenario to demonstrate the issue:
Tools Used
Manual review
Recommended Mitigation Steps
Use CREATE2 and the asD config as salt.
Assessed type
Other