Cryptocurrency hacks have become all too familiar, but instances where attackers take substantial risks only to reap relatively modest rewards are less common. Such a scenario unfolded on Sunday when an attacker exploited a vulnerability in the Hyperbridge cross-chain gateway, minting 1 billion Polkadot tokens on the Ethereum blockchain, valued at $1.19 billion, but ultimately only selling them for around $237,000 worth of ether. This exploit highlights the ongoing issue of bridge vulnerabilities, following a $270 million exploit on the Drift Protocol on Solana last month.

The attack targeted the bridge contract, specifically the validation process for incoming cross-chain messages, which allowed the attacker to forge a message and gain admin control over the bridged DOT token contract. Bridges, designed to facilitate the transfer of coins between different blockchains, remain a weak point in cross-chain architecture due to their admin-level control over token contracts on destination chains.

The attack began with the submission of a forged message via the dispatchIncoming function, which was then routed to TokenGateway.onAccept. However, the request receipts check failed to verify the message against a valid cross-chain state commitment from Polkadot, instead storing an all-zeros commitment value, suggesting a failure or circumvention of the proof validation for this specific call path.

The message was processed as legitimate, leading to the execution of changeAdmin on the bridged Polkadot token contract, transferring admin rights to the attacker's address. With this control, the attacker minted 1 billion tokens in a single transaction and sold them through Odos Router V3 into a Uniswap V4 DOT-ETH pool, extracting approximately 108.2 ETH across multiple swaps. The limited liquidity in the bridged DOT pool on Ethereum worked against the attacker, as the overwhelming supply of 1 billion tokens significantly diluted the price, resulting in the attacker receiving only a fraction of a cent per token.

This exploit underscores the importance of robust validation mechanisms in cross-chain gateways and the need for enhanced security measures to protect against such attacks. The incident was flagged by CertiK, confirming the attack vector and the attacker's profit of approximately $237,000. Hyperbridge has yet to publicly address the exploit or disclose whether other bridged token contracts using the same gateway are vulnerable to similar attacks.