Open code423n4 opened 1 year ago
berndartmueller marked the issue as primary issue
If the storage is still in tact, then after this point the start and end time would prevent buys from occurring. But yeah I agree we should move away from selfdestruct all together
stevennevins marked the issue as disagree with severity
Suggesting Low
This finding demonstrates an issue regarding the EIP-4758
, which makes it impossible to cancel
an active sale. Thus, I consider Medium severity to be appropriate as the functionality of the protocol is impacted.
berndartmueller marked the issue as selected for report
Lines of code
https://github.com/code-423n4/2022-12-escher/blob/main/src/minters/FixedPrice.sol#L110 https://github.com/code-423n4/2022-12-escher/blob/main/src/minters/OpenEdition.sol#L122
Vulnerability details
Impact
selfdestruct() will not be available after EIP-4758. This EIP will rename the SELFDESTRUCT opcode and replace its functionality. It will no longer destroy code or storage, so, the contract still will be available. In this case it will break the logic of the project because it will not work as aspected:
FixedPrice.sol
OpenEdition.sol
Proof of Concept
According to EIP-4758:
Tools Used
Manual Review
Recommended Mitigation Steps
The architecture should be changed to avoid that problem.