System will not work anymore after EIP-4758
Submitted by Lambda, also found by Chom
After EIP-4758, the SELFDESTRUCT op code will no longer be available. According to the EIP, “The only use that breaks is where a contract is re-created at the same address using CREATE2 (after a SELFDESTRUCT)“. Axelar is exactly such an application, the current deposit system will no longer work.
Recommended Mitigation Steps
To avoid that Axelar simply stops working one day, the architecture should be changed. Instead of generating addresses for every user, the user could directly interact with the deposit service and the deposit service would need to keep track of funds and provide refunds directly.
Very good spot. We will address this.
Alex the Entreprenerd (judge) commented:
The warden has shown a plausible upgrade path for Ethereum that will remove the
SELFDESTRUCTopcode, bricking theDepositReceiverfunctionality.If the fork was in place today, the code would be broken, and the finding should be of high severity.
Because the fork is not in place, and no clear timeline is defined for “The Purge”, I think Medium Severity to be correct.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is known
A medium-severity smart contracts bug in Axelar Network. Code4rena made it public on 6 October 2022. Found in the 2022-07-axelar audit contest (finding M-03).
About Smart contracts
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.