Cosine: The root cause of the ApeChain attack lies in the flaw in the underlying node's native profit state rollback logic.

--

Yu Xian, founder of SlowMist, said that the root cause of the ApeChain attack lies in the flaw in the Native Yield state rollback logic of the underlying nodes. After the precompiled contract delegates the yield to the attacker's CREATE2 address using configureDelegateYield(address), the address is deployed and SELFDESTRUCT is executed in a sub-call, followed by a proactive revert("scoped"). The underlying StateDB fails to correctly roll back the yield/balance state. This results in the original account retaining its balance while an equivalent copy of APE is created and stored in the target address, violating the conservation invariant of the total supply of the native token.

Loading...