zkLink attack exploits transient storage vulnerability, losses reach $783,000

iconChaincatcher
Share
AI summary iconSummary
A recent vulnerability incident saw the cross-chain protocol zkLink suffer a $783,000 loss due to an exploit in transient storage. Attackers reused residual validation values to forge withdrawal batch roots, enabling 12 fraudulent withdrawals involving ETH and ERC-20 tokens. The flaw allowed relayers to inject fake roots through relay and gateway contracts. On-chain analysis revealed that validation values were neither cleared nor bound to specific calls, and batch root updates lacked independent verification.

ChainCatcher report: According to analysis by SlowMist Security Team, the cross-chain protocol zkLink was compromised, resulting in losses of approximately $783,000. The attacker exploited residual validation values in transient storage to forge batch roots required for withdrawal verification, subsequently completing 12 withdrawals—including 1 ETH withdrawal and 11 ERC-20 token withdrawals. The attacker first triggered a legitimate cross-chain message to retrieve and write the validation value, then reused this value in subsequent calls within the same transaction, leveraging the relay and gateway contracts to inject a forged batch root. The relevant contracts allowed relayers to specify external call targets and parameters, but the validation value was neither cleared nor bound to the current call; batch root updates only verified the gateway’s identity without requiring independent proof of validation.

Disclaimer: The information on this page may have been obtained from third parties and does not necessarily reflect the views or opinions of KuCoin. This content is provided for general informational purposes only, without any representation or warranty of any kind, nor shall it be construed as financial or investment advice. KuCoin shall not be liable for any errors or omissions, or for any outcomes resulting from the use of this information. Investments in digital assets can be risky. Please carefully evaluate the risks of a product and your risk tolerance based on your own financial circumstances. For more information, please refer to our Terms of Use and Risk Disclosure.